devenv
devenv copied to clipboard
Provide a docker image
FROM nixos/nix
RUN nix-env -iA cachix -f https://cachix.org/api/v1/install
RUN cachix use devenv
RUN nix-env -if https://github.com/cachix/devenv/tarball/v0.5
Would be helpful to have this to run on GitLab-CI.
@mweinelt
For now I'm using flake.nix within the GitLab runner like this:
stages:
- build
image: nixos/nix:latest
build-cli:
stage: build
script:
- nix develop --experimental-features 'nix-command flakes' --impure --command bash "run-hooks"
- nix develop --experimental-features 'nix-command flakes' --impure --command bash "build"
tags:
- docker
I've used this image:
FROM nixos/nix
# Install Cachix, devenv and remove unnecessary data
RUN nix-env -iA cachix -f https://cachix.org/api/v1/install \
&& cachix use devenv \
&& nix-env -if https://install.devenv.sh/latest \
&& nix-collect-garbage --delete-old \
&& nix-store --optimise
https://github.com/nix-community/docker-nixpkgs/pull/81
docker pull nixpkgs/devenv
I'm going to add docs to close this.
docker pull nixpkgs/devenvI'm going to add docs to close this.
v1.4.0 is still not available. Related to https://github.com/cachix/devenv/issues/1728
We have docker images now :)