Skip to content

Commit

Permalink
Fix version 5.0 in alpine 3.21
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGoderre committed Dec 13, 2024
1 parent 6c76637 commit 6120067
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 5.0/alpine3.21/Dockerfile

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

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

0 comments on commit 6120067

Please sign in to comment.