https://github.com/hiqdev/docker-satis-gitlab
Docker Satis Gitlab
https://github.com/hiqdev/docker-satis-gitlab
hacktoberfest
Last synced: 5 months ago
JSON representation
Docker Satis Gitlab
- Host: GitHub
- URL: https://github.com/hiqdev/docker-satis-gitlab
- Owner: hiqdev
- License: bsd-3-clause
- Created: 2018-02-09T14:25:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-04T10:09:23.000Z (over 7 years ago)
- Last Synced: 2025-09-08T14:47:31.845Z (10 months ago)
- Topics: hacktoberfest
- Language: Dockerfile
- Size: 10.7 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Satis Gitlab
[](https://packagist.org/packages/hiqdev/docker-satis-gitlab)
[](https://packagist.org/packages/hiqdev/docker-satis-gitlab)
[](https://travis-ci.org/hiqdev/docker-satis-gitlab)
[](https://scrutinizer-ci.com/g/hiqdev/docker-satis-gitlab/)
[](https://scrutinizer-ci.com/g/hiqdev/docker-satis-gitlab/)
## Installation
Clone this repository:
```sh
git clone git@github.com:hiqdev/docker-satis-gitlab.git
cd docker-satis-gitlab
```
### Building
Build an image:
```sh
cd src
docker build -t gitlab-satis .
```
### Usage
#### Create directory for your future container somewhere on your server:
```sh
mkdir -p ~/docker/satis-gitlab
cd ~/docker/satis-gitlab
mkdir config web
```
#### Create `.env` file:
```env
SATIS_SITE=https://packagist.mycompany.com/
GITLAB_SITE=https://gitlab.mycompany.com/
GITLAB_TOKEN=XXX_MY_PERSONAL_ACCESS_TOKEN_XXX
```
Follow [this manual](https://docs.gitlab.com/ce/user/profile/personal_access_tokens.html#creating-a-personal-access-token) 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 used instead of [original SATIS config template](https://github.com/mborne/satis-gitlab/blob/master/src/MBO/SatisGitlab/Resources/default-template.json).
Create it empty by default and fill it when you need to put anything extra in the Satis config.
```sh
wget -O config/template.json https://raw.githubusercontent.com/mborne/satis-gitlab/master/src/MBO/SatisGitlab/Resources/default-template.json
```
#### Run Docker container:
```sh
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:
```sh
docker attach $(docker ps | grep satis | awk '{print $1}')
```
## Acknowledges
- [Composer Satis project](https://github.com/composer/satis)
- [GitLab Satis project](https://github.com/mborne/satis-gitlab)
## License
This project is released under the terms of the BSD-3-Clause [license](LICENSE).
Read more [here](http://choosealicense.com/licenses/bsd-3-clause).
Copyright © 2018-2019, HiQDev (http://hiqdev.com/)