Updated the dockerfile. Now the CKAN customizations are applied at build

time
This commit is contained in:
Francesco Mangiacrapa 2024-11-07 15:25:03 +01:00
parent aa11a60d57
commit 404998ed83
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
FROM harbor.d4science.org/external-services/ckan-legacy-269:latest
LABEL org.d4science.image.licenses="EUPL-1.2" \
org.d4science.image.source="https://code-repo.d4science.org/D4Science/ckan-2-6-legacy/src/branch/ckan-2-6-bluecloud" \
org.d4science.image.source="https://code-repo.d4science.org/D4Science/ckan-2-6-bluecloud" \
org.d4science.image.vendor="D4Science <https://www.d4science.org>" \
org.d4science.image.authors="Francesco Mangiacrapa <francesco.mangiacrapa@isti.cnr.it>"
@ -27,7 +27,7 @@ ARG E_USR_LOCAL_BIN=${USR_LOCAL_BIN}
ARG E_SRV_CUSTOMIZATIONS=${SRV_CUSTOMIZATIONS}
# Installa il client git (necessario solo se non è già presente nell'immagine base)
# rm -rf /var/lib/apt/lists/* pulisce la cache di apt, riducendo la dimensione dell'immagine finale.
# rm -rf /var/lib/apt/lists/* pulisce la cache di apt, riducendo la dimensione dellimmagine finale.
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# cleanup
@ -46,7 +46,7 @@ RUN mkdir $E_SRV_CUSTOMIZATIONS/scripts
COPY conf/file_installer.sh $E_SRV_CUSTOMIZATIONS/scripts/
RUN chmod +x $E_SRV_CUSTOMIZATIONS/scripts/file_installer.sh
RUN chown -R ckan:ckan $E_SRV_CUSTOMIZATIONS/
ENTRYPOINT ["/srv/ckan_customisations/scripts/file_installer.sh"]
# Applica le customizzazione tramite il file_installer.sh
RUN $E_SRV_CUSTOMIZATIONS/scripts/file_installer.sh
CMD ["/usr/bin/supervisord", "-n"]