Skip to content

Commit

Permalink
Remove cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jan 30, 2025
1 parent 2838b9b commit 7c01630
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -130,30 +130,6 @@ RUN set -eux; \
wget -O redmine.tar.gz "$REDMINE_DOWNLOAD_URL"; \
echo "$REDMINE_DOWNLOAD_SHA256 *redmine.tar.gz" | sha256sum -c -; \
tar -xf redmine.tar.gz --strip-components=1; \
{{ if .version | IN("5.0.10", "5.1.5") then ( -}}
# https://www.redmine.org/issues/42113 (aka https://github.com/rails/rails/issues/54260)
# 5.1: https://github.com/redmine/redmine/commit/c7b1f00fc1b42fd9f77b8e6574dae453ced642b4
# 5.0: https://github.com/redmine/redmine/commit/f27570120b7a672249bfebfe4d62da506785e146
{{ if is_alpine then ( -}}
apk add --no-cache patch; \
{{ ) else ( -}}
savedAptMark="$(apt-mark showmanual)"; \
apt-get update; \
apt-get install -y --no-install-recommends patch; \
{{ ) end -}}
wget -O 42113.patch 'https://github.com/redmine/redmine/commit/c7b1f00fc1b42fd9f77b8e6574dae453ced642b4.patch?full_index=1'; \
echo 'e352699be3995ff6e3b0066a478e377922fa95ce9fe4729240cd98dcee3c8575 *42113.patch' | sha256sum -c -; \
patch -p1 < 42113.patch; \
rm 42113.patch; \
{{ if is_alpine then ( -}}
apk del --no-network patch; \
{{ ) else ( -}}
apt-mark auto '.*' > /dev/null; \
apt-mark manual $savedAptMark > /dev/null; \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
rm -rf /var/lib/apt/lists/*; \
{{ ) end -}}
{{ ) else "" end -}}
rm redmine.tar.gz files/delete.me log/delete.me; \
mkdir -p log public/plugin_assets sqlite tmp/pdf tmp/pids; \
chown -R redmine:redmine ./; \
Expand Down

0 comments on commit 7c01630

Please sign in to comment.