From c68fc8b5f2ab443f6fb50ff0e3661e995f90f8ef Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 6 Sep 2018 18:12:34 +0200 Subject: set host and email address in config --- gitlab/Dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gitlab') diff --git a/gitlab/Dockerfile b/gitlab/Dockerfile index 7f949b7..c559d21 100644 --- a/gitlab/Dockerfile +++ b/gitlab/Dockerfile @@ -1,8 +1,12 @@ FROM alpine:3.8 -ENV GITLAB_BRANCH 11-3-stable +ENV GITLAB_BRANCH=11-3-stable ENV GIT_HOME=/home/git +ENV FQDN=gitlab.alpinelinux.org +ENV EMAIL_FROM=gitlab@alpinelinux.org +ENV EMAIL_REPLY_TO=noreply@alpinelinux.org + RUN apk add -U \ openssh-server \ logrotate \ @@ -48,6 +52,13 @@ RUN cd $GIT_HOME/gitlab \ && install -o git -g git config/unicorn.rb.example config/unicorn.rb \ && install -o git -g git -m640 config/database.yml.postgresql config/database.yml +RUN cd $GIT_HOME/gitlab \ + sed -E -i -e "s/host: localhost/host: $FQDN/" \ + -e "s/email_from: .*/email_from: $EMAIL_FROM/" \ + -e "s/email_reply_to: .*/email_reply_to: $EMAIL_REPLY_TO/" \ + config/gitlab.yml + + # install Gems RUN cd $GIT_HOME/gitlab \ && apk add --virtual .build-deps \ -- cgit v1.2.3