roclops/genesis-gitlab

By roclops

Updated over 6 years ago

Artifact
Image
0

500K+

roclops/genesis-gitlab repository overview

Roclops | Genesis | Gitlab Community Edition

roclops/genesis-gitlab

A Gitlab CE instance

Running

docker run -d \
    --name gitlab \
    -p 22:22 \
    -p 443:443 \
    -p 80:80 \
    -e GIT_HOSTNAME=<Gitlab Hostname> \
    -e LDAP_HOSTNAME=<LDAP Hostname> \
    -e GITLAB_OMNIBUS_CONFIG="external_url 'https://${GitlabHostPrefix}.${ZoneName}'
              nginx['redirect_http_to_https'] = true
              nginx['ssl_certificate'] = '/ssl_crt.pem'
              nginx['ssl_certificate_key'] = '/ssl_key.pem'
              gitlab_rails['gitlab_default_projects_features_visibility_level'] = 'private'
              gitlab_rails['gitlab_default_projects_limit'] = 10000
              gitlab_rails['gitlab_signup_enabled'] = false
              gitlab_rails['ldap_enabled'] = true
              gitlab_rails['ldap_servers'] = {
                  'main' =>  {
                      'label' => 'LDAP',
                      'host' => '${LDAPHostPrefix}.${ZoneName}',
                      'port' => 636,
                      'uid' => 'uid',
                      'method' => 'ssl',
                      'bind_dn' => '',
                      'password' => '',
                      'allow_username_or_email_login' => true,
                      'base' => 'ou=People,dc=localdomain',
                      'user_filter' => '',
                      'group_base' => 'ou=Groups,dc=localdomain',
                      'admin_group' => 'internal.admins',
                      'sync_ssh_keys' => 'sshPublicKey'
                  }
              }" \
    -v /mnt/efs/gitlab/conf:/etc/gitlab \
    -v /mnt/efs/gitlab/logs:/var/log/gitlab \
    -v /mnt/efs/gitlab/data:/var/opt/gitlab \
    roclops/genesis-gitlab:latest

Then login to https://dockerhostip

Usage

  • Gitlab UI: https://dockerhostip
  • SSH Git Access: ssh://dockerhostip

** Backups are stored in /var/opt/gitlab/backups **

Building

Use the standard Roclops build process.

  • Set VERSION file to the new version.
  • Run "sh build.sh"

This will create a new build image and push to the Roclops Dockerhub repo. Running the build.sh creates/pushes the following tags:

  • <VERSION>.<TIMESTAMP>
  • <VERSION>
  • latest

For example, if the VERSION file contains 1.2.3, then the following tags would be produced and pushed to the Dockerhub repo:

  • 1.2.3.20170124103302
  • 1.2.3
  • latest

Tag summary

Content type

Image

Digest

Size

775.5 MB

Last updated

over 6 years ago

docker pull roclops/genesis-gitlab:1.2.6.20191114133051