Want a development container?
x
gon' give it to ya'.
- Put
x
somewhere in yourPATH
. - Create an
x.json
file for your project. - Run
x <COMMAND>
to run your command inside a development container. - To get the ID of the container run
x
without any arguments.
- Zero dependencies besides Docker and Python.
- Supports X11 out of the box.
- Automatically mounts the project directory, your home directory, and any extra mounted partitions inside the container.
x bash
docker rm -f $(x)
x
looks for x.json
or .x.json
files for the project configuration.
Additionally you can override fields from the project configuration by supplying your a .x.user.json
or a x.user.json
.
image
- An image to use for the container (example:ubuntu:19.04
)dockerfile
- The path to a Dockerfile to use to build the container.docker_buildkit
- Enable BuildKit.docker_context
- The context directory to use to build the image ifdockerfile
is supplied.docker_secrets
- Pass--secret
to thedocker build
command.docker_ssh
- Pass--ssh=default
to thedocker build
command.docker_network
- The argument to pass to docker's--network
flag (default:host
).
For more examples take a look at the ./examples
directory.
{
"image": "ubuntu:19.04"
}