commit
0077377968
|
@ -14,7 +14,7 @@ on:
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ckan-spatial
|
IMAGE_NAME: ckan-spatial
|
||||||
TAG: ghcr.io/${{ github.repository }}:${{ github.head_ref }}
|
TAG: ghcr.io/ckan-spatial::${{ github.head_ref }}
|
||||||
CONTEXT: .
|
CONTEXT: .
|
||||||
BRANCH: ${{ github.head_ref }}
|
BRANCH: ${{ github.head_ref }}
|
||||||
DOCKERFILE_PATH: /ckan
|
DOCKERFILE_PATH: /ckan
|
||||||
|
|
|
@ -5,7 +5,7 @@ on: workflow_dispatch
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ckan-spatial
|
IMAGE_NAME: ckan-spatial
|
||||||
TAG: ghcr.io/${{ github.repository }}:${{ github.ref_name }}
|
TAG: ghcr.io/ckan-spatial:${{ github.ref_name }}
|
||||||
CONTEXT: .
|
CONTEXT: .
|
||||||
BRANCH: ${{ github.ref_name }}
|
BRANCH: ${{ github.ref_name }}
|
||||||
DOCKERFILE_PATH: /ckan
|
DOCKERFILE_PATH: /ckan
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
FROM ghcr.io/mjanez/ckan-base-spatial:ckan-2.9.9-dev
|
FROM ghcr.io/mjanez/ckan-base-spatial:ckan-2.9.9-dev
|
||||||
LABEL maintainer="mnl.janez@gmail.com"
|
|
||||||
|
|
||||||
# Set up environment variables
|
# Set up environment variables
|
||||||
ENV APP_DIR=/srv/app
|
ENV APP_DIR=/srv/app \
|
||||||
ENV TZ=UTC
|
TZ=UTC \
|
||||||
ENV SRC_EXTENSIONS_DIR=/srv/app/src_extensions
|
SRC_EXTENSIONS_DIR=/srv/app/src_extensions
|
||||||
|
|
||||||
# Set working directory
|
|
||||||
WORKDIR ${APP_DIR}
|
|
||||||
|
|
||||||
RUN echo ${TZ} > /etc/timezone && \
|
RUN echo ${TZ} > /etc/timezone && \
|
||||||
set -ex && apk --no-cache add sudo && \
|
set -ex && apk --no-cache add sudo && \
|
||||||
|
@ -51,18 +47,18 @@ RUN echo ${TZ} > /etc/timezone && \
|
||||||
# to get them mounted in this image at runtime
|
# to get them mounted in this image at runtime
|
||||||
|
|
||||||
# Used to configure the container environment by setting environment variables, creating users, running initialization scripts, .etc
|
# Used to configure the container environment by setting environment variables, creating users, running initialization scripts, .etc
|
||||||
COPY docker-entrypoint.d/* docker-entrypoint.d/
|
COPY docker-entrypoint.d/* /docker-entrypoint.d/
|
||||||
|
|
||||||
# Update who.ini with PROXY_CKAN_LOCATION
|
# Update who.ini with PROXY_CKAN_LOCATION
|
||||||
COPY setup/who.ini ./
|
COPY setup/who.ini ${APP_DIR}/
|
||||||
|
|
||||||
# Override start_ckan.sh with DEV sh
|
# Override start_ckan.sh with DEV sh
|
||||||
COPY setup/start_ckan_development.sh.override start_ckan_development.sh
|
COPY setup/start_ckan_development.sh.override ${APP_DIR}/start_ckan_development.sh
|
||||||
RUN chmod +x start_ckan_development.sh
|
RUN chmod +x ${APP_DIR}/start_ckan_development.sh
|
||||||
|
|
||||||
# Apply any patches needed to CKAN core or any of the built extensions (not the
|
# Apply any patches needed to CKAN core or any of the built extensions (not the
|
||||||
# runtime mounted ones!)
|
# runtime mounted ones)
|
||||||
COPY patches patches
|
COPY patches ${APP_DIR}/patches
|
||||||
|
|
||||||
RUN for d in $APP_DIR/patches/*; do \
|
RUN for d in $APP_DIR/patches/*; do \
|
||||||
if [ -d $d ]; then \
|
if [ -d $d ]; then \
|
||||||
|
|
Loading…
Reference in New Issue