Skip to content

Commit

Permalink
Switch to activerecord-session_store gem; #33
Browse files Browse the repository at this point in the history
  • Loading branch information
robertauer committed Jan 28, 2020
1 parent 9182aa5 commit bcab576
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 6 additions & 0 deletions resources/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcab576

Please sign in to comment.