Trusted Build
Source Repo
Project Page
Build Bundle
Last updated
Dec. 22, 2013, 2:57 a.m.
Nov. 23, 2013, 11:26 p.m.


Short Description

A trusted, regularly updated build of GitLab 6.4 on Ubuntu Server 12.04. Link to usage instructions in description.

Full Description

This is a trusted build of GitLab 6.4 on Ubuntu Server 12.04. For usage instructions and source code, visit the Github repo. Pull requests welcome.


This is the Dockerfile that was used to build this crashsystems/gitlab-docker repo

FROM ubuntu:12.04

# Run upgrades
RUN echo deb precise universe multiverse >> /etc/apt/sources.list;\
  echo deb precise-updates main restricted universe >> /etc/apt/sources.list;\
  echo deb precise-security main restricted universe >> /etc/apt/sources.list;\
  echo udev hold | dpkg --set-selections;\
  echo initscripts hold | dpkg --set-selections;\
  echo upstart hold | dpkg --set-selections;\
  apt-get update;\
  apt-get -y upgrade

# Install dependencies
RUN apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev sudo python python-docutils python-software-properties nginx logrotate sendmail

# Install Git
RUN add-apt-repository -y ppa:git-core/ppa;\
  apt-get update;\
  apt-get -y install git

# Install Ruby
RUN mkdir /tmp/ruby;\
  cd /tmp/ruby;\
  curl | tar xz;\
  cd ruby-2.0.0-p247;\
  chmod +x configure;\
  ./configure --disable-install-rdoc;\
  make install;\
  gem install bundler --no-ri --no-rdoc

# Create Git user
RUN adduser --disabled-login --gecos 'GitLab' git

# Install GitLab Shell
RUN cd /home/git;\
  su git -c "git clone -b v1.8.0";\
  cd gitlab-shell;\
  su git -c "cp config.yml.example config.yml";\
  sed -i -e 's/localhost/' config.yml;\
  su git -c "./bin/install"

# Install MySQL
RUN echo mysql-server mysql-server/root_password password $MYSQLTMPROOT | debconf-set-selections;\
  echo mysql-server mysql-server/root_password_again password $MYSQLTMPROOT | debconf-set-selections;\
  apt-get install -y mysql-server mysql-client libmysqlclient-dev

# Install GitLab
RUN cd /home/git;\
  su git -c "git clone -b 6-4-stable gitlab"

# Misc configuration stuff
RUN cd /home/git/gitlab;\
  chown -R git tmp/;\
  chown -R git log/;\
  chmod -R u+rwX log/;\
  chmod -R u+rwX tmp/;\
  su git -c "mkdir /home/git/gitlab-satellites";\
  su git -c "mkdir tmp/pids/";\
  su git -c "mkdir tmp/sockets/";\
  chmod -R u+rwX tmp/pids/;\
  chmod -R u+rwX tmp/sockets/;\
  su git -c "mkdir public/uploads";\
  chmod -R u+rwX public/uploads;\
  su git -c "cp config/unicorn.rb.example config/unicorn.rb";\
  su git -c "cp config/initializers/rack_attack.rb.example config/initializers/rack_attack.rb";\
  su git -c "git config --global 'GitLab'";\
  su git -c "git config --global 'gitlab@localhost'";\
  su git -c "git config --global core.autocrlf input"

RUN cd /home/git/gitlab;\
  su git -c "bundle install --deployment --without development test postgres aws"

# Install init scripts
RUN cd /home/git/gitlab;\
  cp lib/support/init.d/gitlab /etc/init.d/gitlab;\
  update-rc.d gitlab defaults 21;\
  cp lib/support/logrotate/gitlab /etc/logrotate.d/gitlab


ADD . /srv/gitlab

RUN chmod +x /srv/gitlab/;\
  chmod +x /srv/gitlab/

CMD ["/srv/gitlab/"]

hwinkel1 month, 3 weeks ago
profile picture
Same problem as apl330
apl3302 months, 1 week ago
profile picture
The GitLab Unicorn web server with pid 940 is running. The GitLab Sidekiq job dispatcher with pid 949 is running. GitLab and all its components are up and running. Starting nginx: nginx. master failed to start, check stderr log for details