Skip to content

Commit 684c03b

Browse files
author
Anastas Dancha
committed
DOCKERFILE: Cleanup; volumes for logs and db; chown
1 parent 333d17b commit 684c03b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ RUN chmod +x /home/gitlab_ci/gitlab-ci/gitlabci_ctrl.rb
2525
RUN cd /home/gitlab_ci/gitlab-ci; sudo -u gitlab_ci -H ./gitlabci_ctrl.rb --unicorn --app GITLAB_URLS="https://dev.gitlab.org/"
2626
RUN cd /home/gitlab_ci/gitlab-ci; sudo -u gitlab_ci -H bundle exec whenever -w RAILS_ENV=production
2727

28+
# set owner explicitly
29+
RUN chown gitlab_ci -R /home/gitlab_ci
30+
2831
# cleanup, if needed
32+
RUN DEBIAN_FRONTEND=noninteractive apt-get clean all
2933
#RUN DEBIAN_FRONTEND=noninteractive apt-get remove --force-yes -y ruby1.9.1-dev
3034
#RUN DEBIAN_FRONTEND=noninteractive apt-get autoremove --force-yes -y
3135

36+
VOLUME ["/home/gitlab_ci/gitlab-ci/db"]
37+
VOLUME ["/home/gitlab_ci/gitlab-ci/log"]
38+
3239
EXPOSE 9000
3340

3441
WORKDIR /home/gitlab_ci/gitlab-ci

0 commit comments

Comments
 (0)