Skip to content

albert0815/gitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prereq mac

install brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install coreutils
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"

How to restore gitlab

Create place where the docker stuff will be available. E.g.:

Create directories:

docker_installation_dir=/Users/albert/docker
mkdir $docker_installation_dir
mkdir $docker_installation_dir/docker-volumes
su ln -s $docker_installation_dir/docker-volumes /docker-volumes

You need to add this dir in the configuration of docker to be allowed for sharing (see e.g. https://stackoverflow.com/questions/45122459/docker-mounts-denied-the-paths-are-not-shared-from-os-x-and-are-not-known).

Afterwards we can use the setup-gitlab.sh script to restore gitlab from the backup (in case backup is in a different folder than expected you need to change it in the script as this script restores the docker-volumes directory backup).

git clone git@github.com:albert0815/gitlab.git
cd gitlab
./setup-gitlab.sh

now you should be able to deploy images with gitlab

Getting started

login to mac mini

docker ps #shows running docker containers, should be web server, gitlab, gitlab-runner, mysql, passbolt

Known errors

Gitlab won't come up in case /docker-volumes/backup is not available (e.g. backup hard drive not connected to fritz box).

Certbot

docker exec -it web-server bash
certbot certonly --webroot -w /usr/share/nginx/letsencrypt -d www.dirkpapenberg.de
certbot certonly --webroot -w /usr/share/nginx/letsencrypt -d gitlab.dirkpapenberg.de
certbot certonly --webroot -w /usr/share/nginx/letsencrypt -d passbolt.dirkpapenberg.de
nginx -s reload

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published