debian-mirror-gitlab/docker/assets/wrapper

22 lines
479 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
#!/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() {
/opt/gitlab/embedded/bin/runsvdir-start &
2015-09-11 14:41:01 +05:30
gitlab-ctl reconfigure # will also start everything
gitlab-ctl tail # tail all logs
2015-04-26 12:48:37 +05:30
}
2015-09-11 14:41:01 +05:30
if [[ ! -e /etc/gitlab/gitlab.rb ]]; then
cp /assets/gitlab.rb /etc/gitlab/gitlab.rb
chmod 0600 /etc/gitlab/gitlab.rb
fi
2015-04-26 12:48:37 +05:30
entrypoint