This repository teach you how to build your own github-gitlab within container
You have installed docker and docker-compose
- Choose your gitlab
HOME_DIR
and set the environment variableGITLAB_HOME
, e.g.
export GITLAB_HOME=$HOME/gitlab
-
Download the docker-compose.yml file and move it to
$GITLAB_HOME
directory, Then executedocker-compose up
-
Do not worry! It need a few minutes for the container to be healthy. You can use
docker ps
to check the status of the container.
When the container is healthy, step in it and execute gitlab-rails console
docker exec <container's ID> -it /bin/bash
gitlab-rails console
u.password='qweqweqwe'
u.password_confirmation='qweqweqwe'
u.save!
Now, you can log in with root acount via :8939, and the password 'qweqweqwe'