mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
36 lines
1.1 KiB
Docker
36 lines
1.1 KiB
Docker
FROM ubuntu:14.04
|
|
MAINTAINER Sytse Sijbrandij
|
|
|
|
# Install required packages
|
|
RUN apt-get update -q \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
|
|
ca-certificates \
|
|
openssh-server \
|
|
wget \
|
|
apt-transport-https \
|
|
vim \
|
|
nano \
|
|
patch
|
|
|
|
# Download & Install GitLab
|
|
# If you run GitLab Enterprise Edition point it to a location where you have downloaded it.
|
|
RUN echo "deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/gitlab_gitlab-ce.list
|
|
RUN wget -q -O - https://packages.gitlab.com/gpg.key | apt-key add -
|
|
RUN apt-get update && apt-get install -yq --no-install-recommends gitlab-ce
|
|
|
|
# Allow to access embedded tools
|
|
ENV PATH /opt/gitlab/embedded/bin:/opt/gitlab/bin:/assets:$PATH
|
|
|
|
# Expose web & ssh
|
|
EXPOSE 443 80 22
|
|
|
|
# Copy assets
|
|
COPY assets/ /assets/
|
|
RUN /assets/setup
|
|
|
|
# Define data volumes
|
|
VOLUME ["/etc/gitlab", "/var/opt/gitlab", "/var/log/gitlab"]
|
|
|
|
# Wrapper to handle signal, trigger runit and reconfigure GitLab
|
|
CMD ["/assets/wrapper"]
|