In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to build gitlab for Docke instances". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn how to build gitlab for Docke instances.
Overview of gitlab introduction
GitLab is an open source project for warehouse management systems. Use Git as a code management tool, and build a web service on this basis. Github is a public git repository, while Gitlab is suitable for building private git repositories within an enterprise.
Official website:
Https://about.gitlab.com/
Https://github.com/gitlabhq/gitlabhq
Front end: Nginx, used for pages and Git tool using http or https protocol
Backend: Gitlab service, using Ruby on Rails framework, realizing background service and multi-process through unicorn
SSHD: enable the sshd service for users to upload ssh key for version cloning and upload. Note: the ssh key uploaded by the user is saved to the git account
Database: only MySQL and PostgreSQL are currently supported
Redis: used to store user session and tasks, including creating a new warehouse, sending mail, and so on.
Included with the Sidekiq:Rails framework, subscribe to tasks in redis and execute them
Build process
1. Create a virtual machine
Docker-machine create-driver virtualbox--virtualbox-cpu-count 4-virtualbox-memory 3072 dev-gitlab
two。 Configure the accelerator for the virtual machine
Docker-machine ssh dev-gitlabsudo sed-I "s | EXTRA_ARGS=' | EXTRA_ARGS='--registry-mirror= http://6cade60d.m.daocloud.io | g" / var/lib/boot2docker/profileexitdocker-machine restart dev-gitlab
3. Download redis,postgresql,gitlab image
Docker pull sameersbn/redisdocker pull sameersbn/postgresqldocker pull sameersbn/gitlab
4. Execute the above image to generate the container (\ show for newline characters, actually remove\ line execution)
# generate postgresql image container docker run-- name postgresql-d\-e 'DB_NAME=gitlabhq_production'\-e 'DB_USER=gitlab'\-e 'DB_PASS=password'\-e' DB_EXTENSION=pg_trgm'\-v / home/docker/opt/postgresql/data:/var/lib/postgresql\ sameersbn/postgresql# generate redis image container docker run-- name redis-d\-v / home/docker/opt/redis/data:/var/lib/redis\ sameersbn / redis# generates redis image container # Note: the address assigned by GITLAB_HOST to the virtual machine is docker run-- name gitlab-d\-- link postgresql:postgresql-- link redis:redisio\-p 10022 GITLAB_HOST 22-p 10080 GITLAB_SECRETS_SECRET_KEY_BASE=long-and 80\-e 'GITLAB_PORT=10080'\-e' GITLAB_SSH_PORT=10022'\-e 'GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alpha-numeric-string'\-e' GITLAB_SECRETS_SECRET_KEY_BASE=long-and -random-alpha-numeric-string'\-e 'GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alpha-numeric-string'\-e' GITLAB_HOST=192.168.99.100'\-e 'GITLAB_EMAIL=xiahl0916@163.com'\-e' SMTP_ENABLED=true'\-e 'SMTP_DOMAIN=www.163.com'\-e' SMTP_HOST=smtp.163.com'\-e 'SMTP_STARTTLS=false'\-e' SMTP_USER= email address' \-e 'SMTP_PASS= email password'\-e 'SMTP_AUTHENTICATION=login'\-e' GITLAB_BACKUP_SCHEDULE=daily'\-e 'GITLAB_BACKUP_TIME=00:30'\-v / home/docker/opt/gitlab/data:/home/git/data-m 2048m-- memory-swap=-1\ sameersbn/gitlab are all the contents of the article "how to build gitlab for Docke instances" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.