<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/docker, branch api-groups</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Bump Docker build to GitLab v7.9.0</title>
<updated>2015-03-23T12:11:38+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2015-03-23T12:11:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a2e161cb35eb8b755ebdff92ab95f0fe4ca5d87d'/>
<id>a2e161cb35eb8b755ebdff92ab95f0fe4ca5d87d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Upgrade Docker image to GitLab v7.8.3</title>
<updated>2015-03-10T16:06:58+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2015-03-10T16:06:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=1fec4eff361fed0fecd2928ef83d928fab5e1976'/>
<id>1fec4eff361fed0fecd2928ef83d928fab5e1976</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update Dockerfile for GitLab 7.8.1</title>
<updated>2015-03-01T08:40:04+00:00</updated>
<author>
<name>Robert Schilling</name>
<email>rschilling@student.tugraz.at</email>
</author>
<published>2015-03-01T08:40:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=7486bc0ae33adc141abbca2ea5dea833e56d5409'/>
<id>7486bc0ae33adc141abbca2ea5dea833e56d5409</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Gracefully shutdown services in Docker container</title>
<updated>2015-02-24T11:20:57+00:00</updated>
<author>
<name>kfei</name>
<email>kfei@kfei.net</email>
</author>
<published>2014-12-17T08:53:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=9338c6325263d950966e87ddb23095075f18558e'/>
<id>9338c6325263d950966e87ddb23095075f18558e</id>
<content type='text'>
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 &lt;kfei@kfei.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;kfei@kfei.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump GitLab for Docker to version 7.8.0</title>
<updated>2015-02-23T14:08:46+00:00</updated>
<author>
<name>shafan</name>
<email>kepha.forum@hotmail.fr</email>
</author>
<published>2015-02-23T14:08:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=e23110e6f158608c75e4c661fd57a4bb9c96334a'/>
<id>e23110e6f158608c75e4c661fd57a4bb9c96334a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump GitLab for Docker to version 7.7.2</title>
<updated>2015-01-30T21:29:41+00:00</updated>
<author>
<name>Vincent Robert</name>
<email>vincent.robert@genezys.net</email>
</author>
<published>2015-01-30T21:29:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a7a45dc949b9475dff674be57e8d3a7aa8811857'/>
<id>a7a45dc949b9475dff674be57e8d3a7aa8811857</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump Gitlab for Docker to 7.7.1</title>
<updated>2015-01-29T15:34:01+00:00</updated>
<author>
<name>Vincent Robert</name>
<email>vincent.robert@cantor.fr</email>
</author>
<published>2015-01-29T15:34:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=35bf471a13abe0ec68ca8ceb19f896be5ce63c46'/>
<id>35bf471a13abe0ec68ca8ceb19f896be5ce63c46</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update the Omnibus package in Dockerfile</title>
<updated>2015-01-15T03:34:49+00:00</updated>
<author>
<name>kfei</name>
<email>kfei@kfei.net</email>
</author>
<published>2015-01-15T03:34:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=210a13ad425d14eceacd902407c2ee3f2801ac32'/>
<id>210a13ad425d14eceacd902407c2ee3f2801ac32</id>
<content type='text'>
From 7.5.3 to 7.6.2.

Signed-off-by: kfei &lt;kfei@kfei.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
From 7.5.3 to 7.6.2.

Signed-off-by: kfei &lt;kfei@kfei.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #8458 from kfei/docker/reduce-image-size</title>
<updated>2014-12-20T18:16:48+00:00</updated>
<author>
<name>Dmitriy Zaporozhets</name>
<email>dmitriy.zaporozhets@gmail.com</email>
</author>
<published>2014-12-20T18:16:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=e37ecb7ea6e80d532eed68788a8e9a478122a686'/>
<id>e37ecb7ea6e80d532eed68788a8e9a478122a686</id>
<content type='text'>
Reduce the size of Docker image</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reduce the size of Docker image</pre>
</div>
</content>
</entry>
<entry>
<title>Reduce the size of Docker image</title>
<updated>2014-12-17T06:49:43+00:00</updated>
<author>
<name>kfei</name>
<email>kfei@kfei.net</email>
</author>
<published>2014-12-17T06:11:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=e9f974dc12cb7ab37f1fc089f0525bd491572a5c'/>
<id>e9f974dc12cb7ab37f1fc089f0525bd491572a5c</id>
<content type='text'>
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 &lt;kfei@kfei.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;kfei@kfei.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
