Skip to content

Commit

Permalink
Update Dockerfile.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez committed Sep 28, 2023
1 parent b3ea1d2 commit b1ef0b7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ckan/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,19 @@ COPY setup/who.ini ./
COPY setup/start_ckan_development.sh.override start_ckan_development.sh
RUN chmod +x start_ckan_development.sh

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

# Apply any patches needed to CKAN core or any of the built extensions (not the
# runtime mounted ones!)
COPY patches patches

RUN for d in $APP_DIR/patches/*; do \
if [ -d $d ]; then \
for f in `ls $d/*.patch | sort -g`; do \
if [ -d $SRC_EXTENSIONS_DIR/`basename "$d"` ]; then \
cd $SRC_EXTENSIONS_DIR/`basename "$d"` && \
echo "$0: Applying patch $f to $SRC_EXTENSIONS_DIR/`basename $d`" && \
if [ -d $SRC_DIR/`basename "$d"` ]; then \
cd $SRC_DIR/`basename "$d"` && \
echo "$0: Applying patch $f to $SRC_DIR/`basename $d`" && \
patch -p1 < "$f" ; \
else \
echo "$0: Skipping patch $f because directory $SRC_EXTENSIONS_DIR/`basename $d` does not exist. Built the extension: `basename $d`" ; \
echo "$0: Skipping patch $f because directory $SRC_DIR/`basename $d` does not exist. Built the extension: `basename $d`" ; \
fi \
done ; \
fi ; \
Expand Down

0 comments on commit b1ef0b7

Please sign in to comment.