Public | Automated Build

Last pushed: 3 days ago
Short Description
GitLab Community Edition docker image based on the Omnibus package
Full Description

GitLab Docker images

Docker Pull Command
Owner
gitlab
Source Repository

Comments (79)
alexhaller
a month ago

Hi, can you pls provide an image for ARM-architecture (Raspberry Pi 3)? Maybe this article will help: https://resin.io/blog/building-arm-containers-on-any-x86-machine-even-dockerhub/
Thanks a lot!

brucezu
a month ago

I check some image version got from https://hub.docker.com/r/gitlab/gitlab-ce/tags/
and run into the same error with https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1350

I provide some information.
Will you please check it.
If you need more information please let me know
Thank you

tureba
a month ago

Right... their build system is a mess. It's the reason why the "Build Details" tab shows bogus data and their Dockerfile is broken. Really messy project.

You might want to search for known bugs in their issue trackers or open a new one. I suggest starting with these:

rafaelxld
a month ago

The error is here in dockerfile "COPY assets/wrapper /usr/local/bin/"

rafaelxld
a month ago

Thanks, on arriving in the bin folder, what should I do, exactly?

rafaelxld
a month ago

What is the path to start the server? After docker run

tureba
2 months ago

Gitlab is good, but this container is absolutely bonkers. It's not stateless at all, with directories containing both generated content and persistent stuff. The log dir is way too messy to be useful with that weird log rotator, so throw it out along with the other published volumes. And use external postgres and redis services, for the love of whatever you hold holy. (No need to have gitlab authenticate to postgres in local unix socket; just set this in pg_hba.conf and be happy: "local gitlab gitlab trust" and make sure the gitlab user has no special permissions besides login).

What I had to use to get a sane-ish persistence of only useful data was (docker-compose v2 format):
environment:
GITLAB_OMNIBUS_CONFIG: |
registry['storage'] = { 'filesystem' => { 'rootdirectory' => '/var/lib/registry' } }
redis['enable'] = false
gitlab_rails['redis_socket'] = "/run/redis/redis.sock"
postgresql['enable'] = false
gitlab_rails['db_adapter'] = "postgresql"
gitlab_rails['db_encoding'] = "unicode"
gitlab_rails['db_database'] = "gitlab"
gitlab_rails['db_username'] = "gitlab"
gitlab_rails['db_socket'] = "/run/postgresql/.s.PGSQL.5432"
volumes:

  - '/run/postgresql:/run/postgresql:Z'
  - '/run/postgresql:/var/opt/gitlab/postgresql:Z' # necessary because of a bug where db_socket is ignored in parts of gitlab app
  - '/run/redis:/run/redis:Z'
  - '/var/lib/gitlab/builds:/var/opt/gitlab/gitlab-ci/builds:Z'
  - '/var/lib/gitlab/etc:/etc/gitlab:Z'
  - '/var/lib/gitlab/repositories:/var/opt/gitlab/git-data/repositories:Z'
  - '/var/lib/gitlab/uploads:/var/opt/gitlab/gitlab-rails/uploads:Z'
  - '/var/lib/registry:/var/lib/registry:Z'

With that, you make sure you backup your /var/lib/gitlab dir plus your postgres (which you probably already do) and maybe /var/lib/registry (this one I don't backup because it's easily rebuilt data).

After the first boot, the /etc/gitlab dir can be mounted ro and the gitlab user in postgres can lose the createdb permission.

pradeepasuri
2 months ago

There is no gitlab.rb file inside /etc/gitlab

Errno::ENOENT

No such file or directory @ rb_sysopen - /etc/gitlab/gitlab.rb

Is there something I am missing or the Image is having problem.

zaneceo
2 months ago

Attention everyone trying to run a dockerize GitLab in a Windows host with VirtualBox! There is a know problem causing permission issue and container failure. See here for a workaround.

steveives
2 months ago

Has anyone managed to get gitlab-ce fully running under Docker for Windows. I can get it running, but I can't seem to make it propagate data across host system (and therefor docker) restarts. I have adapted the instructions to use volumes on my local windows system, and I am seeing config, data, logs folders created as well as files within them, but the instance seems to restart every few seconds. The only clue I have is that in logs\reconfigure I am seeing lots of log files, containing this:

.
.
.
[2016-11-23T20:09:30+00:00] INFO: template[/var/opt/gitlab/.gitconfig] owner changed to 998
[2016-11-23T20:09:30+00:00] INFO: template[/var/opt/gitlab/.gitconfig] group changed to 998
[2016-11-23T20:09:30+00:00] INFO: template[/var/opt/gitlab/.gitconfig] mode changed to 644
[2016-11-23T20:09:31+00:00] INFO: Running queued delayed notifications before re-raising exception
[2016-11-23T20:09:31+00:00] ERROR: Running exception handlers
[2016-11-23T20:09:31+00:00] ERROR: Exception handlers complete
[2016-11-23T20:09:31+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
[2016-11-23T20:09:31+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-11-23T20:09:31+00:00] ERROR: ruby_block[directory resource: /var/opt/gitlab/git-data] (gitlab::gitlab-shell line 26) had an error: Mixlib::ShellOut::ShellCommandFailed: Failed asserting that ownership of "/var/opt/gitlab/git-data" was git
---- Begin output of set -x && [ "$(stat --printf='%U' $(readlink -f /var/opt/gitlab/git-data))" = 'git' ] ----
STDOUT:
STDERR: + readlink -f /var/opt/gitlab/git-data

  • stat --printf=%U /var/opt/gitlab/git-data
  • [ root = git ]
    ---- End output of set -x && [ "$(stat --printf='%U' $(readlink -f /var/opt/gitlab/git-data))" = 'git' ] ----
    Ran set -x && [ "$(stat --printf='%U' $(readlink -f /var/opt/gitlab/git-data))" = 'git' ] returned 1
    [2016-11-23T20:09:31+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Seems like there is a problem related to permissions, but I am a total NEWB to both Docker and GitLab and don't know where to go next. I have checked that the permissions on the windows folders are all wide open. Any suggestions anyone?