A Gitlab CE instance
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
https://dockerhostipssh://dockerhostip** Backups are stored in /var/opt/gitlab/backups **
Use the standard Roclops build process.
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>latestFor 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.201701241033021.2.3latestContent type
Image
Digest
Size
775.5 MB
Last updated
over 6 years ago
docker pull roclops/genesis-gitlab:1.2.6.20191114133051