gitlab-ce running on ubuntu for m1 macs
1.5K
gitlab-ce running on ubuntu for m1 macs
creates an ubuntu Docker container that you can run on a mac with ssh access and gitlab-ce
docker run -ti -d -p 2222:22 -p 8080:80 --name gitlab-ce-arm64 --hostname gitlab-ce-arm64 antonidas42o/gitlab-ce-arm64 /bin/bash -c "systemctl start ssh sshd runit"
ssh [email protected] -p 2222
example output:
[~]> ssh [email protected] -p 2222
The authenticity of host '[localhost]:2222 ([::1]:2222)' can't be established.
ECDSA key fingerprint is 82:47:98:3a:2c:e2:d7:6f:9d:22:ba:ab:a9:0f:c8:d2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:2222' (ECDSA) to the list of known hosts.
root@localhost's password:
default root password is: 123allerlei?
connect to your container via docker exec:
docker exec -it 'gitlab-ce-arm64' /bin/zsh
or via ssh:
ssh [email protected] -p 2222
in the console of your container execute the following commands in the order i wrote them down:
/opt/gitlab/embedded/bin/runsvdir-start &gitlab-ctl startgitlab-ctl reconfigurehttp://0.0.0.0:8080. it should load the login page of your gitlab instancenano /etc/gitlab/initial_root_password
root in the username field.(optional) build docker image from Dockerfile (only if you dont trust me or just want to learn how to do it on your own)-> you have to be in the directory with the Dockerfile!
docker build --label gitlab-ce-arm64 --tag gitlab-ce-arm64 .
Content type
Image
Digest
Size
1.2 GB
Last updated
over 4 years ago
docker pull antonidas42o/gitlab-ce-arm64