Sign inSign up

antonidas42o/gitlab-ce-arm64

By antonidas42o

Updated over 4 years ago

gitlab-ce running on ubuntu for m1 macs

Image
0

1.5K

antonidas42o/gitlab-ce-arm64 repository overview

ubuntu gitlab-ce container for M1 Macs (tested on macOS 12.3.1)

buy me a ☕️

gitlab-ce running on ubuntu for m1 macs

ubuntu gitlab-ce container for m1 macs and any other x86_64 machine

creates an ubuntu Docker container that you can run on a mac with ssh access and gitlab-ce

get and run image with services like ssh, sshd and runit.

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"

how to connect per ssh

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?

IMPORTANT

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:

  1. /opt/gitlab/embedded/bin/runsvdir-start &
  2. gitlab-ctl start
  3. gitlab-ctl reconfigure

how to login to the gitlab instance?

  1. open a browser and go to http://0.0.0.0:8080. it should load the login page of your gitlab instance
  2. connect to the terminal of your container.
  3. open /etc/gitlab/initial_root_password with the following command:
nano /etc/gitlab/initial_root_password
  1. copy the password out of this file and go back to your browser to the gitlab login page
  2. enter root in the username field.
  3. paste the previously copied password into the password field and hit enter.
  4. enjoy gitlab-ce!

build from Dockerfile:

(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 .

Tag summary

Content type

Image

Digest

Size

1.2 GB

Last updated

over 4 years ago

docker pull antonidas42o/gitlab-ce-arm64