Skip to content

Commit b3342bd

Browse files
authored
Merge pull request #249 from infosiftr/bullseye-alpine3.15
Update to Debian Bullseye, Alpine 3.15
2 parents 66108c6 + 9999693 commit b3342bd

File tree

9 files changed

+36
-26
lines changed

9 files changed

+36
-26
lines changed

4.0/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.6-slim-buster
1+
FROM ruby:2.6-slim-bullseye
22

33
# explicitly set uid/gid to guarantee that it won't change in the future
44
# the values 999:999 are identical to the current user/group id assigned
@@ -8,6 +8,7 @@ RUN set -eux; \
88
apt-get update; \
99
apt-get install -y --no-install-recommends \
1010
ca-certificates \
11+
curl \
1112
wget \
1213
\
1314
bzr \
@@ -43,7 +44,8 @@ ENV REDMINE_VERSION 4.0.9
4344
ENV REDMINE_DOWNLOAD_SHA256 04a772b0b8f8ce6493614a7cb22ed82cb9b43c75dcdbeb5c2f925bae98e0d5df
4445

4546
RUN set -eux; \
46-
wget -O redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz"; \
47+
# if we use wget here, we get certificate issues (https://github.com/docker-library/redmine/pull/249#issuecomment-984176479)
48+
curl -fL -o redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz"; \
4749
echo "$REDMINE_DOWNLOAD_SHA256 *redmine.tar.gz" | sha256sum -c -; \
4850
tar -xf redmine.tar.gz --strip-components=1; \
4951
rm redmine.tar.gz files/delete.me log/delete.me; \
@@ -60,9 +62,9 @@ RUN set -eux; \
6062
savedAptMark="$(apt-mark showmanual)"; \
6163
apt-get update; \
6264
apt-get install -y --no-install-recommends \
65+
default-libmysqlclient-dev \
6366
freetds-dev \
6467
gcc \
65-
libmariadbclient-dev \
6668
libpq-dev \
6769
libsqlite3-dev \
6870
make \

4.0/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.6-alpine3.13
1+
FROM ruby:2.6-alpine3.15
22

33
# explicitly set uid/gid to guarantee that it won't change in the future
44
# the values 999:999 are identical to the current user/group id assigned

4.1/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.6-slim-buster
1+
FROM ruby:2.6-slim-bullseye
22

33
# explicitly set uid/gid to guarantee that it won't change in the future
44
# the values 999:999 are identical to the current user/group id assigned
@@ -8,6 +8,7 @@ RUN set -eux; \
88
apt-get update; \
99
apt-get install -y --no-install-recommends \
1010
ca-certificates \
11+
curl \
1112
wget \
1213
\
1314
bzr \
@@ -46,7 +47,8 @@ ENV REDMINE_VERSION 4.1.5
4647
ENV REDMINE_DOWNLOAD_SHA256 624dfeab7db5cda35a03d791b5fa83a836717ca280856c51cd089ed638f8678e
4748

4849
RUN set -eux; \
49-
wget -O redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz"; \
50+
# if we use wget here, we get certificate issues (https://github.com/docker-library/redmine/pull/249#issuecomment-984176479)
51+
curl -fL -o redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz"; \
5052
echo "$REDMINE_DOWNLOAD_SHA256 *redmine.tar.gz" | sha256sum -c -; \
5153
tar -xf redmine.tar.gz --strip-components=1; \
5254
rm redmine.tar.gz files/delete.me log/delete.me; \
@@ -63,9 +65,9 @@ RUN set -eux; \
6365
savedAptMark="$(apt-mark showmanual)"; \
6466
apt-get update; \
6567
apt-get install -y --no-install-recommends \
68+
default-libmysqlclient-dev \
6669
freetds-dev \
6770
gcc \
68-
libmariadbclient-dev \
6971
libpq-dev \
7072
libsqlite3-dev \
7173
make \

4.1/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.6-alpine3.13
1+
FROM ruby:2.6-alpine3.15
22

33
# explicitly set uid/gid to guarantee that it won't change in the future
44
# the values 999:999 are identical to the current user/group id assigned

4.2/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.7-slim-buster
1+
FROM ruby:2.7-slim-bullseye
22

33
# explicitly set uid/gid to guarantee that it won't change in the future
44
# the values 999:999 are identical to the current user/group id assigned
@@ -8,6 +8,7 @@ RUN set -eux; \
88
apt-get update; \
99
apt-get install -y --no-install-recommends \
1010
ca-certificates \
11+
curl \
1112
wget \
1213
\
1314
bzr \
@@ -46,7 +47,8 @@ ENV REDMINE_VERSION 4.2.3
4647
ENV REDMINE_DOWNLOAD_SHA256 72f633dc954217948558889ca85325fe6410cd18a2d8b39358e5d75932a47a0c
4748

