Skip to content

Commit

Permalink
Merge pull request #352 from LaurentGoderre/alpine3.21
Browse files Browse the repository at this point in the history
Add Alpine 3.21, drop 3.19
  • Loading branch information
tianon authored Dec 14, 2024
2 parents 5522016 + 5e96400 commit f0b8820
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 13 deletions.
5 changes: 4 additions & 1 deletion 5.0/alpine3.19/Dockerfile → 5.0/alpine3.21/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
2 changes: 1 addition & 1 deletion 5.1/alpine3.19/Dockerfile → 5.1/alpine3.21/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
2 changes: 1 addition & 1 deletion 6.0/alpine3.19/Dockerfile → 6.0/alpine3.21/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
5 changes: 5 additions & 0 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ RUN set -eux; \
echo "$adapter:" >> ./config/database.yml; \
echo " adapter: $adapter" >> ./config/database.yml; \
done; \
{{ if env.version == "5.0" and (env.variant | startswith("alpine")) and env.variant != "alpine3.20" then ( -}}
# Fix incompatibility with sqlite 1.4 in alpine 3.21
grep -q 'sqlite3", "~> 1.4.0"' Gemfile; \
sed -i -e 's/"sqlite3", "~> 1.4.0"/"sqlite3", "~> 1.5.0"/g' Gemfile; \
{{ ) else "" end -}}
gosu redmine bundle install --jobs "$(nproc)"; \
rm ./config/database.yml; \
# fix permissions for running as an arbitrary user
Expand Down
18 changes: 9 additions & 9 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"5.0": {
"alpine": "3.20",
"alpine": "3.21",
"debian": "bookworm",
"downloadUrl": "https://www.redmine.org/releases/redmine-5.0.10.tar.gz",
"ruby": {
Expand All @@ -9,13 +9,13 @@
"sha256": "cb0df0f6feb5a3198e59e36b239e9a1110011ed7078316bd1c8058247f5b9506",
"variants": [
"bookworm",
"alpine3.20",
"alpine3.19"
"alpine3.21",
"alpine3.20"
],
"version": "5.0.10"
},
"5.1": {
"alpine": "3.20",
"alpine": "3.21",
"debian": "bookworm",
"downloadUrl": "https://www.redmine.org/releases/redmine-5.1.4.tar.gz",
"ruby": {
Expand All @@ -24,13 +24,13 @@
"sha256": "f5738d6a107f231b8f4b0ae5410e0c45742d75e0ef30c4b31a27c0ac9dafd51c",
"variants": [
"bookworm",
"alpine3.20",
"alpine3.19"
"alpine3.21",
"alpine3.20"
],
"version": "5.1.4"
},
"6.0": {
"alpine": "3.20",
"alpine": "3.21",
"debian": "bookworm",
"downloadUrl": "https://www.redmine.org/releases/redmine-6.0.1.tar.gz",
"ruby": {
Expand All @@ -39,8 +39,8 @@
"sha256": "dcee3f15e3c15b9dbefba1fa9d8dfa12e89a7d40b3f3ed82da903d80d2548030",
"variants": [
"bookworm",
"alpine3.20",
"alpine3.19"
"alpine3.21",
"alpine3.20"
],
"version": "6.0.1"
}
Expand Down
2 changes: 1 addition & 1 deletion versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ supportedDebianSuites=(
bookworm
)
supportedAlpineVersions=(
3.21
3.20
3.19
)

defaultDebianSuite="${supportedDebianSuites[0]}"
Expand Down

0 comments on commit f0b8820

Please sign in to comment.