Clone this repository:
git clone git@github.com:hiqdev/docker-satis-gitlab.git
cd docker-satis-gitlab
Build an image:
cd src
docker build -t gitlab-satis .
mkdir -p ~/docker/satis-gitlab
cd ~/docker/satis-gitlab
mkdir config web
SATIS_SITE=https://packagist.mycompany.com/
GITLAB_SITE=https://gitlab.mycompany.com/
GITLAB_TOKEN=XXX_MY_PERSONAL_ACCESS_TOKEN_XXX
Follow this manual to issue a personal access token in GitLab.
We suggest to create a separate GitLab user for this purpose and add it to repositories and organizations as Reporter
to pervent any changes using this token.
This JSON file will used instead of original SATIS config template. Create it empty by default and fill it when you need to put anything extra in the Satis config.
wget -O config/template.json https://raw.githubusercontent.com/mborne/satis-gitlab/master/src/MBO/SatisGitlab/Resources/default-template.json
docker run \
--env-file=.env \
-v /home/username/docker/satis-gitlab/config:/app/config \
-v /home/username/docker/satis-gitlab/web:/app/web \
satis-gitlab
In a few seconds you will see new files in web
and config
directories.
Configure a web server with webroot in web
directory and you are ready to go!
If you don't see new files in web
dir – attach to the container output to start troubleshooting:
docker attach $(docker ps | grep satis | awk '{print $1}')
This project is released under the terms of the BSD-3-Clause license. Read more here.
Copyright © 2018-2019, HiQDev (http://hiqdev.com/)