Hi
I am able to test gitlab-ce in OMV4 docker in armhf version.
It use about ~ 1Gb out of my 4G from Rock64
Code:
#docker stats gitlab
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
xxxxxxxxxdca gitlab 9.90% 1.168GiB / 3.832GiB 30.49% 4.99MB / 624kB 298MB / 298MB 155
First pull from
https://hub.docker.com/r/ulm0/gitlab/; thanks to ulm0 at
https://github.com/ulm0/gitlab
Code:
docker pull ulm0/gitlab
Here is config container, replace example with your variables...important to config
GITLAB_OMNIBUS_CONFIG
Code:
docker create \
--hostname EXAMPLE.COM \
--env GITLAB_OMNIBUS_CONFIG="external_url 'https://EXAMPLE.COM:81/';nginx['listen_https'] = false;nginx['redirect_http_to_https'] = false;gitlab_rails['gitlab_shell_ssh_port'] = 24;postgresql['enable'] = false;postgresql['shared_buffers'] = '56MB';prometheus_monitoring['enable'] = false;unicorn['worker_processes'] = 2;sidekiq['concurrency'] = 1;gitlab_rails['db_adapter'] = 'postgresql';gitlab_rails['db_encoding'] = 'utf8';gitlab_rails['db_host'] = 'YOUR_ROCK_IP';gitlab_rails['db_port'] = 5432;gitlab_rails['db_username'] = 'DB_USERNAME';gitlab_rails['db_password'] = 'DB_PASSWORD';gitlab_rails['db_database'] = 'GITLAB_DB';gitlab_rails['smtp_enable'] = true;gitlab_rails['smtp_address'] = 'MAIL.EXAMPLE.COM';gitlab_rails['smtp_port'] = 587;gitlab_rails['smtp_user_name'] = 'ADMIN@EXAMPLE.COM';gitlab_rails['smtp_password'] = 'MAIL_PASSWORLD';gitlab_rails['smtp_domain'] = 'MAIL.EXAMPLE.com';gitlab_rails['smtp_authentication'] = 'login';gitlab_rails['smtp_enable_starttls_auto'] = true;" \
-p 0.0.0.0:443:443 -p 0.0.0.0:8081:81 -p 0.0.0.0:24:22 \
--name gitlab \
-v /srv/YOUR_MOUNT/gitlab/config:/etc/gitlab \
-v /srv/YOUR_MOUNT/gitlab/logs:/var/log/gitlab \
-v /srv/YOUR_MOUNT/gitlab/data:/var/opt/gitlab \
ulm0/gitlab
Nginx proxy:
Code:
location / {
gzip off;
client_body_buffer_size 128k;
client_max_body_size 0;
proxy_buffer_size 16k;
proxy_buffers 32 16k;
proxy_busy_buffers_size 64k;
proxy_connect_timeout 60;
proxy_intercept_errors on;
proxy_next_upstream error timeout;
proxy_redirect off;
proxy_send_timeout 90;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Host $http_host;
proxy_temp_file_write_size 64k;
proxy_pass http://localhost:8081;
}