docker-nixpkgs
docker-nixpkgs copied to clipboard
image with nix and podman
It'd be cool to have a single image with
-
nix
(likenixpkgs/nix
) -
podman
Such a docker image could be used to build other docker images in GitLab CI/CD using nix (e.g. with jupyterWith
) and then pushing them to the GitLab container image registry with podman
. Doing this with two separate GitLab CI/CD jobs that can run in containers from two separate images (one with nix
, another with either docker
or podman
) is sometimes not feasible, because the resulting image might be too big to pass it as artifact between GitLab CI/CD jobs of a GitLab CI/CD pipeline.
An image dedicated to build and push docker images sounds good! Maybe there are other tools that would fit in there.
Take a look at images/cachix
, it should give you a good idea on how to add other dependencies.
Alternatively you could also add podman to your nix-shell environment.