Host Your Own GitHub Alternative with GitLab in Docker

preview_player
Показать описание
#GitLab #Docker #Git

--------------------------------------------------------------------
What is GitLab
--------------------------------------------------------------------
 
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
   01. Log into the Linux based device
   02. Run the following commands in the terminal
         # install prerequisites
         sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
         # add docker gpg key
         # add docker software repository
         # install docker
         # enable and start docker service
         sudo systemctl enable docker && sudo systemctl start docker
         # add the current user to the docker group
         sudo usermod -aG docker $USER
         # reauthenticate for the new group membership to take effect
         su - $USER
 
--------------------------------------------------------------------
Running GitLab
--------------------------------------------------------------------
   01. Now that Docker is installed, run the following commands to setup the GitLab Docker container and run it
         # create working directory
         sudo mkdir /home/$USER/docker/gitlab -p
         # run the GitLab docker container
         docker run --name gitlab -d --hostname DNSofHost -p 8000:80 -v /home/$USER/docker/gitlab/config:/etc/gitlab -v /home/$USER/docker/gitlab/logs:/var/log/gitlab -v /home/$USER/docker/gitlab/data:/var/opt/gitlab --restart=unless-stopped gitlab/gitlab-ce:latest
         # output root user password
         docker exec -it gitlab cat /etc/gitlab/initial_root_password
   02. Copy the password to your clipboard
   04. Login with the username root and the password copied earlier
   05. Welcome to GitLab running in a Docker container
 
 

### Connect with me and others ###
Рекомендации по теме