diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-06 18:12:34 +0200 | 
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-06 18:12:34 +0200 | 
| commit | c68fc8b5f2ab443f6fb50ff0e3661e995f90f8ef (patch) | |
| tree | 78117126fa978c01edf36d4a80b121630310113a | |
| parent | 2154c829cb825a250b798e9eb2c141e9e2614f8a (diff) | |
| download | gitlab-alpine-c68fc8b5f2ab443f6fb50ff0e3661e995f90f8ef.tar.bz2 gitlab-alpine-c68fc8b5f2ab443f6fb50ff0e3661e995f90f8ef.tar.xz  | |
set host and email address in config
| -rw-r--r-- | gitlab/Dockerfile | 13 | 
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 \  | 
