devenv icon indicating copy to clipboard operation
devenv copied to clipboard

Provide a docker image

Open domenkozar opened this issue 2 years ago • 6 comments

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

domenkozar avatar Feb 02 '23 18:02 domenkozar

Would be helpful to have this to run on GitLab-CI.

mweinelt avatar Apr 07 '23 20:04 mweinelt

@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

peteut avatar Jan 28 '24 14:01 peteut

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

j-a-m-l avatar Feb 13 '24 15:02 j-a-m-l

https://github.com/nix-community/docker-nixpkgs/pull/81

domenkozar avatar Jul 15 '24 15:07 domenkozar

docker pull nixpkgs/devenv

I'm going to add docs to close this.

domenkozar avatar Jul 16 '24 17:07 domenkozar

docker pull nixpkgs/devenv

I'm going to add docs to close this.

v1.4.0 is still not available. Related to https://github.com/cachix/devenv/issues/1728

dsalaza4 avatar Feb 19 '25 22:02 dsalaza4

We have docker images now :)

domenkozar avatar Nov 08 '25 16:11 domenkozar