-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Switch to hostprocess base image
Signed-off-by: Jan-Otto Kröpke <[email protected]>
- Loading branch information
Showing
3 changed files
with
59 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
# Note this image doesn't really matter for hostprocess but it is good to build per OS version | ||
# the files in the image are copied to $env:CONTAINER_SANDBOX_MOUNT_POINT on the host | ||
# but the file system is the Host NOT the container | ||
ARG BASE="mcr.microsoft.com/windows/nanoserver:ltsc2022" | ||
# mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0 | ||
# Using this image as a base for HostProcess containers has a few advantages over using other base images for Windows containers including: | ||
# - Smaller image size | ||
# - OS compatibility (works on any Windows version that supports containers) | ||
|
||
# This image MUST be bulit with docker buildx build (buildx) command on a Linux system. | ||
# Ref: https://github.com/microsoft/windows-host-process-containers-base-image | ||
|
||
ARG BASE="mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0" | ||
FROM $BASE | ||
|
||
ENV PATH="C:\Windows\system32;C:\Windows;" | ||
COPY output/amd64/windows_exporter.exe /windows_exporter.exe | ||
ENTRYPOINT ["windows_exporter.exe"] |
This file was deleted.
Oops, something went wrong.