Skip to content

Commit b4f1e1c

Browse files
authored
Merge pull request #41 from infosiftr/sac2016
Use new microsoft/nanoserver tags (sac2016)
2 parents e2bcd7a + d206a43 commit b4f1e1c

File tree

17 files changed

+9
-9
lines changed

17 files changed

+9
-9
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*.md
22
*.sh
33
**/hello
4-
**/nanoserver/hello.txt
4+
**/nanoserver*/hello.txt
55
.dockerignore
66
.git
77
Dockerfile*

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ before_script:
1010

1111
script:
1212
- ./update.sh
13-
- test -z "$(git status --porcelain '**/hello' '**/nanoserver/hello.txt')"
13+
- test -z "$(git status --porcelain '**/hello' '**/nanoserver*/hello.txt')"
1414
- travis_retry docker build -t "$image" amd64/hello-world
1515
- ~/official-images/test/run.sh "$image"
1616

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $(C_TARGETS): hello.c
1212
$(CC) $(CFLAGS) -o '$@' -D DOCKER_IMAGE='"$(notdir $(@D))"' -D DOCKER_GREETING="\"$$(cat 'greetings/$(notdir $(@D)).txt')\"" -D DOCKER_ARCH='"$(TARGET_ARCH)"' '$<'
1313
$(STRIP) -R .comment -s '$@'
1414
@if [ '$(TARGET_ARCH)' = 'amd64' ]; then \
15-
for winVariant in nanoserver nanoserver1709; do \
15+
for winVariant in nanoserver-sac2016 nanoserver-1709; do \
1616
mkdir -p "$(@D)/$$winVariant"; \
1717
'$@' | sed \
1818
-e 's/[(]$(TARGET_ARCH)[)]/(windows-$(TARGET_ARCH))/g' \
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM microsoft/nanoserver
1+
FROM microsoft/nanoserver:sac2016
22
COPY hello.txt C:
33
CMD ["cmd", "/C", "type C:\\hello.txt"]
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM microsoft/nanoserver
1+
FROM microsoft/nanoserver:sac2016
22
COPY hello.txt C:
33
CMD ["cmd", "/C", "type C:\\hello.txt"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM microsoft/nanoserver
1+
FROM microsoft/nanoserver:sac2016
22
COPY hello.txt C:
33
CMD ["cmd", "/C", "type C:\\hello.txt"]

generate-stackbrew-library.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ for arch in "${arches[@]}"; do
6262
EOE
6363
done
6464

65-
for winVariant in nanoserver nanoserver1709; do
65+
for winVariant in nanoserver-sac2016 nanoserver-1709; do
6666
winArches=( *"/$image/$winVariant/hello.txt" )
6767
winArches=( "${winArches[@]%"/$image/$winVariant/hello.txt"}" )
6868

6969
if [ "${#winArches[@]}" -gt 0 ]; then
7070
echo
7171
cat <<-EOE
7272
Tags: $winVariant
73-
SharedTags: latest
73+
SharedTags: nanoserver, latest
7474
Architectures: $(join ', ' "${winArches[@]/#/windows-}")
7575
EOE
7676
for arch in "${winArches[@]}"; do

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -x
77

88
docker build -f Dockerfile.build -t hello-world:build .
99

10-
rm -rf */hello */nanoserver/hello.txt
10+
rm -rf */hello */nanoserver*/hello.txt
1111
docker run --rm hello-world:build sh -c 'find \( -name hello -or -name hello.txt \) -print0 | xargs -0 tar --create' | tar --extract --verbose
1212

1313
for h in amd64/*/hello; do

0 commit comments

Comments
 (0)