Skip to content

Commit 1373933

Browse files
authored
Merge pull request #373 from techknowlogick/alpine3.14
Alpine 3.14
2 parents 6a48eee + f300e60 commit 1373933

File tree

10 files changed

+40
-52
lines changed

10 files changed

+40
-52
lines changed

1.15/alpine3.13/Dockerfile

-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.15/alpine3.12/Dockerfile 1.15/alpine3.14/Dockerfile

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.16/alpine3.13/Dockerfile

+5-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.16/alpine3.12/Dockerfile 1.16/alpine3.14/Dockerfile

+1-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.17-rc/alpine3.13/Dockerfile

+5-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.17-rc/alpine3.12/Dockerfile 1.17-rc/alpine3.14/Dockerfile

+1-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile-alpine.template

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM alpine:{{ env.variant | ltrimstr("alpine") }}
1+
{{ def alpine_version: env.variant | ltrimstr("alpine") -}}
2+
FROM alpine:{{ alpine_version }}
23

34
RUN apk add --no-cache \
45
ca-certificates
@@ -76,17 +77,28 @@ RUN set -eux; \
7677
cd /usr/local/go/src; \
7778
# set GOROOT_BOOTSTRAP + GOHOST* such that we can build Go successfully
7879
export GOROOT_BOOTSTRAP="$(go env GOROOT)" GOHOSTOS="$GOOS" GOHOSTARCH="$GOARCH"; \
79-
if [ "${GO386:-}" = 'softfloat' ]; then \
80+
{{
81+
def need_386_hack:
82+
(env.version == "1.15" and alpine_version != "3.13")
83+
or (env.version != "1.15" and alpine_version == "3.13")
84+
-}}
85+
{{ if need_386_hack then ( -}}
86+
if [ -n "${GO386:-}" ]; then \
8087
# https://github.com/docker-library/golang/issues/359 -> https://github.com/golang/go/issues/44500
81-
# (once our Alpine base has Go 1.16, we can remove this hack)
88+
# Go 1.15 + Alpine 3.14 == Go 1.16 bootstrap
89+
# Go 1.16 + Alpine 3.13 == Go 1.15 bootstrap
90+
# (once Go 1.15 *and* Alpine 3.13 go away, we can remove this)
8291
GO386= ./bootstrap.bash; \
8392
export GOROOT_BOOTSTRAP="/usr/local/go-$GOOS-$GOARCH-bootstrap"; \
8493
"$GOROOT_BOOTSTRAP/bin/go" version; \
8594
fi; \
95+
{{ ) else "" end -}}
8696
./make.bash; \
87-
if [ "${GO386:-}" = 'softfloat' ]; then \
97+
{{ if need_386_hack then ( -}}
98+
if [ -n "${GO386:-}" ]; then \
8899
rm -rf "$GOROOT_BOOTSTRAP"; \
89100
fi; \
101+
{{ ) else "" end -}}
90102
); \
91103
\
92104
# pre-compile the standard library, just like the official binary release tarballs do

generate-stackbrew-library.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defaultDebianSuite='buster'
1010
declare -A debianSuite=(
1111
#[1.13-rc]='buster'
1212
)
13-
defaultAlpineVersion='3.13'
13+
defaultAlpineVersion='3.14'
1414
declare -A alpineVersion=(
1515
#[1.9]='3.7'
1616
)

versions.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@
136136
"variants": [
137137
"buster",
138138
"stretch",
139+
"alpine3.14",
139140
"alpine3.13",
140-
"alpine3.12",
141141
"windows/windowsservercore-1809",
142142
"windows/windowsservercore-ltsc2016",
143143
"windows/nanoserver-1809"
@@ -290,8 +290,8 @@
290290
"variants": [
291291
"buster",
292292
"stretch",
293+
"alpine3.14",
293294
"alpine3.13",
294-
"alpine3.12",
295295
"windows/windowsservercore-1809",
296296
"windows/windowsservercore-ltsc2016",
297297
"windows/nanoserver-1809"
@@ -453,8 +453,8 @@
453453
"variants": [
454454
"buster",
455455
"stretch",
456+
"alpine3.14",
456457
"alpine3.13",
457-
"alpine3.12",
458458
"windows/windowsservercore-1809",
459459
"windows/windowsservercore-ltsc2016",
460460
"windows/nanoserver-1809"

versions.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ for version in "${versions[@]}"; do
131131
"buster",
132132
"stretch",
133133
(
134-
"3.13",
135-
"3.12"
134+
"3.14",
135+
"3.13"
136136
| "alpine" + .),
137137
if .arches | has("windows-amd64") then
138138
(

0 commit comments

Comments
 (0)