introduce importDir
avoid repeating myself to create a new image, create a new folder under ./images that contains a default.nix. That's it.
This commit is contained in:
parent
fd0323f40f
commit
6385004fa8
3 changed files with 37 additions and 14 deletions
|
@ -88,6 +88,15 @@ All images are automatically built and pushed to Docker Hub.
|
|||
| [nixpkgs/nix](https://hub.docker.com/r/nixpkgs/nix) |  |  |
|
||||
| [nixpkgs/nix-unstable](https://hub.docker.com/r/nixpkgs/nix-unstable) |  |  |
|
||||
|
||||
## Adding new images
|
||||
|
||||
To add a new image to the project, create a new folder under
|
||||
`./images/<image-name>` with a default.nix that returns the docker image.
|
||||
|
||||
Then run `nix-build release.nix -A <image-name>` to test that it builds, and
|
||||
then use
|
||||
`docker load -i /nix/store/...<image-name>.tar.gz` to load and test the image.
|
||||
|
||||
## Related projects
|
||||
|
||||
The [docker-library](https://github.com/docker-library/official-images#readme)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue