Commit graph

22 commits

Author SHA1 Message Date
Robert Schilling
7486bc0ae3 Update Dockerfile for GitLab 7.8.1 2015-03-01 09:40:04 +01:00
kfei
9338c63252 Gracefully shutdown services in Docker container
The problem is `docker stop` only sends SIGTERM to the PID 1 inside the
container, and the PID 1 (`/bin/sh -c ...`) does not take care of
signals. Hence the services (e.g., postgresql, redis, sidekiq, etc)
never have chances to graceful shutdown. Docker just kills the container
after its 10 seconds timeout by default.

What this commit does:

1) Add a wrapper as the default executable of Docker container. Which
   starts services through `runit`, reconfigure Gitlab by `gitlab-ctl`
   and gracefully shutdown all services when a SIGTERM is received.
2) Create an `assets` directory for assets.
3) Add `.dockerignore` file.

Now you'll see the following log messages after `docker stop`:
```
SIGTERM signal received, try to gracefully shutdown all services...
ok: down: logrotate: 1s, normally up
ok: down: nginx: 0s, normally up
ok: down: postgresql: 1s, normally up
ok: down: redis: 0s, normally up
ok: down: sidekiq: 0s, normally up
ok: down: unicorn: 0s, normally up
```

Signed-off-by: kfei <kfei@kfei.net>
2015-02-24 19:20:57 +08:00
shafan
e23110e6f1 Bump GitLab for Docker to version 7.8.0 2015-02-23 14:08:46 +00:00
Vincent Robert
a7a45dc949 Bump GitLab for Docker to version 7.7.2 2015-01-30 22:29:41 +01:00
Vincent Robert
35bf471a13 Bump Gitlab for Docker to 7.7.1 2015-01-29 16:34:01 +01:00
kfei
210a13ad42 Update the Omnibus package in Dockerfile
From 7.5.3 to 7.6.2.

Signed-off-by: kfei <kfei@kfei.net>
2015-01-15 11:34:49 +08:00
Dmitriy Zaporozhets
e37ecb7ea6 Merge pull request #8458 from kfei/docker/reduce-image-size
Reduce the size of Docker image
2014-12-20 20:16:48 +02:00
kfei
e9f974dc12 Reduce the size of Docker image
1) Add `--no-install-recommends` option to `apt-get install`, this
   avoids lots of (~30MB) unnecessary packages.
2) Add `ca-certificates` package for `wget` fetching stuffs from Amazon
   S3.
3) There is no need to run `apt-get clean` for an image derived from
   official Ubuntu since they already cleaned (see also:
   http://goo.gl/B2SQRB) all the garbages produced by `apt-get`.

Signed-off-by: kfei <kfei@kfei.net>
2014-12-16 22:49:43 -08:00
kfei
c981d69338 Update the Omnibus package in Dockerfile
From 7.5.2 to 7.5.3.

Signed-off-by: kfei <kfei@kfei.net>
2014-12-16 09:04:52 -08:00
Sytse Sijbrandij
a3e9046ad5 Fix spelling error in dockerfile, thanks Vincent for noting it. 2014-12-04 12:29:30 +01:00
Sytse Sijbrandij
c59b5e4e68 Merge branch 'docker-version-upgrades' into 'master'
Docker version upgrades

See merge request !251
2014-12-04 11:15:26 +00:00
Sytse Sijbrandij
14a1c1b4e6 Add some comments about updating the Omnibus package download location for the docker image. 2014-12-04 11:03:40 +01:00
Vincent Robert
58b58fe44b gitlab-ctl can now be followed with docker logs 2014-12-04 10:38:04 +01:00
Vincent Robert
d7aff11876 Move to 7.5.2 2014-12-04 10:30:10 +01:00
Sytse Sijbrandij
2a0ee91f7c Remove docker file maintainer at his request. https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/245#note_647506 2014-12-03 14:07:18 +01:00
Sytse Sijbrandij
9e4d39c051 Move commands to the readme, rename gitlab to gitlab_app, add PostgreSQL tweaks to gitlab.rb. 2014-12-03 12:41:47 +01:00
Sytse Sijbrandij
40e80dbeb5 Remove vim since it is of no use to running GitLab. 2014-12-02 16:18:32 +01:00
Sytse Sijbrandij
0afa07f7f0 Add troubleshooting section to the docker documentation. 2014-12-02 15:19:43 +01:00
Sytse Sijbrandij
ba955fe174 Change gitlab to gitlab_image on data run and add tail, thanks Vincent Robert. 2014-12-01 11:41:30 +01:00
Sytse Sijbrandij
e08255ceea Make the docker commands so that people can build their own images. 2014-11-28 11:13:49 +01:00
Sytse Sijbrandij
385105382b Make docker image file user agnostic, to prevent confusion over official images. 2014-11-28 07:55:59 +01:00
Vincent Robert
0dcc1e88a4 Add Dockerfile to build an Omnibus GitLab image 2014-11-27 15:48:19 +01:00