Skip to content

Commit

Permalink
change prod ckan image and remove sudo command
Browse files Browse the repository at this point in the history
  • Loading branch information
federicooldani committed Feb 22, 2024
1 parent c63c278 commit 3990cb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckan/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ckan/ckan:2.9.10
FROM ckan/ckan-base:2.9.10

LABEL maintainer='[email protected]'

Expand Down
4 changes: 2 additions & 2 deletions ckan/start_ckan.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Run the prerun script to init CKAN and create the default admin user
sudo -u ckan -EH python3 prerun.py
ckan -EH python3 prerun.py

# Run any startup scripts provided by images extending this one
if [[ -d "/docker-entrypoint.d" ]]
Expand All @@ -21,7 +21,7 @@ then
# Start supervisord
supervisord --configuration /etc/supervisord.conf &
# Start uwsgi
sudo -u ckan -EH uwsgi uwsgi.ini
ckan -EH uwsgi uwsgi.ini
else
echo "[prerun] failed...not starting CKAN."
fi

0 comments on commit 3990cb8

Please sign in to comment.