Public | Automated Build

Last pushed: 2 years ago
Short Description
This image uses the image from sameersbn / gitlab but adds the database setup as a script.
Full Description

GitLab for multiple container linkage

This image uses the image from sameersbn / gitlab but adds the database setup as a script and then running of the app itself as a command. This is useful when using the linking approach of using the DB and redis as separate containers and avoids doing the two docker run commands.

The script populates the database. Its recommended to use an image that allows you to create a database via environmental variables at docker run, like paintedfox / postgresql or centurylink / mysql, so the db is populated when this script runs.

The CMD launches the gitlab app. It does take a few minutes for it to come up. Use environmental variables that match your DB's creds to ensure it works.

Note : See the readme on sameersbn / gitlab for the detailed instructions.

Example usage:

docker run --rm --name GITLAB --link DB:mysql --link redis:redisio -p 10080:80 -p 10022:22 -e "DB_USER=bob" -e "DB_PASS=pass@word" -e "DB_NAME=gitlab" -e "GITLAB_PORT=10080" -e "GITLAB_SSH_PORT=10022" centurylink/gitlab

Docker Pull Command
Source Repository

Comments (2)
2 years ago

The previous email problems were being caused by trying to use SMARTTLS on a TLS only port. The Gitlab docker image doesn't seem to support configuration for TLS so I needed to revert to plain text (port 25/26) in order to be able to send emails.

2 years ago

I'm using this in a panamax template and everything works fine except for the email messages.

No email messages are send (e.g. when you create a new user or ask for a password reset) and by looking at sidekiq.log I find this:

2015-06-20T18:01:53Z 834 TID-b41vs WARN: {"retry"=>true, "queue"=>"mailer", "class"=>"Devise::Async::Backend::Sidekiq", "args"=>["reset_password_instructions", "User", "2", "BRLWr5swJQGZKx4e39Jn", {}], "jid"=>"77069f3bb405d472beec953b", "enqueued_at"=>1434823291.862682, "error_message"=>"getaddrinfo: Name or service not known", "error_class"=>"SocketError", "failed_at"=>"2015-06-20 18:01:31 UTC", "retry_count"=>1, "retried_at"=>2015-06-20 18:01:53 UTC}

Special relevance to: getaddrinfo: Name or service not known

any idea what might be causing this?