Skip to content

Commit 0c5948b

Browse files
J0WItianon
authored andcommitted
Add Alpine 3.14
Also add "g++" during compilation (the upstream configure script looks for it, even though it doesn't appear to be used).
1 parent 761ae37 commit 0c5948b

File tree

13 files changed

+47
-11
lines changed

13 files changed

+47
-11
lines changed

2.6/alpine3.13/Dockerfile

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

2.6/alpine3.12/Dockerfile renamed to 2.6/alpine3.14/Dockerfile

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

2.6/slim-buster/Dockerfile

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

2.6/slim-stretch/Dockerfile

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

2.7/alpine3.13/Dockerfile

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

2.7/alpine3.12/Dockerfile renamed to 2.7/alpine3.14/Dockerfile

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

2.7/slim-buster/Dockerfile

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

3.0/alpine3.13/Dockerfile

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

3.0/alpine3.12/Dockerfile renamed to 3.0/alpine3.14/Dockerfile

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

3.0/slim-buster/Dockerfile

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

Dockerfile.template

+19
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ RUN set -eux; \
6868
ca-certificates \
6969
coreutils \
7070
dpkg-dev dpkg \
71+
g++ \
7172
gcc \
7273
gdbm-dev \
7374
glib-dev \
@@ -99,6 +100,7 @@ RUN set -eux; \
99100
ruby \
100101
{{ if is_slim then ( -}}
101102
autoconf \
103+
g++ \
102104
gcc \
103105
libbz2-dev \
104106
libglib2.0-dev \
@@ -136,6 +138,23 @@ RUN set -eux; \
136138
patch -p1 -i thread-stack-fix.patch; \
137139
rm thread-stack-fix.patch; \
138140
\
141+
{{
142+
{
143+
"2.6": {
144+
url: "https://github.com/ruby/ruby/pull/3773",
145+
commit: "fcc88da5eb162043adcba552646677d2ab5adf55",
146+
sha256: "62eefa55030788d409003eccd945ccc408f02fe0d71616ed1c1bdcaf7a2f8a54",
147+
},
148+
}[env.version] | if . and env.variant != "alpine3.13" then (
149+
-}}
150+
# https://bugs.ruby-lang.org/issues/17723 (building with autoconf 2.70+ fails)
151+
# {{ .url }}
152+
wget -O 'autoconf-2.70.patch' 'https://github.com/ruby/ruby/commit/{{ .commit }}.patch'; \
153+
echo '{{ .sha256 }} *autoconf-2.70.patch' | sha256sum --check --strict; \
154+
patch -p1 -i autoconf-2.70.patch; \
155+
rm autoconf-2.70.patch; \
156+
\
157+
{{ ) else "" end -}}
139158
# the configure script does not detect isnan/isinf as macros
140159
export ac_cv_func_isnan=yes ac_cv_func_isinf=yes; \
141160
\

versions.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"slim-buster",
77
"stretch",
88
"slim-stretch",
9-
"alpine3.13",
10-
"alpine3.12"
9+
"alpine3.14",
10+
"alpine3.13"
1111
],
1212
"version": "2.6.8"
1313
},
@@ -16,8 +16,8 @@
1616
"variants": [
1717
"buster",
1818
"slim-buster",
19-
"alpine3.13",
20-
"alpine3.12"
19+
"alpine3.14",
20+
"alpine3.13"
2121
],
2222
"version": "2.7.4"
2323
},
@@ -26,8 +26,8 @@
2626
"variants": [
2727
"buster",
2828
"slim-buster",
29-
"alpine3.13",
30-
"alpine3.12"
29+
"alpine3.14",
30+
"alpine3.13"
3131
],
3232
"version": "3.0.2"
3333
}

versions.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ for version in "${versions[@]}"; do
7474
else empty end
7575
| ., "slim-" + .), # https://github.com/docker-library/ruby/pull/142#issuecomment-320012893
7676
(
77-
"3.13",
78-
"3.12"
77+
"3.14",
78+
"3.13"
7979
| "alpine" + .)
8080
],
8181
}

0 commit comments

Comments
 (0)