-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Windows support for toolbox image (#27)
We add Windows images to the antrea/toolbox manifest (for both the 1809 and ltsc2022 Windows nanoserver versions). The Windows image is based directly on K8s pause image. It includes wincat, pause, and of course everything included by default in the nanoserver image (such as ping). In the future, we may want to install additional utilities in the Windows image. Because we share the same versioning between Linux and Windows, the toolbox version is bumped up to 1.3. Fixes #26 Signed-off-by: Antonin Bas <[email protected]>
- Loading branch information
1 parent
9121bda
commit c164cf8
Showing
4 changed files
with
114 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 2024 Antrea Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Should be 1809 or ltsc2022 | ||
ARG WINDOWS_VERSION | ||
|
||
# See https://kubernetes.io/docs/concepts/windows/intro/#pause-container | ||
# Unlike the image from registry.k8s.io, there are also different named tags for different OS | ||
# versions, so we have more control. | ||
FROM mcr.microsoft.com/oss/kubernetes/pause:3.9-windows-${WINDOWS_VERSION}-amd64 | ||
|
||
LABEL maintainer="Antrea <[email protected]>" | ||
LABEL description="A Docker image with useful tools (for networking) based on the K8s pause image" | ||
|
||
# We do not add any tools to the image at the moment. | ||
# The image comes with pause + wincat + anything included by default in the nanoserver base image. | ||
|
||
COPY VERSION /VERSION | ||
|
||
# Reset entrypoint | ||
ENTRYPOINT [] | ||
|
||
CMD ["/pause.exe"] |
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 +1 @@ | ||
1.2 | ||
1.3 |