177 Commits

Author SHA1 Message Date
Christian Fetzer
9952b2d999 init: uid/gid adaption
To this day, Docker does not support mapping user/group ids from the
host to the container. Hence, all files created on the mounted volumes
are owned by git:git (1000:1000). On the host that uid/gid possibly
belongs to a different user/group.

With this change the container will adapt the uid/gid of git in
/etc/passwd and /etc/group to the environment variables USERMAP_UID and
USERMAP_GID if specified.

In addition all files in /home/git and /var/log/gitlab have to be
adapted to reflect those changes. This can be a time consuming process
which can be improved by committing the container after the first run.

Idea from: http://chapeau.freevariable.com/2014/08/docker-uid.html
2014-11-19 20:59:51 +01:00
Sameer Naik
8b59088793 init: drop the sudo -u git -H from app:sanitize commands 2014-11-20 00:03:46 +05:30
Sameer Naik
2ffb235a4a init: added NGINX_WORKERS configuration option, refer #166 2014-11-19 23:15:05 +05:30
Michael Steinert
ae29c0b5ce init: add a weekly backup option 2014-11-17 10:57:01 -06:00
Sameer Naik
3f5e306354 init: specify database port in mysql and postgresql commands, Fixes #197 2014-11-12 10:54:45 +05:30
Sameer Naik
02d8a78c4e init: add ssl_client_certificate nginx config only if the ca.crt file exists 2014-11-12 09:48:19 +05:30
sunits
81d38c4e4d replace to nginx config 2014-11-10 17:23:15 +09:00
sunits
210d87caec client certificate 2014-11-10 15:03:01 +09:00
Sameer Naik
3d13f36245 config: added LDAP_ACTIVE_DIRECTORY configuration option 2014-10-20 21:38:07 +05:30
Sameer Naik
bd582b0de1 database.yml: added collation setting 2014-10-20 21:28:46 +05:30
Sameer Naik
8aa7524e8b init: cleanup database.yml reconnect option setting 2014-10-20 21:26:16 +05:30
Sameer Naik
bd861516ae init: added SMTP_OPENSSL_VERIFY_MODE configuration option
Refer #179
2014-10-19 10:32:46 +05:30
Sameer Naik
d461bb6074 install: store supervisor logs at /var/log/gitlab/supervisor/ 2014-10-17 23:59:08 +05:30
Sameer Naik
0cc533790c install: store gitlab vhost access logs at /var/log/gitlab/nginx/ 2014-10-17 23:59:08 +05:30
Sameer Naik
54f1cc0cd3 install: store gitlab-shell logs at /var/log/gitlab/gitlab-shell/ 2014-10-17 23:59:02 +05:30
Sameer Naik
81f033b0cd install: store gitlab application logs at /var/log/gitlab/gitlab/ 2014-10-17 23:32:21 +05:30
Sameer Naik
e14c904d58 readme: fix database server connection error message 2014-10-17 18:42:21 +05:30
Sameer Naik
1bda0df960 init: automatically compile assets if relative_url is changed
Closes #171
2014-10-14 00:10:32 +05:30
Sameer Naik
2bc666fcc4 init: removed unused sidekiq.yml config template 2014-10-13 22:58:40 +05:30
Sameer Naik
71a3e22a5d init: set default SIDEKIQ_CONCURRENCY to 25 2014-10-13 22:47:23 +05:30
Sameer Naik
173d91a825 init: configure sidekiq concurrency using the -c flag 2014-10-13 22:46:54 +05:30
Sameer Naik
c03ff1f195 init: clean up 2014-10-12 12:04:08 +05:30
Sameer Naik
6094a7d449 init: autostart all daemons when supervisord is started 2014-10-11 00:31:31 +05:30
Sameer Naik
a28ee3fe35 init: do not execute gitlab:check rake task
In the forthcoming commit all daemons will be auto started using
supervisord and the execution of the init script will end at the launch
of supervisord. This does not allow room for the `gitlab:check` task to
be executed in such a way that its output.

