Skip to content

Latest commit

 

History

History
87 lines (62 loc) · 3.87 KB

README.md

File metadata and controls

87 lines (62 loc) · 3.87 KB

Source Repo Gitlab Pipelines Dockerhub @systemkern Twitter @systemkern LinkedIn @systemkern

Gitlab CE Turnkey Edition 🗝

This is a community project. It is neither officially endorsed nor supportet by Gitlab.

This Project helps in building a Gitlab installation which is already preconfigured out of the box.

This is achieved by allowing access to the postgres database, as well as by creating users and ci-runner registration tokens

Further information can be found in the official Gitlab documentation

Canonical source: This project's canonical source where all development takes place is hosted on gitlab.com/systemkern/gitlab-ce-turnkey.

Contribution: Contributions in the form of bug reports, feature requests, and merge requests are welcome.

Getting started

To run the latest image from the registry:

docker run --rm -it --name gitlab-turnkey                   \
    --network "bridge"                                      \
    --publish "80:80"                                       \
    --publish "10080:10080"                                 \
    --publish "443:443"                                     \
    --publish "2222:22"                                     \
    --publish "5050:5050"                                   \
    --volume "/var/run/docker.sock:/var/run/docker.sock"    \
    --env GITLAB_ROOT_URL="http://$HOST:10080"              \
    --env GITLAB_HTTPS="false"                              \
    --env SSL_SELF_SIGNED='false'                           \
    --env GITLAB_ROOT_PASSWORD=password                     \
    --env GITLAB_SECRETS_DB_KEY_BASE="secret11111111112222222222333333333344444444445555555555666666666612345" \
    --env TZ='Austria/Vienna'                               \
    --env GITLAB_TIMEZONE='Vienna'                          \
    --env POSTGRES_SERVICE_HOST_NAME=localhost              \
    --env DB_NAME="gitlabhq_production"                     \
    --env DB_USER="gitlab"                                  \
    --env POSTGRES_USER="gitlab-psql"                       \
    --env POSTGRES_PASSWORD="securesqlpassword"             \
  gitlab-ce-turnkey:latest

Verify the application

In you browser navigate to http://localhost/

Environment

To verify container status, it takes some time to come in healthy state

$ sudo docker ps -a
CONTAINER ID        IMAGE                      COMMAND             CREATED             STATUS                   PORTS                                                                                      NAMES
bc4c269b8041        gitlab-ce-turnkey:latest   "/wrapper_script.sh"   15 minutes ago      Up 5 minutes (healthy)   0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 127.0.0.1:5432->5432/tcp, 0.0.0.0:2222->22/tcp   gitlab

Building the Image

To build and run the image locally execute: bin/build-run

Why

Read here

Is it any good?

Yes