Commit Graph

56 Commits

Author SHA1 Message Date
Robert Speicher 8a01a12228 Change default admin password from "5iveL!fe" to "password" 2015-06-24 18:42:34 -04:00
Sytse Sijbrandij e741edc2a4 Self build images require different build commands. 2015-06-11 16:17:30 +00:00
Stefan Schweter e77b20872e [Docker][Documentation] Uses new docker data image from Docker Hub (*sytse/gitlab-data*). Uniform tag name for data image is now *gitlab-data*. 2015-06-11 17:44:12 +02:00
Sytse Sijbrandij 01cd7d2c2a Improve instructions for publishing gitlab-app. 2015-06-05 14:15:15 +00:00
Terrence Benade 9ea231b5a5 small typo 2015-05-31 11:20:39 +00:00
Stan Hu b43cec039c Set gitlab.rb in Docker single image in order to make PostgreSQL start up properly
See gitlab-org/omnibus-gitlab#552
2015-05-15 05:25:50 +00:00
Stan Hu cfe6013b96 Use apt repositories to upgrade Docker builds to the latest GitLab version
Reduces the need to bump versions periodically.
2015-05-13 20:31:23 +00:00
Sytse Sijbrandij 93a2cc095b Fix spelling error, thanks Mark 2015-05-07 12:41:05 +00:00
Sytse Sijbrandij 60887cf949 Remove the volumes from the single image to keep it simple. 2015-05-07 10:47:24 +02:00
Sytse Sijbrandij b18dfc8d40 No need to commit when using a dockerfile. 2015-05-07 10:24:55 +02:00
Sytse Sijbrandij 66f7cdeb0a Cleanup the order of the docker manual a bit more. 2015-05-07 09:38:54 +02:00
Sytse Sijbrandij 9edabac522 Put the retrieval of published images first. 2015-05-07 09:33:13 +02:00
Sytse Sijbrandij 661142ca4a Add headers and reduce duplication. 2015-05-07 09:21:32 +02:00
Sytse Sijbrandij 2576971f39 Forgot to link the third directory, thanks Ben. 2015-05-07 09:10:35 +02:00
Sytse Sijbrandij 6518c728ac Small improvements to the dockerfile. 2015-05-06 16:39:30 +02:00
Sytse Sijbrandij e8edd20bfd Made a single docker file. 2015-05-06 15:32:29 +02:00
Jakob Englisch b7decf1de7 Docker: update omnibus package 2015-05-04 10:50:52 +00:00
Sytse Sijbrandij c505eda3e8 Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce 2015-04-27 23:10:10 -07:00
Sytse Sijbrandij f476888e77 Add more instuctions on how to publish docker images yourself. 2015-04-27 23:09:03 -07:00
Stan Hu f50103ad7e Upgrade Docker build to v7.10.0 2015-04-27 13:24:24 +00:00
Igor Kostenko 2a06bec3a3 gitlab 7.9.2 2015-04-07 16:49:15 +01:00
Stan Hu b06a4ff5a7 Bump Docker build to GitLab v7.9.1 2015-03-30 15:18:43 +00:00
Sytse (admin) 708c39ff57 Merge branch 'master' into 'master'
Separate Dockerfile for Data and Application

This is based on #1158

Instead of creating data container from same docker image, we create separate docker image for data container to avoid keeping original docker image after upgrading to new version. (That results in 1GB space that cannot be freed)

See merge request !409
2015-03-26 23:47:00 +00:00
Stan Hu a2e161cb35 Bump Docker build to GitLab v7.9.0 2015-03-23 12:11:38 +00:00
Jozef Vaclavik 71e6871737 Separate Dockerfile for Data and Application 2015-03-20 20:03:14 +01:00
Stan Hu 1fec4eff36 Upgrade Docker image to GitLab v7.8.3 2015-03-10 16:06:58 +00:00
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
zertrin 4acf251693 Fix typo in the README.md for docker
The container name has been previously renamed to "gitlab_app".
2014-12-04 15:58:08 +01: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 176105eca6 Reword configuration to recommend an interactive command line 2014-12-04 10:38:35 +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 3838b168b3 Add password hint. 2014-12-03 12:43:26 +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 ed7760b1d7 Add command to limit Postgres memory allocation, thanks Jacob. 2014-12-02 19:25:04 +01:00
Sytse Sijbrandij 3b643bc87b Move build to first step and add interactive commands. 2014-12-02 17:16:46 +01:00
Sytse Sijbrandij 6f9d9ea09e Postgres log location is a directory. 2014-12-02 16:57:52 +01:00
Sytse Sijbrandij a33cb85530 Add interactive commands. 2014-12-02 16:28:12 +01:00
Sytse Sijbrandij 8dd3a16227 Change vim command. 2014-12-02 16:24:55 +01:00