Skip to content

Commit bc66f1c

Browse files
authored
Merge pull request #3 from jsturtevant/images-folder
move image stuff to its own folder
2 parents dbcb5b4 + 5c1bad4 commit bc66f1c

6 files changed

Lines changed: 21 additions & 9 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@ on:
66
pull_request:
77
branches:
88
- main
9+
path:
10+
- 'images/**'
11+
- '.github/workflows/images.yaml'
12+
- '.github/workflows/cleanup.yaml'
913

1014
permissions:
1115
packages: write
1216
pull-requests: write
1317

18+
defaults:
19+
run:
20+
working-directory: images
21+
1422
jobs:
1523
build-installer-image:
1624
runs-on: windows-2022

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ krew plugin for launching a Windows host process pod that will give you access t
33

44
![gif of using krew to install and run as kubectl plugin](./kubectl-windows-debug.gif)
55

6+
To use this plugin you will need:
7+
- kubernetes 1.22+ (with the [WindowsHostProcessContainers](https://kubernetes.io/docs/tasks/configure-pod-container/create-hostprocess-pod/) feature-gate enabled)
8+
- containerd 1.6+ as the runtime
9+
610
## Usage
711

812
```bash
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
ARG INSTALLER_VERSION="${latest}"
2-
FROM ghcr.io/jsturtevant/debug-installer-cache:${INSTALLER_VERSION} as installer
3-
4-
FROM ghcr.io/marosset/host-process-scratch-image:latest AS runtime
5-
WORKDIR /apps
6-
ENV PATH="%CONTAINER_SANDBOX_MOUNT_POINT%\apps\vim;%CONTAINER_SANDBOX_MOUNT_POINT%\apps\sysinternals;C:\Windows\system32;C:\Windows"
7-
8-
COPY --from=installer /ProgramData/scoop/apps/vim/9.0 ./vim/
1+
ARG INSTALLER_VERSION="${latest}"
2+
FROM ghcr.io/jsturtevant/debug-installer-cache:${INSTALLER_VERSION} as installer
3+
4+
FROM ghcr.io/marosset/host-process-scratch-image:latest AS runtime
5+
WORKDIR /apps
6+
ENV PATH="%CONTAINER_SANDBOX_MOUNT_POINT%\apps\vim;%CONTAINER_SANDBOX_MOUNT_POINT%\apps\sysinternals;C:\Windows\system32;C:\Windows"
7+
8+
COPY --from=installer /ProgramData/scoop/apps/vim/9.0 ./vim/
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
param ($version='latest', $image='ghcr.io/jsturtevant/debug-installer-cache')
22

3-
docker build -t "${image}:${version}" -f Dockerfile.installer .
3+
docker build -t "${image}:${version}" -f Dockerfile.installer-cache .
File renamed without changes.

0 commit comments

Comments
 (0)