4849
RUN set -eux; \
49-
wget -O redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz"; \
50+
# if we use wget here, we get certificate issues (https://github.com/docker-library/redmine/pull/249#issuecomment-984176479)
51+
curl -fL -o redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz"; \
5052
echo "$REDMINE_DOWNLOAD_SHA256 *redmine.tar.gz" | sha256sum -c -; \
5153
tar -xf redmine.tar.gz --strip-components=1; \
5254
rm redmine.tar.gz files/delete.me log/delete.me; \
@@ -63,9 +65,9 @@ RUN set -eux; \
6365
savedAptMark="$(apt-mark showmanual)"; \
6466
apt-get update; \
6567
apt-get install -y --no-install-recommends \
68+
default-libmysqlclient-dev \
6669
freetds-dev \
6770
gcc \
68-
libmariadbclient-dev \
6971
libpq-dev \
7072
libsqlite3-dev \
7173
make \

4.2/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.7-alpine3.13
1+
FROM ruby:2.7-alpine3.15
22

33
# explicitly set uid/gid to guarantee that it won't change in the future
44
# the values 999:999 are identical to the current user/group id assigned

Dockerfile-alpine.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:%%RUBY_VERSION%%-alpine3.13
1+
FROM ruby:%%RUBY_VERSION%%-alpine3.15
22

33
# explicitly set uid/gid to guarantee that it won't change in the future
44
# the values 999:999 are identical to the current user/group id assigned

Dockerfile-debian.template

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:%%RUBY_VERSION%%-slim-buster
1+
FROM ruby:%%RUBY_VERSION%%-slim-bullseye
22

33
# explicitly set uid/gid to guarantee that it won't change in the future
44
# the values 999:999 are identical to the current user/group id assigned
@@ -8,6 +8,7 @@ RUN set -eux; \
88
apt-get update; \
99
apt-get install -y --no-install-recommends \
1010
ca-certificates \
11+
curl \
1112
wget \
1213
\
1314
bzr \
@@ -46,7 +47,8 @@ ENV REDMINE_VERSION %%REDMINE_VERSION%%
4647
ENV REDMINE_DOWNLOAD_SHA256 %%REDMINE_DOWNLOAD_SHA256%%
4748

4849
RUN set -eux; \
49-
wget -O redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz"; \
50+
# if we use wget here, we get certificate issues (https://github.com/docker-library/redmine/pull/249#issuecomment-984176479)
51+
curl -fL -o redmine.tar.gz "https://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz"; \
5052
echo "$REDMINE_DOWNLOAD_SHA256 *redmine.tar.gz" | sha256sum -c -; \
5153
tar -xf redmine.tar.gz --strip-components=1; \
5254
rm redmine.tar.gz files/delete.me log/delete.me; \
@@ -63,9 +65,9 @@ RUN set -eux; \
6365
savedAptMark="$(apt-mark showmanual)"; \
6466
apt-get update; \
6567
apt-get install -y --no-install-recommends \
68+
default-libmysqlclient-dev \
6669
freetds-dev \
6770
gcc \
68-
libmariadbclient-dev \
6971
libpq-dev \
7072
libsqlite3-dev \
7173
make \

generate-stackbrew-library.sh

Lines changed: 12 additions & 10 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
[4.2]='4 latest'
@@ -68,20 +68,22 @@ join() {
6868
}
6969

7070
for version in "${versions[@]}"; do
71+
# normally this would be down in the other loop, but "passenger" doesn't have it, so this is the simplest option (we just can't ever have "alpine" be out of sync, so we should remove it instead if it ever needs to be out of sync)
72+
commit="$(dirCommit "$version")"
73+
fullVersion="$(git show "$commit":"$version/Dockerfile" | awk '$1 == "ENV" && $2 == "REDMINE_VERSION" { print $3; exit }')"
74+
75+
versionAliases=(
76+
$fullVersion
77+
$version
78+
${aliases[$version]:-}
79+
)
80+
7181
for variant in '' passenger alpine; do
7282
dir="$version${variant:+/$variant}"
7383
[ -f "$dir/Dockerfile" ] || continue
7484

7585
commit="$(dirCommit "$dir")"
7686

77-
fullVersion="$(git show "$commit":"$dir/Dockerfile" | awk '$1 == "ENV" && $2 == "REDMINE_VERSION" { print $3; exit }')"
78-
79-
versionAliases=(
80-
$fullVersion
81-
$version
82-
${aliases[$version]:-}
83-
)
84-
8587
if [ -n "$variant" ]; then
8688
variantAliases=( "${versionAliases[@]/%/-$variant}" )
8789
variantAliases=( "${variantAliases[@]//latest-/}" )

0 commit comments

Comments
 (0)