It is simple wrapper around docker. It makes possible to create some cli in your project (building static, generating protobuf, etc.).
Example of using:
$ pip install bagga
$ bagga some_command
Example of dct.yaml:
containers:
static-container: |
FROM alpine:3.7
RUN apk add --update nodejs nodejs-npm
app-container: |
FROM jfloff/alpine-python
WORKDIR workdir
COPY server .
RUN pip install -r requirements
commands:
build-js:
container: static-container
volumes:
~/project:/opt/project
cmd: |
echo 'building js'
echo 'ok'
build-css:
container: static-container
cmd: |
echo 'building css'
echo 'ok'
run:
container: app-container
ports:
5000:5000
cmd: |
FLASK_APP=run.py python -m flask run
Run:
$ bagga build-css
Command | Description |
---|---|
-d [--docker-commands] '{commands}' |
Add custom docker commands for docker run |
-c [--config] '{config_path}' |
Use custom config file instead of dct.yaml |