Running a single container
run command, valt0 container run adds what it needs.
docker run some-image, run this instead:
docker run $(valt0 container run) some-image ~/.valt0, and the service’s socket file.
run command, valt0 container run adds what it needs.
docker run some-image, run this instead:
docker run $(valt0 container run) some-image compose.yaml:
services:
your-service:
build: .
extends:
file: ${HOME:-${USERPROFILE}}/.valt0/container/valt0.yaml
service: valt0valt0 container compose adds the mounts and environment variables the container needs to one of them.
.env file. To update a different one, such as development.env, name it with --env:
valt0 container compose --env development.env compose.yaml, for the volumes and for the environment passed to the container:
services:
your-service:
build: .
volumes:
- ${VALT0_APPDIR_MOUNT}
- ${VALT0_SOCKET_PATH_MOUNT}
environment:
VALT0_APPDIR: ${VALT0_APPDIR}
VALT0_SOCKET_PATH: ${VALT0_SOCKET_PATH}
VALT0_TRANSPORT_CHANNEL: ${VALT0_TRANSPORT_CHANNEL}--stdout instead. It prints the variables to the terminal, and from there you can map them into compose.yaml by hand, as in the example above.