tiny satis. Only build
332
This satis command build a dist directory with packages that you defined each time when it runs on docker.
If you want to serve this files you can used nginx
If you need connected to private repo. You can mount your ssh config like id_ id_rsa, id_rsa.pub, known_hosts
/root/.ssh
All packages that download go to this directory /data/satis/web. If you want served files can do it with nginx see bellow
/data/satis/web
If you can run periodically satis. You can run docker container in your docker host. For example
docker run --name mysatis ...
# in your cron
docker start mysatis && docker logs -f mysatis 2>&1 > mylogs.log
Mount your satis.json in this directory
/data/satis/config
GITHUB_OAUTH: your github oauth
VERBOSITY: verbosity level {v|vv|vvv}
voldata:
image: tianon/true:latest
command: /true
volumes:
- satis/web:/data/satis/web
- satis/config:/data/satis/config
- satis/certs:/root/.ssh
satis:
image: javiervivanco/docker-satis
environment:
GITHUB_OAUTH: XXXXXXXXXXXXXX
VERBOSITY: vv
volumes_from:
- voldata
web:
image: nginx
ports:
- '80:80'
volumes:
- satis/web:/usr/share/nginx/html
{
"name": "Composer Mirror",
"require": {
"phpunit/phpunit": "*",
},
"repositories": [
{
"url": "https://packagist.org",
"type": "composer"
}
],
"require-dependencies": true,
"homepage": "http://localhost",
"archive": {
"directory": "dist",
"format": "zip"
}
}
Content type
Image
Digest
sha256:5cccd31cc…
Size
30.1 MB
Last updated
about 10 years ago
docker pull javiervivanco/docker-satis