zengxs / gitlab-arm64 Goto Github PK
View Code? Open in Web Editor NEWGitLab docker image (CE & EE) for arm64
License: Apache License 2.0
GitLab docker image (CE & EE) for arm64
License: Apache License 2.0
mac电脑m2芯片arm64架构,准备在docker上部署gitlab-ce,遇到一个问题:
# 版本
version: "2.1"
# 服务
services:
# 服务名
gitlab-ce-ser:
# 镜像 macOS arm64芯片
image: "yrzr/gitlab-ce-arm64v8:latest"
# image: "gitlab/gitlab-ce:latest"
# 容器名
container_name: "gitlab-ce"
# 重启策略 失败一直重启
restart: always
hostname: "127.0.0.1"
environment:
GITLAB_OMNIBUS_CONFIG: |
# external_url 'https://gitlab.example.com'
# Add any other gitlab.rb configuration here, each on its own line
ports:
- "9090:80"
- "9043:443"
- "9022:22"
volumes:
- type: bind
source: ${GITLAB_HOME}/config
target: /etc/gitlab
- type: bind
source: ${GITLAB_HOME}/logs
target: /var/log/gitlab
- type: bind
source: ${GITLAB_HOME}/data
target: /var/opt/gitlab
shm_size: "256m"
不绑定数据卷的docker compose 注销掉数据卷相关行即可。
绑定数据卷时,数据卷绑定是正常的,就是一旦绑定数据卷就会报上面的错误,请老师指教。十分感谢!
Hi
CE represents the community edition, which is open source and free. EE represents the enterprise edition, which includes more features but requires a license purchased from GitLab B.V..
The description about GitLab CE/EE is not quite correct. The actual difference is that (if you self-host you instance) you only be able to upgrade to a paid tier if you are on EE but not CE.
Hi, I am running the following docker-compose.yml on my Raspberry Pi (aarch64):
version: '3.9'
x-logging:
&default-logging
driver: json-file
options:
max-size: "100m"
max-file: "3"
services:
gitlab:
image: zengxs/gitlab:ee-arm64
container_name: gitlab
restart: unless-stopped
ports:
- "9002:80"
- "2222:22"
environment:
TZ: Europe/Berlin
GITLAB_OMNIBUS_CONFIG: from_file('/home/pi/gitlab/gitlab.rb')
volumes:
# Your gitlab configurations file
- ./gitlab.rb:/etc/gitlab.rb:ro
# GitLab data dirs
- /mnt/sda/gitlab:/etc/gitlab
- /mnt/sda/gitlab:/var/log/gitlab
- /mnt/sda/gitlab:/var/opt/gitlab
logging: *default-logging
My gitlab.rb is in the same location as the docker-compose.yml (/home/pi/gitlab):
########## GitLab Configurations ##########
# More configurations see: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
external_url "https://git.somedomain.com"
gitlab_rails['initial_root_password'] = somepass
When I check for my container, I only see this:
pi@raspberry:~/gitlab $ docker container ls | grep gitlab
39a8c090bc0b zengxs/gitlab:ee-arm64 "/assets/wrapper" 3 minutes ago Restarting (159) 56 seconds ago > gitlab
Did I miss something to configure?
I used in my compose untill now the zengxs/gitlab:ee image but with 16.10.1 it is not updated, and also the latest.
I had to switch my compose to zengxs/gitlab:ee-amd64. Can i know why?
All ports except 22 do not work. The connection is reset.
docker-compose.yml:
version: '3.6'
services:
web:
image: 'zengxs/gitlab:ee' # Also: "image: 'zengxs/gitlab:latest'" or "image: 'zengxs/gitlab:ce'"
restart: always
hostname: 'localhost'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost'
gitlab_rails['gitlab_shell_ssh_port'] = 2222
# Add any other gitlab.rb configuration here, each on its own line
ports:
- "3000:80"
- "3001:443"
- "2222:22"
volumes:
- ./config:/etc/gitlab
- ./logs:/var/log/gitlab
- ./data:/var/opt/gitlab
shm_size: '256m'
I tried to run the gitlab ee docker image on mini mac by the following command:
sudo docker run --detach --hostname mini-mac --publish 8443:443 --publish 8080:80 --publish 8022:22 --name gitlab --restart always --volume $GITLAB_HOME/config:/etc/gitlab --volume $GITLAB_HOME/logs:/var/log/gitlab --volume $GITLAB_HOME/data:/var/opt/gitlab --shm-size 256m zengxs/gitlab:ee
but got the following access error:
Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:
34: include_recipe 'postgresql::directory_locations'
35:
36: directory "/etc/gitlab" do
37: owner "root"
38: group "root"
39: mode "0775"
40: only_if { node['gitlab']['manage_storage_directories']['manage_etc'] }
41>> end.run_action(:create)
42:
43: node.default['gitlab']['bootstrap']['enable'] = false if File.exist?("/var/opt/gitlab/bootstrapped")
44:
45: directory "Create /var/opt/gitlab" do
46: path "/var/opt/gitlab"
47: owner "root"
48: group "root"
49: mode "0755"
50: recursive true
System Info:
------------
chef_version=17.10.0
platform=ubuntu
platform_version=22.04
ruby=ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [aarch64-linux]
program_name=/opt/gitlab/embedded/bin/cinc-client
executable=/opt/gitlab/embedded/bin/cinc-client
Running handlers:
[2023-08-11T00:46:07+00:00] ERROR: Running exception handlers
Running handlers complete
There was an error running gitlab-ctl reconfigure:
directory[/etc/gitlab] (gitlab::default line 36) had an error: Errno::EACCES: Permission denied @ apply2files - /etc/gitlab
[2023-08-11T00:46:07+00:00] ERROR: Exception handlers complete
Infra Phase failed. 0 resources updated in 01 seconds
[2023-08-11T00:46:07+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2023-08-11T00:46:07+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-08-11T00:46:07+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2023-08-11T00:46:07+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-08-11T00:46:07+00:00] FATAL: Errno::EACCES: directory[/etc/gitlab] (gitlab::default line 36) had an error: Errno::EACCES: Permission denied @ apply2files - /etc/gitlab
Thank you for using GitLab Docker Image!
Current version: =
Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:
docker exec -it gitlab editor /etc/gitlab/gitlab.rb
docker restart gitlab
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
If this container fails to start due to permission problems try to fix it by executing:
docker exec -it gitlab update-permissions
docker restart gitlab
Then try to chmod 777 or 766 $GITLAB_HOME
, still have the same error.
Hi,
I just noticed zengxs/gitlab:16.5-ee
fails on boot after upgrading from zengxs/gitlab:16.4-ee
with:
gitlab-web-1 | gitlab Reconfigured!
gitlab-web-1 | Checking for unmigrated data on legacy storage
gitlab-web-1 | Upgrade failed. Could not check for unmigrated data on legacy storage.
gitlab-web-1 |
gitlab-web-1 | rake aborted! Don't know how to build task 'gitlab:storage:legacy_attachments' (See the list of available tasks with 'rake --tasks') Did you mean? gitlab:db:truncate_legacy_tables:main /opt/gitlab/embedded/bin/bundle:25:in 'load' /opt/gitlab/embedded/bin/bundle:25:in '<main>' (See full trace by running task with --trace)
gitlab-web-1 |
gitlab-web-1 |
gitlab-web-1 | If you would like to restart the instance without performing this
gitlab-web-1 | check, add the following to your docker command:
gitlab-web-1 | -e GITLAB_SKIP_UNMIGRATED_DATA_CHECK=true
how could write this in compose file?
2023-12-07 14:27:21 ================================================================================
2023-12-07 14:27:21 Error executing action `create` on resource 'database_objects[postgresql]'
2023-12-07 14:27:21 ================================================================================
2023-12-07 14:27:21
2023-12-07 14:27:21 RuntimeError
2023-12-07 14:27:21 ------------
2023-12-07 14:27:21 postgresql_user[gitlab] (postgresql::standalone line 21) had an error: RuntimeError: execute[create gitlab postgresql user] (postgresql::standalone line 13) had an error: RuntimeError: PostgreSQL did not respond before service checks were exhausted
2023-12-07 14:27:21
2023-12-07 14:27:21 Cookbook Trace: (most recent call first)
2023-12-07 14:27:21 ----------------------------------------
2023-12-07 14:27:21 /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helpers/pg_status_helper.rb:56:in `ready?'
2023-12-07 14:27:21 /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/libraries/helpers/base_pg_helper.rb:28:in `is_ready?'
2023-12-07 14:27:21 /opt/gitlab/embedded/cookbooks/cache/cookbooks/postgresql/resources/user.rb:16:in `block (3 levels) in class_from_file'
2023-12-07 14:27:21 /opt/gitlab/embedded/cookbooks/cache/cookbooks/postgresql/resources/user.rb:13:in `block in class_from_file'
2023-12-07 14:27:21 /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/resources/database_objects.rb:21:in `block in class_from_file'
2023-12-07 14:27:21
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.