diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2017-11-27 13:28:57 +0300 |
---|---|---|
committer | Andrew Newdigate <andrew@gitlab.com> | 2017-11-27 13:28:57 +0300 |
commit | bb3d3a5c96115b1d5e76dcb6789c8adfab05fdfd (patch) | |
tree | 30be3992a67f488815428b38234a43147f89aee1 /Dockerfile | |
parent | 17ec3e6e455a594ab4e5fd0257925d056c43c0e9 (diff) |
Docker-compose cluster useful for profiling and perfomance testing
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..8e38b6c6c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ + +# +# This will create a docker image for Gitaly that is suitable for testing, but +# is not expected to be used in a production environment, yet. +# +# See the _support/load-cluster/docker-compose.yml for an example of how to use +# this image +# +FROM registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.3-golang-1.8-git-2.13 + +RUN mkdir -p /app/ruby + +RUN git clone https://gitlab.com/gitlab-org/gitlab-shell.git /app/gitlab-shell + +COPY ./ruby/Gemfile /app/ruby/ +COPY ./ruby/Gemfile.lock /app/ruby/ + +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update -qq && \ + apt-get install -qq -y rubygems bundler cmake build-essential libicu-dev && \ + cd /app/ruby && bundle install --path vendor/bundle && \ + rm -rf /var/lib/apt/lists/* + +COPY . /app + +CMD ["/app/bin/gitaly", "/app/config/config.toml"] + |