diff --git a/Dockerfile b/Dockerfile index b9415b1..87c1031 100644 --- a/Dockerfile +++ b/Dockerfile @@ -104,16 +104,12 @@ RUN set -eux -o pipefail \ && echo "${THEME_TARGZ_SHA256} *v${CLOUDOGU_THEME_VERSION}.tar.gz" | sha256sum -c - \ && tar xfz v${CLOUDOGU_THEME_VERSION}.tar.gz --strip-components=1 -C "${WORKDIR}/public/themes/Cloudogu" \ && rm v${CLOUDOGU_THEME_VERSION}.tar.gz \ - # install redmine_activerecord_session_store to be able to invalidate sessions after cas logout - && mkdir "${WORKDIR}/plugins/redmine_activerecord_session_store" \ - && wget -O v${ACTIVERECORD_SESSION_STORE_PLUGIN_VERSION}.tar.gz "https://github.com/cloudogu/redmine_activerecord_session_store/archive/v${ACTIVERECORD_SESSION_STORE_PLUGIN_VERSION}.tar.gz" \ - && echo "${ACTIVERECORD_TARGZ_SHA256} *v${ACTIVERECORD_SESSION_STORE_PLUGIN_VERSION}.tar.gz" | sha256sum -c - \ - && tar xfz v${ACTIVERECORD_SESSION_STORE_PLUGIN_VERSION}.tar.gz --strip-components=1 -C "${WORKDIR}/plugins/redmine_activerecord_session_store" \ - && rm v${ACTIVERECORD_SESSION_STORE_PLUGIN_VERSION}.tar.gz \ # install required and plugin gems && cd ${WORKDIR} \ && bundle install --without development test \ - && gem install puma \ + && gem install puma -v 4.3.1 \ + # install activerecord-session_store to be able to invalidate sessions after cas logout + && gem install activerecord-session_store -v 1.1.3 \ # cleanup && gem cleanup all \ && rm -rf /root/* /tmp/* $(gem env gemdir)/cache \ diff --git a/resources/startup.sh b/resources/startup.sh index 77329e1..123623a 100755 --- a/resources/startup.sh +++ b/resources/startup.sh @@ -122,6 +122,12 @@ else echo "Creating database structure..." exec_rake db:migrate + # Session migration + echo "Generating session migration..." + rails generate active_record:session_migration + echo "Executing session migration..." + exec_rake db:migrate + # insert default configuration data into database echo "Inserting default configuration data into database..." exec_rake redmine:load_default_data