aboutsummaryrefslogtreecommitdiffstats
path: root/gitlab/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/Dockerfile')
-rw-r--r--gitlab/Dockerfile13
1 files changed, 12 insertions, 1 deletions
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 \