Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a docker image #349

Open
domenkozar opened this issue Feb 2, 2023 · 5 comments
Open

Provide a docker image #349

domenkozar opened this issue Feb 2, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@domenkozar
Copy link
Member

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 domenkozar added the enhancement New feature or request label Feb 8, 2023
@mweinelt
Copy link

mweinelt commented Apr 7, 2023

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

@peteut
Copy link
Contributor

peteut commented Jan 28, 2024

@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

@j-a-m-l
Copy link

j-a-m-l commented Feb 13, 2024

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

@domenkozar
Copy link
Member Author

@domenkozar
Copy link
Member Author

domenkozar commented Jul 16, 2024

docker pull nixpkgs/devenv

I'm going to add docs to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants