Skip to content

Commit

Permalink
Apply patches in prod images as well
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 17, 2023
1 parent f653b03 commit 2e46f06
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ckan/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@ FROM ckan/ckan-base:2.10.1

# Copy custom initialization scripts
COPY docker-entrypoint.d/* /docker-entrypoint.d/

# Apply any patches needed to CKAN core or any of the built extensions (not the
# runtime mounted ones)
COPY patches ${APP_DIR}/patches

RUN for d in $APP_DIR/patches/*; do \
if [ -d $d ]; then \
for f in `ls $d/*.patch | sort -g`; do \
cd $SRC_DIR/`basename "$d"` && echo "$0: Applying patch $f to $SRC_DIR/`basename $d`"; patch -p1 < "$f" ; \
done ; \
fi ; \
done

0 comments on commit 2e46f06

Please sign in to comment.