Management tool additions

* Command to build packages locally
* Help message
* Start/Stop/Restart commands
* Select production/development environements
* clean pkgs/repo commands
This commit is contained in:
Thomas Hobson 2021-06-13 18:54:59 +12:00
parent b24edf2ac1
commit 0598c5c9be
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
3 changed files with 86 additions and 36 deletions

View file

@ -1,24 +1,24 @@
version: '3.2'
version: "3.2"
services:
api:
build: api
container_name: piston_api
cap_add:
- CAP_SYS_ADMIN
restart: always
ports:
- 2000:2000
volumes:
- ./data/piston:/piston
environment:
- PISTON_REPO_URL=http://repo:8000/index
tmpfs:
- /piston/jobs:exec
api:
build: api
container_name: piston_api
cap_add:
- CAP_SYS_ADMIN
restart: always
ports:
- 2000:2000
volumes:
- ./data/piston:/piston
environment:
- PISTON_REPO_URL=http://repo:8000/index
tmpfs:
- /piston/jobs:exec
repo: # Local testing of packages
build: repo
container_name: piston_repo
command: ['dart-2.12.1'] # Only build dart
volumes:
- .:/piston
repo: # Local testing of packages
build: repo
container_name: piston_repo
command: ["--no-build"] # Don't build anything
volumes:
- .:/piston