Skip to content

Instantly share code, notes, and snippets.

@flah00
Last active September 14, 2017 05:38
Show Gist options
  • Save flah00/7e51340c90baa81eb68283b43497615a to your computer and use it in GitHub Desktop.
Save flah00/7e51340c90baa81eb68283b43497615a to your computer and use it in GitHub Desktop.
Redmine errors
version: '2'
services:
postgresql:
image: 'bitnami/postgresql:latest'
volumes:
- 'postgresql_data:/bitnami'
redmine:
image: 'flah00/redmine:3.4'
command:
- /bin/sh
- -c
- sleep 10000
ports:
- '80:3000'
environment:
- REDMINE_DB_POSTGRES=postgresql
volumes:
- 'redmine_data:/bitnami'
depends_on:
- postgresql
volumes:
postgresql_data:
driver: local
redmine_data:
driver: local
FROM bitnami/redmine:3.4.2-r2
MAINTAINER Techops <techops@adaptly.com>
ARG REDMINE_THEME_CHANGER_VERSION=0.2.0
ARG REDMINE_MINIMAL_FLAT_VERSION=1.1.3
LABEL version=3.4.2-p0
LABEL image=redmine
LABEL name=redmine
ENV UPDATED_AT=2017-09-13T15
ENV THEME_CHANGER=redmine_theme_changer-${REDMINE_THEME_CHANGER_VERSION}.zip
ENV MINIMAL_FLAT=minimalflat2-v${REDMINE_MINIMAL_FLAT_VERSION}.zip
USER root
WORKDIR /opt/bitnami/redmine
COPY redmine-adaptly ./
RUN apt-get update \
&& apt-get install -y \
libpq-dev \
libcurl4-openssl-dev \
libssl-dev \
libmagickcore-dev \
libmagickwand-dev \
curl \
git-core \
patch \
build-essential \
bison \
zlib1g-dev \
libxml2-dev \
libxml2-dev \
autotools-dev \
libxslt1-dev \
libyaml-0-2 \
autoconf \
automake \
libreadline6-dev \
libyaml-dev \
libtool \
imagemagick \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN sed -i.bak 's/BUNDLE_FROZEN: "1"/BUNDLE_FROZEN: "0"/' .bundle/config \
&& rm -rf vendor/bundle \
&& bundle package --all \
&& bundle install --deployment --local --binstubs --without development test msyql sqlite \
&& rm vendor/cache/*
RUN for p in patches/*patch; do patch -p0 < $p; done \
&& rm -rf patches \
&& sed -i.bak 's/\(.*config.action_mailer.logger\).*/\1 = Rails.logger/' config/environments/production.rb \
&& rm config/environments/production.rb.bak
WORKDIR /opt/bitnami/redmine/plugins
RUN rm -rf * \
&& git clone https://github.com/sciyoshi/redmine-slack.git redmine_slack \
&& git clone https://github.com/eyp/redmine_spent_time.git redmine_spent_time \
&& git clone https://github.com/demelev/redmine_default_watchers.git redmine_default_watchers \
&& git clone https://github.com/RCRM/redmine_agile.git redmine_agile \
&& curl --retry 5 -sSL -O https://bitbucket.org/haru_iida/redmine_theme_changer/downloads/${THEME_CHANGER} \
&& unzip $THEME_CHANGER \
&& rm $THEME_CHANGER
WORKDIR /opt/bitnami/redmine/public/themes
RUN rm -rf \
Dwarf \
flatly_light_redmine minelab \
modula-gitlab \
redmine_issue_readability_theme \
redmine-theme-flat \
redmine-theme \
minimalflat2 \
&& git clone https://github.com/themondays/Dwarf.git \
&& mkdir Dwarf/stylesheets \
&& cp Dwarf/workspace/scss/application.scss Dwarf/stylesheets \
&& git clone https://github.com/Nitrino/flatly_light_redmine.git \
&& git clone https://github.com/hardpixel/minelab.git \
&& git clone https://github.com/doublerebel/modula-gitlab.git \
&& git clone https://github.com/tsi/redmine-theme-flat.git \
&& git clone https://github.com/pixel-cookers/redmine-theme.git \
&& git clone https://github.com/jongha/redmine_issue_readability_theme.git \
&& cp -r redmine_issue_readability_theme/src/issue_readability/stylesheets redmine_issue_readability_theme \
&& curl --retry 5 -sSL -O https://github.com/akabekobeko/redmine-theme-minimalflat2/releases/download/v${REDMINE_MINIMAL_FLAT_VERSION}/${MINIMAL_FLAT} \
&& unzip $MINIMAL_FLAT \
&& rm $MINIMAL_FLAT
WORKDIR /
app-entrypoint.sh 05:36:44.28
app-entrypoint.sh 05:36:44.28 Welcome to the Bitnami redmine container
app-entrypoint.sh 05:36:44.28 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-redmine
app-entrypoint.sh 05:36:44.28 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-redmine/issues
app-entrypoint.sh 05:36:44.28 Send us your feedback at containers@bitnami.com
app-entrypoint.sh 05:36:44.29
nami INFO Initializing redmine
redmine DEBUG Creating Redmine System User...
redmine DEBUG ==> Detected PostgreSQL database
redmine INFO Redmine has been already initialized, restoring...
redmine TRACE [restorePersistedData] Restoring /bitnami/redmine/conf to /opt/bitnami/redmine/conf
redmine TRACE [restorePersistedData] Restoring /bitnami/redmine/public/plugin_assets to /opt/bitnami/redmine/public/plugin_assets
redmine TRACE [restorePersistedData] Restoring /bitnami/redmine/plugins to /opt/bitnami/redmine/plugins
redmine TRACE [restorePersistedData] Restoring /bitnami/redmine/files to /opt/bitnami/redmine/files
Error executing 'postInstallation': File '/opt/bitnami/redmine/conf/database.yml' does not exists
nami TRACE Error: Error executing 'postInstallation': File '/opt/bitnami/redmine/conf/database.yml' does not exists
at Object.read (/opt/bitnami/nami/node_modules/nami-utils/lib/file/read.js:34:11)
at Object.wrappedFn (/opt/bitnami/nami/node_modules/nami-utils/lib/function-wrapping.js:191:17)
at Object.$app.helpers.getDatabaseProperties (/root/.nami/components/com.bitnami.redmine/helpers.js:71:26)
at Service.$app.postInstallation (/root/.nami/components/com.bitnami.redmine/main.js:61:39)
at Service.runStep (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:159:12)
at _.each.step (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:236:32)
at ot (/opt/bitnami/nami/node_modules/lodash/index.js:12:507)
at Function.<anonymous> (/opt/bitnami/nami/node_modules/lodash/index.js:33:421)
at Service.install (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:236:7)
at Manager.initializePackage (/opt/bitnami/nami/node_modules/nami-core/lib/manager.js:284:11)
# NAMI_DEBUG="--log-level trace" /app-entrypoint.sh /run.sh
app-entrypoint.sh 03:22:05.19
app-entrypoint.sh 03:22:05.19 Welcome to the Bitnami redmine container
app-entrypoint.sh 03:22:05.19 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-redmine
app-entrypoint.sh 03:22:05.19 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-redmine/issues
app-entrypoint.sh 03:22:05.19 Send us your feedback at containers@bitnami.com
app-entrypoint.sh 03:22:05.19
nami INFO Initializing redmine
redmine DEBUG Creating Redmine System User...
redmine DEBUG ==> Detected PostgreSQL database
redmine INFO Configuring Redmine database...
handler WARN Using /opt/bitnami/redmine as working directory
postgre INFO Trying to connect to PostgreSQL server
postgre INFO Found PostgreSQL server listening at postgresql:5432
postgre TRACE [canConnect] Testing connection with 'postgres' user
postgre TRACE [showDatabases] Getting databases for 'postgres' user
postgre TRACE [execute] Executing psql with parameters -t,-p5432,-hpostgresql,-dpostgres,-Upostgres,-cSELECT datname FROM pg_database;
postgre TRACE [showDatabases] Databases: " postgres\n template1\n template0\n bitnami_redmine\n\n"
postgre TRACE [canConnect] Connection with 'postgres' user is successful
postgre INFO PostgreSQL server listening and working at postgresql:5432
postgre TRACE [execute] Executing psql with parameters -t,-p5432,-hpostgresql,-dpostgres,-Upostgres,-c\list
redmine DEBUG Creating database 'bitnami_redmine_ijcto' for 'bn_redmine' with 'q8fp9iprdx'
postgre TRACE [execute] Executing psql with parameters -t,-p5432,-hpostgresql,-dpostgres,-Upostgres,-cSELECT 1 FROM pg_database WHERE datname='bitnami_redmine_ijcto'
postgre TRACE [execute] Executing psql with parameters -t,-p5432,-hpostgresql,-dpostgres,-Upostgres,-cCREATE DATABASE bitnami_redmine_ijcto
postgre TRACE [execute] Executing psql with parameters -t,-p5432,-hpostgresql,-dpostgres,-Upostgres,-cSELECT 1 FROM pg_roles WHERE rolname='bn_redmine'
Error executing 'postInstallation': User bn_redmine already exists
nami TRACE Error: Error executing 'postInstallation': User bn_redmine already exists
at Object.createUser (/root/.nami/components/com.bitnami.postgresql-client/lib/databases/postgresql/index.js:158:13)
at Object.<anonymous> (/opt/bitnami/nami/node_modules/lodash/index.js:33:285)
at PostgresqlHandler.createDatabaseForApp (/root/.nami/components/com.bitnami.redmine/lib/handlers/databases/postgresql/index.js:69:20)
at Service.$app.postInstallation (/root/.nami/components/com.bitnami.redmine/main.js:38:21)
at Service.runStep (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:159:12)
at _.each.step (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:236:32)
at ot (/opt/bitnami/nami/node_modules/lodash/index.js:12:507)
at Function.<anonymous> (/opt/bitnami/nami/node_modules/lodash/index.js:33:421)
at Service.install (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:236:7)
at Manager.initializePackage (/opt/bitnami/nami/node_modules/nami-core/lib/manager.js:284:11)
# NAMI_DEBUG="--log-level trace" /app-entrypoint.sh /run.sh
app-entrypoint.sh 03:22:52.85
app-entrypoint.sh 03:22:52.85 Welcome to the Bitnami redmine container
app-entrypoint.sh 03:22:52.85 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-redmine
app-entrypoint.sh 03:22:52.85 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-redmine/issues
app-entrypoint.sh 03:22:52.85 Send us your feedback at containers@bitnami.com
app-entrypoint.sh 03:22:52.86
nami INFO Initializing redmine
redmine DEBUG Creating Redmine System User...
redmine DEBUG ==> Detected PostgreSQL database
Error executing 'postInstallation': ELOOP: too many symbolic links encountered, lstat '/opt/bitnami/redmine/conf/configuration.yml'
nami TRACE Error: Error executing 'postInstallation': ELOOP: too many symbolic links encountered, lstat '/opt/bitnami/redmine/conf/configuration.yml'
at Error (native)
at Object.fs.lstatSync (fs.js:976:18)
at Object.lstatSync (/opt/bitnami/nami/node_modules/graceful-fs/polyfills.js:297:22)
at exists (/opt/bitnami/nami/node_modules/nami-utils/lib/file/exists.js:17:8)
at rename (/opt/bitnami/nami/node_modules/nami-utils/lib/file/rename.js:27:7)
at Object.rename (/opt/bitnami/nami/node_modules/nami-utils/lib/file/index.js:94:12)
at Service.$app.postInstallation (/root/.nami/components/com.bitnami.redmine/main.js:25:11)
at Service.runStep (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:159:12)
at _.each.step (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:236:32)
at ot (/opt/bitnami/nami/node_modules/lodash/index.js:12:507)
nfsHost: ID.efs.us-east-1.amazonaws.com
redmine:
image: flah00/redmine:3.4
smtpHost: smtp.example.com
smtpPort: 25
smtpUser: USER
smtpPassword: PW
smtpTls: true
ingress:
hostname: redmine-test.example.com
tls:
- secretName: my-tls
hosts:
- redmine-test.example.com
annotations:
# kubernetes.io/ingress.class: nginx
ingress.kubernetes.io/whitelist-source-range: >
10.10.0.0/16,
10.20.0.0/16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment