Want a development container?
xgon' give it to ya'.
- Put
xsomewhere in yourPATH. - Create an
x.jsonfile for your project. - Run
x <COMMAND>to run your command inside a development container. - To get the ID of the container run
xwithout 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 ifdockerfileis supplied.docker_secrets- Pass--secretto thedocker buildcommand.docker_ssh- Pass--ssh=defaultto thedocker buildcommand.docker_network- The argument to pass to docker's--networkflag (default:host).
For more examples take a look at the ./examples directory.
{
"image": "ubuntu:19.04"
}