Skip to content

Commit

Permalink
Merge pull request #77 from ckan/Remove-Supervisor-plus-tidyup
Browse files Browse the repository at this point in the history
Updates to CKAN 2.11 and master images (remove supervisor and tidy up)
  • Loading branch information
kowh-ai authored Oct 11, 2024
2 parents dea7460 + 6740ece commit 02dc531
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 136 deletions.
Binary file removed ContainerCanary/canary_darwin_amd64
Binary file not shown.
1 change: 0 additions & 1 deletion ContainerCanary/canary_darwin_amd64.sha256sum

This file was deleted.

34 changes: 0 additions & 34 deletions ContainerCanary/ckan.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions README.ContainerCanary.txt

This file was deleted.

1 change: 0 additions & 1 deletion ckan-2.10/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ COPY setup/supervisord.conf /etc
# Install CKAN
RUN pip3 install -e git+${GIT_URL}@${GIT_BRANCH}#egg=ckan && \
cd ${SRC_DIR}/ckan && \
cp who.ini ${APP_DIR} && \
pip3 install --no-binary markdown -r requirements.txt && \
# Install CKAN envvars to support loading config from environment variables
pip3 install -e git+https://github.com/okfn/[email protected]#egg=ckanext-envvars && \
Expand Down
10 changes: 0 additions & 10 deletions ckan-2.11/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,12 @@ RUN apt-get install --no-install-recommends -y \
# Create the src directory
RUN mkdir -p ${SRC_DIR}

# Install supervisord and create the supervisord.d directory
RUN apt-get install --no-install-recommends -y \
supervisor && \
mkdir /etc/supervisord.d

COPY setup/supervisord.conf /etc

# Install uwsgi, the CKAN application, the dependency packages for CKAN plus some confiquration
RUN pip3 install -U pip && \
pip3 install uwsgi && \
cd ${SRC_DIR} && \
pip3 install -e git+${GIT_URL}@${CKAN_VERSION}#egg=ckan && \
cd ckan && \
cp who.ini ${APP_DIR} && \
pip3 install --no-binary markdown -r requirements.txt && \
# Install CKAN envvars to support loading config from environment variables
pip3 install -e git+https://github.com/okfn/[email protected]#egg=ckanext-envvars && \
Expand All @@ -85,6 +77,4 @@ ONBUILD RUN mkdir /docker-entrypoint.d

EXPOSE 5000

HEALTHCHECK --interval=60s --timeout=5s --retries=5 CMD curl --fail http://localhost:5000/api/3/action/status_show || exit CMD ["/srv/app/start_ckan.sh"]

CMD ["/srv/app/start_ckan.sh"]
2 changes: 0 additions & 2 deletions ckan-2.11/base/setup/start_ckan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ UWSGI_OPTS="--plugins http,python \

if [ $? -eq 0 ]
then
# Start supervisord
supervisord --configuration /etc/supervisord.conf &
# Start uwsgi
uwsgi $UWSGI_OPTS
else
Expand Down
23 changes: 0 additions & 23 deletions ckan-2.11/base/setup/supervisord.conf

This file was deleted.

2 changes: 0 additions & 2 deletions ckan-2.11/base/setup/uwsgi.conf

This file was deleted.

9 changes: 0 additions & 9 deletions ckan-master/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ RUN apt-get install --no-install-recommends -y \
# Create the src directory
RUN mkdir -p ${SRC_DIR}

# Install supervisord and create the supervisord.d directory
RUN apt-get install --no-install-recommends -y \
supervisor && \
mkdir /etc/supervisord.d

COPY setup/supervisord.conf /etc

# Install uwsgi, the CKAN application, the dependency packages for CKAN plus some confiquration
RUN pip3 install -U pip && \
pip3 install uwsgi && \
Expand Down Expand Up @@ -84,6 +77,4 @@ ONBUILD RUN mkdir /docker-entrypoint.d

EXPOSE 5000

HEALTHCHECK --interval=60s --timeout=5s --retries=5 CMD curl --fail http://localhost:5000/api/3/action/status_show || exit CMD ["/srv/app/start_ckan.sh"]

CMD ["/srv/app/start_ckan.sh"]
2 changes: 0 additions & 2 deletions ckan-master/base/setup/start_ckan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ UWSGI_OPTS="--plugins http,python \

if [ $? -eq 0 ]
then
# Start supervisord
supervisord --configuration /etc/supervisord.conf &
# Start uwsgi
uwsgi $UWSGI_OPTS
else
Expand Down
23 changes: 0 additions & 23 deletions ckan-master/base/setup/supervisord.conf

This file was deleted.

2 changes: 0 additions & 2 deletions ckan-master/base/setup/uwsgi.conf

This file was deleted.

0 comments on commit 02dc531

Please sign in to comment.