Skip to content
This repository was archived by the owner on Oct 25, 2019. It is now read-only.

Commit 1ed9c1b

Browse files
author
Gauvain Pocentek
committed
Enable gitlab pages
1 parent ee6006b commit 1ed9c1b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ RUN mkdir -p /opt/gitlab/sv/sshd/supervise \
2222
&& mkdir -p /var/run/sshd
2323

2424
# Default root password
25-
RUN echo "gitlab_rails['initial_root_password'] = '5iveL!fe'" >> /etc/gitlab/gitlab.rb
26-
RUN sed -i "s,^external_url.*,external_url 'http://gitlab.test'," /etc/gitlab/gitlab.rb
25+
RUN echo "gitlab_rails['initial_root_password'] = '5iveL!fe'" >> /etc/gitlab/gitlab.rb; \
26+
sed -i "s,^external_url.*,external_url 'http://gitlab.test'," /etc/gitlab/gitlab.rb; \
27+
echo 'pages_external_url "http://pages.gitlab.lxd/"' >> /etc/gitlab/gitlab.rb; \
28+
echo "gitlab_pages['enable'] = true" >> /etc/gitlab/gitlab.rb
2729

2830
# Expose web & ssh
2931
EXPOSE 80 22

0 commit comments

Comments
 (0)