在docker上發現一箇中文版的gitlab,翻譯的不是很全,但也比官方原版的半中文要好很多。html
1. `docker pull twang2218/gitlab-ce-zh` 2. `mkdir -p /srv/gitlab/{config,logs,data}` 3. `docker run -d -p 443:443 -p 9001:80 -p 8022:22 --name gitlab --restart always --privileged=true -v /srv/gitlab/config:/etc/gitlab -v /srv/gitlab/logs:/var/log/gitlab -v /srv/gitlab/data:/var/opt/gitlab -v /etc/localtime:/etc/localtime:ro twang2218/gitlab-ce-zh` 4. 訪問:主機IP:9001。默認用戶是root,剛進入時要修改密碼很多於八個字符
cat > /etc/yum.repos.d/gitlab-ce.repo << EOF [gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/ gpgcheck=0 enabled=1 EOF
yum makecache
yum install github-ce
docker exec -it gitlab vim /etc/gitlab/gitlab.rb
docker exec -it gitlab gitlab-ctl reconfigure
docker restart gitlab
http://192.168.0.233