Examples of building minimal Docker containers with GNU Guix!
| www | Examples from the stream | |
| LICENSE | Add LICENSE | |
| minimal.scm | Examples from the stream | |
| profile-manifest.scm | Examples from the stream | |
| README.org | Add LICENSE | |
| run-config.sh | Fix web-server configuration | |
| web-server.scm | Fix web-server configuration | |
Examples of Minimal Docker Images with GNU Guix
Scenarios
Building an image from a Guix manifest
Use this if you already have a manifest.scm file for your project and you want to replicate your development environment in a Docker container:
guix pack -f docker -S /bin=bin -m profile-manifest.scm
docker run -ti $image_id gcc -h
The result can be quite small depending on how many dependencies you install!
Building a minimal Guix system image
Run the minimal.scm configuration to be dropped directly into a Bash shell where you can use guix any way you like!
./run-config.sh minimal.scm
Building a minimal image to host a service
The following configuration shows an example of a minimal Nginx configuration to host a static website:
./run-config.sh web-server.scm
Killing Running Containers
Only do this if you know you aren't running anything else with Docker!
docker ps -q | xargs docker kill
License
These examples are licensed under the Unlicense, effectively Public Domain.