diff --git a/images/ckan/2.7/Dockerfile b/images/ckan/2.7/Dockerfile index 5974c69..3d90fd7 100644 --- a/images/ckan/2.7/Dockerfile +++ b/images/ckan/2.7/Dockerfile @@ -170,6 +170,9 @@ RUN pip install -e /srv/app/src/ckan && \ # Remove wheels RUN rm -rf /srv/app/wheels /srv/app/ext_wheels +# Install python2 secrets for generating sessions +RUN pip install python2-secrets + # Copy necessary scripts COPY setup/app ${APP_DIR} diff --git a/images/ckan/2.7/setup/app/start_ckan.sh b/images/ckan/2.7/setup/app/start_ckan.sh index 0ddca0d..5486656 100755 --- a/images/ckan/2.7/setup/app/start_ckan.sh +++ b/images/ckan/2.7/setup/app/start_ckan.sh @@ -17,7 +17,7 @@ if [[ -z $BEAKER_SESSION_SECRET || -v $BEAKER_SESSION_SECRET ]];then echo "Not all environment variables are set. Generating sessions..." else echo "Setting session secrets from environment variables" - paster --plugin=ckan $APP_DIR/production.ini "beaker.session.secret=$BEAKER_SESSION_SECRET" + paster --plugin=ckan config-tool $APP_DIR/production.ini "beaker.session.secret=$BEAKER_SESSION_SECRET" fi if grep -E "beaker.session.secret ?= ?$" $APP_DIR/production.ini diff --git a/images/ckan/2.8/Dockerfile b/images/ckan/2.8/Dockerfile index ea24952..3588a75 100644 --- a/images/ckan/2.8/Dockerfile +++ b/images/ckan/2.8/Dockerfile @@ -163,6 +163,9 @@ RUN pip install -e /srv/app/src/ckan && \ # Remove wheels RUN rm -rf /srv/app/wheels /srv/app/ext_wheels +# Install python2 secrets for generating sessions +RUN pip install python2-secrets + # Copy necessary scripts COPY setup/app ${APP_DIR}