1- # Build: docker build -t genezys/gitlab:7.8.1 .
1+ # Build: docker build -t genezys/gitlab:7.8.4 .
22# Data: docker run --name gitlab_data --volume /var/opt/gitlab --volume /var/log/gitlab --volume /etc/gitlab ubuntu:14.04 /bin/true
3- # Run: docker run --detach --name gitlab_app --publish 8080:80 --publish 2222:22 --volumes-from gitlab_data genezys/gitlab:7.8.1
3+ # Run: docker run --detach --name gitlab_app --publish 8080:80 --publish 2222:22 --volumes-from gitlab_data genezys/gitlab:7.8.4
44
55FROM ubuntu:14.04
66MAINTAINER Vincent Robert <vincent.robert@genezys.net>
@@ -16,7 +16,7 @@ RUN apt-get update -q \
1616# If the Omnibus package version below is outdated please contribute a merge request to update it.
1717# If you run GitLab Enterprise Edition point it to a location where you have downloaded it.
1818RUN TMP_FILE=$(mktemp); \
19- wget -q -O $TMP_FILE https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.8.1 -omnibus-1_amd64.deb \
19+ wget -q -O $TMP_FILE https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.8.4 -omnibus-1_amd64.deb \
2020 && dpkg -i $TMP_FILE \
2121 && rm -f $TMP_FILE
2222
@@ -28,12 +28,16 @@ RUN mkdir -p /opt/gitlab/sv/sshd/supervise \
2828 && ln -s /opt/gitlab/sv/sshd /opt/gitlab/service \
2929 && mkdir -p /var/run/sshd
3030
31+ # Add bootstrap script
32+ ADD gitlab.rb /opt/gitlab/etc/gitlab.rb.template
33+ ADD gitlab.sh /usr/local/bin/gitlab.sh
34+ RUN chmod +x /usr/local/bin/gitlab.sh
35+
3136# Expose web & ssh
3237EXPOSE 80 22
3338
3439# Volume & configuration
3540VOLUME ["/var/opt/gitlab" , "/var/log/gitlab" , "/etc/gitlab" ]
36- ADD gitlab.rb /etc/gitlab/
3741
3842# Default is to run runit & reconfigure
39- CMD gitlab-ctl reconfigure & /opt/gitlab/embedded/ bin/runsvdir-start
43+ CMD [ "/usr/local/ bin/gitlab.sh" ]
0 commit comments