Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
6cee8d77
Commit
6cee8d77
authored
Feb 25, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gitlabhq/gitlabhq
parents
0d884ff2
4ac5281f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
4 deletions
+25
-4
docker/.dockerignore
docker/.dockerignore
+1
-0
docker/Dockerfile
docker/Dockerfile
+7
-4
docker/assets/gitlab.rb
docker/assets/gitlab.rb
+0
-0
docker/assets/wrapper
docker/assets/wrapper
+17
-0
No files found.
docker/.dockerignore
0 → 100644
View file @
6cee8d77
*.md
docker/Dockerfile
View file @
6cee8d77
...
...
@@ -26,9 +26,12 @@ RUN mkdir -p /opt/gitlab/sv/sshd/supervise \
# Expose web & ssh
EXPOSE
80 22
#
Volume & configuration
#
Declare volumes
VOLUME
["/var/opt/gitlab", "/var/log/gitlab", "/etc/gitlab"]
ADD
gitlab.rb /etc/gitlab/
# Default is to run runit & reconfigure
CMD
gitlab-ctl reconfigure & /opt/gitlab/embedded/bin/runsvdir-start
\ No newline at end of file
# Copy assets
COPY
assets/gitlab.rb /etc/gitlab/
COPY
assets/wrapper /usr/local/bin/
# Wrapper to handle signal, trigger runit and reconfigure GitLab
CMD
["/usr/local/bin/wrapper"]
docker/gitlab.rb
→
docker/
assets/
gitlab.rb
View file @
6cee8d77
File moved
docker/assets/wrapper
0 → 100755
View file @
6cee8d77
#!/bin/bash
function
sigterm_handler
()
{
echo
"SIGTERM signal received, try to gracefully shutdown all services..."
gitlab-ctl stop
}
trap
"sigterm_handler; exit"
TERM
function
entrypoint
()
{
# Default is to run runit and reconfigure GitLab
gitlab-ctl reconfigure &
/opt/gitlab/embedded/bin/runsvdir-start &
wait
}
entrypoint
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment