Use new microsoft/nanoserver tags (sac2016)
See https://hub.docker.com/r/microsoft/nanoserver/ (:1709 vs :sac2016)
This commit is contained in:
parent
e2bcd7a682
commit
d206a43516
|
|
@ -1,7 +1,7 @@
|
||||||
*.md
|
*.md
|
||||||
*.sh
|
*.sh
|
||||||
**/hello
|
**/hello
|
||||||
**/nanoserver/hello.txt
|
**/nanoserver*/hello.txt
|
||||||
.dockerignore
|
.dockerignore
|
||||||
.git
|
.git
|
||||||
Dockerfile*
|
Dockerfile*
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ before_script:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./update.sh
|
- ./update.sh
|
||||||
- test -z "$(git status --porcelain '**/hello' '**/nanoserver/hello.txt')"
|
- test -z "$(git status --porcelain '**/hello' '**/nanoserver*/hello.txt')"
|
||||||
- travis_retry docker build -t "$image" amd64/hello-world
|
- travis_retry docker build -t "$image" amd64/hello-world
|
||||||
- ~/official-images/test/run.sh "$image"
|
- ~/official-images/test/run.sh "$image"
|
||||||
|
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -12,7 +12,7 @@ $(C_TARGETS): hello.c
|
||||||
$(CC) $(CFLAGS) -o '$@' -D DOCKER_IMAGE='"$(notdir $(@D))"' -D DOCKER_GREETING="\"$$(cat 'greetings/$(notdir $(@D)).txt')\"" -D DOCKER_ARCH='"$(TARGET_ARCH)"' '$<'
|
$(CC) $(CFLAGS) -o '$@' -D DOCKER_IMAGE='"$(notdir $(@D))"' -D DOCKER_GREETING="\"$$(cat 'greetings/$(notdir $(@D)).txt')\"" -D DOCKER_ARCH='"$(TARGET_ARCH)"' '$<'
|
||||||
$(STRIP) -R .comment -s '$@'
|
$(STRIP) -R .comment -s '$@'
|
||||||
@if [ '$(TARGET_ARCH)' = 'amd64' ]; then \
|
@if [ '$(TARGET_ARCH)' = 'amd64' ]; then \
|
||||||
for winVariant in nanoserver nanoserver1709; do \
|
for winVariant in nanoserver-sac2016 nanoserver-1709; do \
|
||||||
mkdir -p "$(@D)/$$winVariant"; \
|
mkdir -p "$(@D)/$$winVariant"; \
|
||||||
'$@' | sed \
|
'$@' | sed \
|
||||||
-e 's/[(]$(TARGET_ARCH)[)]/(windows-$(TARGET_ARCH))/g' \
|
-e 's/[(]$(TARGET_ARCH)[)]/(windows-$(TARGET_ARCH))/g' \
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
FROM microsoft/nanoserver
|
FROM microsoft/nanoserver:sac2016
|
||||||
COPY hello.txt C:
|
COPY hello.txt C:
|
||||||
CMD ["cmd", "/C", "type C:\\hello.txt"]
|
CMD ["cmd", "/C", "type C:\\hello.txt"]
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
FROM microsoft/nanoserver
|
FROM microsoft/nanoserver:sac2016
|
||||||
COPY hello.txt C:
|
COPY hello.txt C:
|
||||||
CMD ["cmd", "/C", "type C:\\hello.txt"]
|
CMD ["cmd", "/C", "type C:\\hello.txt"]
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
FROM microsoft/nanoserver
|
FROM microsoft/nanoserver:sac2016
|
||||||
COPY hello.txt C:
|
COPY hello.txt C:
|
||||||
CMD ["cmd", "/C", "type C:\\hello.txt"]
|
CMD ["cmd", "/C", "type C:\\hello.txt"]
|
||||||
|
|
@ -62,7 +62,7 @@ for arch in "${arches[@]}"; do
|
||||||
EOE
|
EOE
|
||||||
done
|
done
|
||||||
|
|
||||||
for winVariant in nanoserver nanoserver1709; do
|
for winVariant in nanoserver-sac2016 nanoserver-1709; do
|
||||||
winArches=( *"/$image/$winVariant/hello.txt" )
|
winArches=( *"/$image/$winVariant/hello.txt" )
|
||||||
winArches=( "${winArches[@]%"/$image/$winVariant/hello.txt"}" )
|
winArches=( "${winArches[@]%"/$image/$winVariant/hello.txt"}" )
|
||||||
|
|
||||||
|
|
@ -70,7 +70,7 @@ for winVariant in nanoserver nanoserver1709; do
|
||||||
echo
|
echo
|
||||||
cat <<-EOE
|
cat <<-EOE
|
||||||
Tags: $winVariant
|
Tags: $winVariant
|
||||||
SharedTags: latest
|
SharedTags: nanoserver, latest
|
||||||
Architectures: $(join ', ' "${winArches[@]/#/windows-}")
|
Architectures: $(join ', ' "${winArches[@]/#/windows-}")
|
||||||
EOE
|
EOE
|
||||||
for arch in "${winArches[@]}"; do
|
for arch in "${winArches[@]}"; do
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ set -x
|
||||||
|
|
||||||
docker build -f Dockerfile.build -t hello-world:build .
|
docker build -f Dockerfile.build -t hello-world:build .
|
||||||
|
|
||||||
rm -rf */hello */nanoserver/hello.txt
|
rm -rf */hello */nanoserver*/hello.txt
|
||||||
docker run --rm hello-world:build sh -c 'find \( -name hello -or -name hello.txt \) -print0 | xargs -0 tar --create' | tar --extract --verbose
|
docker run --rm hello-world:build sh -c 'find \( -name hello -or -name hello.txt \) -print0 | xargs -0 tar --create' | tar --extract --verbose
|
||||||
|
|
||||||
for h in amd64/*/hello; do
|
for h in amd64/*/hello; do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue