Skip to content

Commit 3682e16

Browse files
committed
Update to Alpine 3.10
This also removes/updates a few unnecessary or outdated bits, including the workaround patches for #4 (which don't seem to be required anymore). Closes #4
1 parent fe0fe8a commit 3682e16

11 files changed

+31
-51
lines changed

3.0/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.9
1+
FROM alpine:3.10
22

33
# gpg: key 64EA74AB: public key "Chet Ramey <[email protected]>" imported
44
ENV _BASH_GPG_KEY 7C0135FB088AAF6C66C650B9BB5869F064EA74AB
@@ -10,11 +10,10 @@ ENV _BASH_PATCH_LEVEL 16
1010
ENV _BASH_LATEST_PATCH 22
1111
# prefixed with "_" since "$BASH..." have meaning in Bash parlance
1212

13-
RUN set -ex; \
13+
RUN set -eux; \
1414
\
1515
apk add --no-cache --virtual .build-deps \
1616
bison \
17-
ca-certificates \
1817
coreutils \
1918
dpkg-dev dpkg \
2019
gcc \

3.1/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.9
1+
FROM alpine:3.10
22

33
# gpg: key 64EA74AB: public key "Chet Ramey <[email protected]>" imported
44
ENV _BASH_GPG_KEY 7C0135FB088AAF6C66C650B9BB5869F064EA74AB
@@ -10,11 +10,10 @@ ENV _BASH_PATCH_LEVEL 0
1010
ENV _BASH_LATEST_PATCH 23
1111
# prefixed with "_" since "$BASH..." have meaning in Bash parlance
1212

13-
RUN set -ex; \
13+
RUN set -eux; \
1414
\
1515
apk add --no-cache --virtual .build-deps \
1616
bison \
17-
ca-certificates \
1817
coreutils \
1918
dpkg-dev dpkg \
2019
gcc \
@@ -119,7 +118,7 @@ RUN set -ex; \
119118
\
120119
[ "$(which bash)" = '/usr/local/bin/bash' ]; \
121120
bash --version; \
122-
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "$_BASH_VERSION.$_BASH_LATEST_PATCH" ];
121+
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "${_BASH_VERSION%%-*}.$_BASH_LATEST_PATCH" ];
123122

124123
COPY docker-entrypoint.sh /usr/local/bin/
125124
ENTRYPOINT ["docker-entrypoint.sh"]

3.2/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.9
1+
FROM alpine:3.10
22

33
# gpg: key 64EA74AB: public key "Chet Ramey <[email protected]>" imported
44
ENV _BASH_GPG_KEY 7C0135FB088AAF6C66C650B9BB5869F064EA74AB
@@ -10,11 +10,10 @@ ENV _BASH_PATCH_LEVEL 57
1010
ENV _BASH_LATEST_PATCH 57
1111
# prefixed with "_" since "$BASH..." have meaning in Bash parlance
1212

13-
RUN set -ex; \
13+
RUN set -eux; \
1414
\
1515
apk add --no-cache --virtual .build-deps \
1616
bison \
17-
ca-certificates \
1817
coreutils \
1918
dpkg-dev dpkg \
2019
gcc \
@@ -119,7 +118,7 @@ RUN set -ex; \
119118
\
120119
[ "$(which bash)" = '/usr/local/bin/bash' ]; \
121120
bash --version; \
122-
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "$_BASH_VERSION.$_BASH_LATEST_PATCH" ];
121+
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "${_BASH_VERSION%%-*}.$_BASH_LATEST_PATCH" ];
123122

124123
COPY docker-entrypoint.sh /usr/local/bin/
125124
ENTRYPOINT ["docker-entrypoint.sh"]

4.0/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.9
1+
FROM alpine:3.10
22

33
# gpg: key 64EA74AB: public key "Chet Ramey <[email protected]>" imported
44
ENV _BASH_GPG_KEY 7C0135FB088AAF6C66C650B9BB5869F064EA74AB
@@ -10,12 +10,11 @@ ENV _BASH_PATCH_LEVEL 0
1010
ENV _BASH_LATEST_PATCH 44
1111
# prefixed with "_" since "$BASH..." have meaning in Bash parlance
1212

13-
RUN set -ex; \
13+
RUN set -eux; \
1414
\
1515
apk add --no-cache --virtual .build-deps \
1616
autoconf \
1717
bison \
18-
ca-certificates \
1918
coreutils \
2019
dpkg-dev dpkg \
2120
gcc \
@@ -122,7 +121,7 @@ RUN set -ex; \
122121
\
123122
[ "$(which bash)" = '/usr/local/bin/bash' ]; \
124123
bash --version; \
125-
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "$_BASH_VERSION.$_BASH_LATEST_PATCH" ];
124+
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "${_BASH_VERSION%%-*}.$_BASH_LATEST_PATCH" ];
126125

127126
COPY docker-entrypoint.sh /usr/local/bin/
128127
ENTRYPOINT ["docker-entrypoint.sh"]

4.1/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.9
1+
FROM alpine:3.10
22

33
# gpg: key 64EA74AB: public key "Chet Ramey <[email protected]>" imported
44
ENV _BASH_GPG_KEY 7C0135FB088AAF6C66C650B9BB5869F064EA74AB
@@ -10,11 +10,10 @@ ENV _BASH_PATCH_LEVEL 0
1010
ENV _BASH_LATEST_PATCH 17
1111
# prefixed with "_" since "$BASH..." have meaning in Bash parlance
1212

13-
RUN set -ex; \
13+
RUN set -eux; \
1414
\
1515
apk add --no-cache --virtual .build-deps \
1616
bison \
17-
ca-certificates \
1817
coreutils \
1918
dpkg-dev dpkg \
2019
gcc \
@@ -119,7 +118,7 @@ RUN set -ex; \
119118
\
120119
[ "$(which bash)" = '/usr/local/bin/bash' ]; \
121120
bash --version; \
122-
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "$_BASH_VERSION.$_BASH_LATEST_PATCH" ];
121+
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "${_BASH_VERSION%%-*}.$_BASH_LATEST_PATCH" ];
123122

124123
COPY docker-entrypoint.sh /usr/local/bin/
125124
ENTRYPOINT ["docker-entrypoint.sh"]

4.2/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.9
1+
FROM alpine:3.10
22

33
# gpg: key 64EA74AB: public key "Chet Ramey <[email protected]>" imported
44
ENV _BASH_GPG_KEY 7C0135FB088AAF6C66C650B9BB5869F064EA74AB
@@ -10,11 +10,10 @@ ENV _BASH_PATCH_LEVEL 53
1010
ENV _BASH_LATEST_PATCH 53
1111
# prefixed with "_" since "$BASH..." have meaning in Bash parlance
1212

13-
RUN set -ex; \
13+
RUN set -eux; \
1414
\
1515
apk add --no-cache --virtual .build-deps \
1616
bison \
17-
ca-certificates \
1817
coreutils \
1918
dpkg-dev dpkg \
2019
gcc \
@@ -119,7 +118,7 @@ RUN set -ex; \
119118
\
120119
[ "$(which bash)" = '/usr/local/bin/bash' ]; \
121120
bash --version; \
122-
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "$_BASH_VERSION.$_BASH_LATEST_PATCH" ];
121+
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "${_BASH_VERSION%%-*}.$_BASH_LATEST_PATCH" ];
123122

124123
COPY docker-entrypoint.sh /usr/local/bin/
125124
ENTRYPOINT ["docker-entrypoint.sh"]

4.3/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.9
1+
FROM alpine:3.10
22

33
# gpg: key 64EA74AB: public key "Chet Ramey <[email protected]>" imported
44
ENV _BASH_GPG_KEY 7C0135FB088AAF6C66C650B9BB5869F064EA74AB
@@ -10,14 +10,14 @@ ENV _BASH_PATCH_LEVEL 30
1010
ENV _BASH_LATEST_PATCH 48
1111
# prefixed with "_" since "$BASH..." have meaning in Bash parlance
1212

13-
RUN set -ex; \
13+
RUN set -eux; \
1414
\
1515
apk add --no-cache --virtual .build-deps \
1616
bison \
17-
ca-certificates \
1817
coreutils \
1918
dpkg-dev dpkg \
2019
gcc \
20+
gettext-dev \
2121
gnupg \
2222
libc-dev \
2323
make \
@@ -120,7 +120,7 @@ RUN set -ex; \
120120
\
121121
[ "$(which bash)" = '/usr/local/bin/bash' ]; \
122122
bash --version; \
123-
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "$_BASH_VERSION.$_BASH_LATEST_PATCH" ];
123+
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "${_BASH_VERSION%%-*}.$_BASH_LATEST_PATCH" ];
124124

125125
COPY docker-entrypoint.sh /usr/local/bin/
126126
ENTRYPOINT ["docker-entrypoint.sh"]

4.4/Dockerfile

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.9
1+
FROM alpine:3.10
22

33
# gpg: key 64EA74AB: public key "Chet Ramey <[email protected]>" imported
44
ENV _BASH_GPG_KEY 7C0135FB088AAF6C66C650B9BB5869F064EA74AB
@@ -10,14 +10,14 @@ ENV _BASH_PATCH_LEVEL 18
1010
ENV _BASH_LATEST_PATCH 23
1111
# prefixed with "_" since "$BASH..." have meaning in Bash parlance
1212

13-
RUN set -ex; \
13+
RUN set -eux; \
1414
\
1515
apk add --no-cache --virtual .build-deps \
1616
bison \
17-
ca-certificates \
1817
coreutils \
1918
dpkg-dev dpkg \
2019
gcc \
20+
gettext-dev \
2121
gnupg \
2222
libc-dev \
2323
make \
@@ -79,15 +79,6 @@ RUN set -ex; \
7979
rmdir bash-patches; \
8080
fi; \
8181
\
82-
# temporarily apply Alpine's patch to fix process substitution hanging in 4.4
83-
# see https://github.com/tianon/docker-bash/issues/4
84-
# and https://lists.gnu.org/archive/html/bug-bash/2017-12/msg00025.html
85-
# and https://github.com/alpinelinux/aports/commit/3239e62fb1c7968e923016358345a4dcc7e2f87d
86-
wget -O alpine-fix-jobs.patch 'https://github.com/alpinelinux/aports/raw/6c1881db229de5cdc49bc974b7b99badc3e187aa/main/bash/fix-jobs.patch'; \
87-
echo '79473c41e620d78d25139b56c37d18adac5c03dc28939f218729dfcd3558d8cbac5e83db814ffd27aa833cd3e55f81aad26aaf62af3688c927d8ac2a4172eaa4 *alpine-fix-jobs.patch' | sha512sum -c -; \
88-
patch --directory=/usr/src/bash --input="$PWD/alpine-fix-jobs.patch" --strip=1; \
89-
rm alpine-fix-jobs.patch; \
90-
\
9182
cd /usr/src/bash; \
9283
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
9384
# update "config.guess" and "config.sub" to get more aggressively inclusive architecture support
@@ -129,7 +120,7 @@ RUN set -ex; \
129120
\
130121
[ "$(which bash)" = '/usr/local/bin/bash' ]; \
131122
bash --version; \
132-
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "$_BASH_VERSION.$_BASH_LATEST_PATCH" ];
123+
[ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "${_BASH_VERSION%%-*}.$_BASH_LATEST_PATCH" ];
133124

134125
COPY docker-entrypoint.sh /usr/local/bin/
135126
ENTRYPOINT ["docker-entrypoint.sh"]

5.0/Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.9
1+
FROM alpine:3.10
22

33
# gpg: key 64EA74AB: public key "Chet Ramey <[email protected]>" imported
44
ENV _BASH_GPG_KEY 7C0135FB088AAF6C66C650B9BB5869F064EA74AB
@@ -10,11 +10,10 @@ ENV _BASH_PATCH_LEVEL 0
1010
ENV _BASH_LATEST_PATCH 7
1111
# prefixed with "_" since "$BASH..." have meaning in Bash parlance
1212

13-
RUN set -ex; \
13+
RUN set -eux; \
1414
\
1515
apk add --no-cache --virtual .build-deps \
1616
bison \
17-
ca-certificates \
1817
coreutils \
1918
dpkg-dev dpkg \
2019
gcc \
@@ -81,10 +80,6 @@ RUN set -ex; \
8180
\
8281
cd /usr/src/bash; \
8382
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
84-
# update "config.guess" and "config.sub" to get more aggressively inclusive architecture support
85-
for f in config.guess config.sub; do \
86-
wget -O "support/$f" "https://git.savannah.gnu.org/cgit/config.git/plain/$f?id=7d3d27baf8107b630586c962c057e22149653deb"; \
87-
done; \
8883
./configure \
8984
--build="$gnuArch" \
9085
--enable-readline \

generate-stackbrew-library.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/bin/bash
2-
set -eu
1+
#!/usr/bin/env bash
2+
set -Eeuo pipefail
33

44
declare -A aliases=(
55
[5.1-rc]='rc'

update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/bin/bash
2-
set -euo pipefail
1+
#!/usr/bin/env bash
2+
set -Eeuo pipefail
33

44
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
55

0 commit comments

Comments
 (0)