Skip to content

Commit

Permalink
Merge pull request #14 from cloudogu/feature/13_redmine3.4.6
Browse files Browse the repository at this point in the history
Redmine 3.4.6
  • Loading branch information
ppxl authored Dec 20, 2018
2 parents cedf44e + 56948b4 commit 740dd3a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
23 changes: 6 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# registry.cloudogu.com/official/redmine
FROM registry.cloudogu.com/official/base:3.5-5
MAINTAINER Robert Auer <[email protected]>
FROM registry.cloudogu.com/official/base:3.7-4

LABEL NAME="official/redmine"
LABEL VERSION="3.4.2"
LABEL NAME="official/redmine" \
VERSION="3.4.6" \
maintainer="[email protected]"

# set environment variables
ENV REDMINE_VERSION=3.4.2 \
ENV REDMINE_VERSION=3.4.6 \
CAS_PLUGIN_VERSION=1.2.13 \
ACTIVERECORD_SESSION_STORE_PLUGIN_VERSION=0.0.1 \
RUBYCASVERSION=2.3.13 \
Expand All @@ -25,12 +25,12 @@ RUN set -x \
# add user and group
&& addgroup -S "${USER}" -g 1000 \
&& adduser -S -h "${WORKDIR}" -G "${USER}" -u 1000 -s /bin/bash "${USER}" \

# install runtime packages
&& apk --no-cache add --virtual /.run-deps \
postgresql-client \
sqlite-libs \
imagemagick \
ruby-rmagick \
tzdata \
ruby \
ruby-bigdecimal \
Expand All @@ -39,7 +39,6 @@ RUN set -x \
libffi \
su-exec \
git \

# install build dependencies
&& apk --no-cache add --virtual /.build-deps \
build-base \
Expand All @@ -52,42 +51,34 @@ RUN set -x \
patch \
coreutils \
libffi-dev \

# update ruby gems
&& echo 'gem: --no-document' > /etc/gemrc \
&& 2>/dev/null 1>&2 gem update --system --quiet \

# install redmine
&& mkdir -p ${WORKDIR} \
&& curl -L http://www.redmine.org/releases/redmine-${REDMINE_VERSION}.tar.gz | tar xfz - --strip-components=1 -C ${WORKDIR} \

# set temporary database configuration for bundle install
&& DATABASE_TYPE=postgresql \
DATABASE_IP=localhost \
DATABASE_DB=redmine \
DATABASE_USER=redmine \
DATABASE_USER_PASSWORD=redmine \
eval "echo \"$(cat ${WORKDIR}/config/database.yml.tpl)\"" > ${WORKDIR}/config/database.yml \

# Install (available) rubycas-client version
&& git clone https://github.com/cloudogu/rubycas-client.git \
&& cd rubycas-client \
&& gem build rubycas-client.gemspec \
&& gem install rubycas-client-${RUBYCASVERSION}.gem \
&& cd ..; rm -rf rubycas-client \

# install redmine required gems
&& echo 'gem "activerecord-session_store"' >> ${WORKDIR}/Gemfile \
&& echo 'gem "activerecord-deprecated_finders", require: "active_record/deprecated_finders"' >> ${WORKDIR}/Gemfile \
# json gem missing in default installation?
&& echo 'gem "json"' >> ${WORKDIR}/Gemfile \

# install required gems
&& cd ${WORKDIR}; RAILS_ENV="production" bundle install --without development test \

# override environment to run redmine with a context path "/redmine"
&& mv ${WORKDIR}/config/environment.ces.rb ${WORKDIR}/config/environment.rb \

# install core plugins
&& mkdir -p "${WORKDIR}/plugins" \
# install cas plugin
Expand All @@ -100,10 +91,8 @@ RUN set -x \
&& curl -sL \
https://github.com/pencil/redmine_activerecord_session_store/archive/v${ACTIVERECORD_SESSION_STORE_PLUGIN_VERSION}.tar.gz \
| tar xfz - --strip-components=1 -C "${WORKDIR}/plugins/redmine_activerecord_session_store" \

# install plugin gems
&& cd ${WORKDIR}; RAILS_ENV="production" bundle install --without development test \

# cleanup
&& gem cleanup all \
&& rm -rf /root/* /tmp/* $(gem env gemdir)/cache \
Expand Down
2 changes: 1 addition & 1 deletion dogu.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Name": "official/redmine",
"Version": "3.4.2-6",
"Version": "3.4.6-1",
"DisplayName": "Redmine",
"Description": "Redmine is a flexible project management web application",
"Category": "Development Apps",
Expand Down
8 changes: 4 additions & 4 deletions resources/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ set -o pipefail

source /etc/ces/functions.sh

# get variables for templates
echo "get variables for templates"
FQDN=$(doguctl config --global fqdn)
DOMAIN=$(doguctl config --global domain)
ADMIN_GROUP=$(doguctl config --global 'admin_group')
MAIL_ADDRESS=$(doguctl config -d "redmine@${DOMAIN}" --global mail_address)
RELAYHOST="postfix"

# database connection
echo "get data for database connection"
DATABASE_TYPE=postgresql
DATABASE_IP=postgresql
DATABASE_USER=$(doguctl config -e sa-postgresql/username)
DATABASE_USER_PASSWORD=$(doguctl config -e sa-postgresql/password)
DATABASE_DB=$(doguctl config -e sa-postgresql/database)

# redmine environment
echo "set redmine environment variables"
RAILS_ENV=production
REDMINE_LANG=en

# plugin locations
echo "get plugin locations"
PLUGIN_STORE="/var/tmp/redmine/plugins"
PLUGIN_DIRECTORY="${WORKDIR}/plugins"

Expand Down

0 comments on commit 740dd3a

Please sign in to comment.