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

build: add dockerImage dev env package to nix flake #3424

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

vindard
Copy link
Contributor

@vindard vindard commented Oct 26, 2023

Description

This adds a package to nix.flake that builds an image with the nativeBuildInputs as the environment.

Build with:

$ nix build .#dockerImage

Load with:

$ docker load < result

Run with:

$ docker run -it galoy-dev-env:latest

Nix Outputs

From running $ nix flake show:

git+file:///home/arvinda/Developer/Projects/GaloyMoney/galoy?ref=refs%2fheads%2fdocker-nix-image&rev=9808c4b59205a08786dba2fe44c9daf42ff2ee41
├───devShells
│   ├───aarch64-darwin
│   │   └───default: development environment 'nix-shell'
│   ├───aarch64-linux
│   │   └───default: development environment 'nix-shell'
│   ├───x86_64-darwin
│   │   └───default: development environment 'nix-shell'
│   └───x86_64-linux
│       └───default: development environment 'nix-shell'
├───formatter
│   ├───aarch64-darwin: package 'alejandra-3.0.0'
│   ├───aarch64-linux: package 'alejandra-3.0.0'
│   ├───x86_64-darwin: package 'alejandra-3.0.0'
│   └───x86_64-linux: package 'alejandra-3.0.0'
└───packages
    ├───aarch64-darwin
    │   ├───api: package 'api'
    │   ├───api-cron: package 'api-cron'
    │   ├───api-exporter: package 'api-exporter'
    │   ├───api-trigger: package 'api-trigger'
    │   ├───api-ws-server: package 'api-ws-server'
    │   ├───consent: package 'consent'
    │   ├───dashboard: package 'dashboard'
    │   └───dockerImage: package 'galoy-dev-env.tar.gz'
    ├───aarch64-linux
    │   ├───api: package 'api'
    │   ├───api-cron: package 'api-cron'
    │   ├───api-exporter: package 'api-exporter'
    │   ├───api-trigger: package 'api-trigger'
    │   ├───api-ws-server: package 'api-ws-server'
    │   ├───consent: package 'consent'
    │   ├───dashboard: package 'dashboard'
    │   └───dockerImage: package 'galoy-dev-env.tar.gz'
    ├───x86_64-darwin
    │   ├───api: package 'api'
    │   ├───api-cron: package 'api-cron'
    │   ├───api-exporter: package 'api-exporter'
    │   ├───api-trigger: package 'api-trigger'
    │   ├───api-ws-server: package 'api-ws-server'
    │   ├───consent: package 'consent'
    │   ├───dashboard: package 'dashboard'
    │   └───dockerImage: package 'galoy-dev-env.tar.gz'
    └───x86_64-linux
        ├───api: package 'api'
        ├───api-cron: package 'api-cron'
        ├───api-exporter: package 'api-exporter'
        ├───api-trigger: package 'api-trigger'
        ├───api-ws-server: package 'api-ws-server'
        ├───consent: package 'consent'
        ├───dashboard: package 'dashboard'
        └───dockerImage: package 'galoy-dev-env.tar.gz'

@bodymindarts bodymindarts merged commit d57a231 into main Oct 26, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants