2
6
Fork
You've already forked guix-minimal-docker
0
Examples of building minimal Docker containers with GNU Guix!
  • Scheme 86.7%
  • Shell 10.5%
  • HTML 2.8%
Find a file
2023年07月08日 06:57:16 +03:00
www Examples from the stream 2023年07月07日 20:10:14 +03:00
LICENSE Add LICENSE 2023年07月07日 20:20:49 +03:00
minimal.scm Examples from the stream 2023年07月07日 20:10:14 +03:00
profile-manifest.scm Examples from the stream 2023年07月07日 20:10:14 +03:00
README.org Add LICENSE 2023年07月07日 20:20:49 +03:00
run-config.sh Fix web-server configuration 2023年07月08日 06:57:16 +03:00
web-server.scm Fix web-server configuration 2023年07月08日 06:57:16 +03:00

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.