User's will need to login to the container and manually start the
`gitlab:check` task if the wish to check the status.
2014-10-11 00:26:38 +05:30
Sameer Naik
bc05a0e792 init: start unicorn and sidekiq using supervisord 2014-10-11 00:01:36 +05:30
Sameer Naik
686162011c init: execute gitlab:satellites:create rake task before starting gitlab 2014-10-10 23:58:39 +05:30
Aidan Rowe
8686d985b5 add option to disable users creating groups 2014-10-09 14:07:04 +10:00
Sameer Naik
1f47e22f28 init: fix DB_PORT setting for linked mysql containers 2014-10-06 22:43:45 +05:30
Sameer Naik
13f3811e42 launch a postgresql container if we can connect to the host docker
When the database connection parameters are not specified, the
image will try to spin up a redis container if it is able to
communicate with the host docker.

This is only possible if the following two options are specified in the
docker run command:
  `-v /var/run/docker.sock:/run/docker.sock`
  `-v $(which docker):/bin/docker`

This is primarily added to get the quick start guide to work without
much of a hassel.
2014-10-01 16:44:13 +05:30
Sameer Naik
c83bcbfb5f removed internal mysql server 2014-10-01 16:44:13 +05:30
Sameer Naik
ac2fe9bc37 init: added support for paintedfox/postgresql image 2014-09-27 23:42:58 +05:30
Sameer Naik
3c6dc4f451 init: added support for orchardup/postgresql image 2014-09-27 23:42:46 +05:30
Sameer Naik
9b4c636866 init: use linkage to fetch additional postgresql access parameters 2014-09-27 23:37:53 +05:30
Sameer Naik
70d034642e init: added support for centurylink/mysql and orchardup/mysql images 2014-09-27 23:29:56 +05:30
Sameer Naik
f504a0fd14 init: use linkage to fetch additional mysql access parameters 2014-09-27 23:27:41 +05:30
Sameer Naik
187bf8b800 added GITLAB_GRAVATAR_ENABLED configuration option, closes #159 2014-09-25 19:31:24 +05:30
Aidan Rowe
456254c6a1 fix password flag in mysql related commands 2014-09-25 18:57:14 +10:00
Sameer Naik
643fb3a9fd init: specify the DB_HOST in all mysql commands 2014-09-25 10:55:27 +05:30
Sameer Naik
7fe87e9baf init: wait for database server to come online 2014-09-25 00:42:43 +05:30
Sameer Naik
92769514dc init: do no silence migration errors 2014-09-25 00:42:39 +05:30
Sameer Naik
29a624d8b5 init: automatically run gitlab:setup rake task
Refer #154
2014-09-25 00:42:19 +05:30
Sameer Naik
78078b08a4 init: replace -uroot with -u ${DB_USER} in the mysql commands 2014-09-24 23:19:03 +05:30
Sameer Naik
b6aa5bf526 init: use the -e mysql flag to specify the query 2014-09-24 23:13:58 +05:30
Sameer Naik
91f65059a0 added GITLAB_WEBHOOK_TIMEOUT configuration option 2014-09-22 14:55:39 +05:30
Sameer Naik
6234225693 remove redis-server stop in appStop 2014-09-20 19:37:44 +05:30
Sameer Naik
5e2d8014be launch a redis container if we can connect to the host docker
When the redis connection parameters are not specified, the image
will try to spin up a redis container if it is able to communicate with
the host docker.

This is only possible if the following two options are specified in the
docker run command:
  `-v /var/run/docker.sock:/run/docker.sock`
  `-v $(which docker):/bin/docker`

This is primarily added to get the quick start guide to work without
much of a hassel.
2014-09-20 14:43:14 +05:30
Sameer Naik
35277f3003 removed internal redis server 2014-09-20 12:50:41 +05:30
Sameer Naik
71d8237156 shutdown the container gracefully, closes #149 2014-09-20 11:39:51 +05:30
Sameer Naik
68c48858a3 manually start cron 2014-09-20 11:26:51 +05:30
Sameer Naik
daa01f9de1 moved startup of openssh-server to appStart function 2014-09-20 11:26:33 +05:30