Docker Satis Gitlab

Latest Stable Version Total Downloads Build Status Scrutinizer Code Coverage Scrutinizer Code Quality

Installation

Clone this repository:

git clone git@github.com:hiqdev/docker-satis-gitlab.git
cd docker-satis-gitlab

Building

Build an image:

cd src
docker build -t gitlab-satis .

Usage

Create directory for your future container somewhere on your server:

mkdir -p ~/docker/satis-gitlab
cd ~/docker/satis-gitlab
mkdir config web

Create .env file:

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.

Create additional config file:

This JSON file will merged with the resulting Satis config. Create it empty by default and fill it when you need to put anything extra in the Satis config.

echo '{}' > config/prototype.json

Run Docker container:

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!

Troubleshooting

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}')

Acknowledges

License

This project is released under the terms of the BSD-3-Clause license. Read more here.

Copyright © 2018, HiQDev (http://hiqdev.com/)