Skip to content

Commit

Permalink
Build Docker images directly with Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Nov 11, 2024
1 parent fbf3c42 commit 6a3c8cf
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 107 deletions.
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

50 changes: 0 additions & 50 deletions docker-compose.yml

This file was deleted.

33 changes: 32 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,30 @@
}
);

cli-docker = pkgs.dockerTools.buildImage {
name = "kitsune-cli";
tag = "latest";
copyToRoot = [ cli ];
config.Cmd = [ "${cli}/bin/kitsune-cli" ];
};

job-runner = craneLib.buildPage (
commonArgs
// {
pname = "kitsune-job-runner";
cargoExtraArgs = commonArgs.cargoExtraArgs + " --bin kitsune-job-runner";
inherit cargoArtifacts;
doCheck = false;
}
);

job-runner-docker = pkgs.dockerTools.buildImage {
name = "kitsune-job-runner";
tag = "latest";
copyToRoot = [ job-runner ];
config.Cmd = [ "${job-runner}/bin/kitsune-job-runner" ];
};

mrf-tool = craneLib.buildPackage (
commonArgs
// {
Expand All @@ -136,12 +160,19 @@
commonArgs
// {
pname = "kitsune";
cargoExtraArgs = commonArgs.cargoExtraArgs + " --bin kitsune --bin kitsune-job-runner";
cargoExtraArgs = commonArgs.cargoExtraArgs + " --bin kitsune";
inherit cargoArtifacts;
doCheck = false;
}
);

main-docker = pkgs.dockerTools.buildImage {
name = "kitsune";
tag = "latest";
copyToRoot = [ main ];
config.Cmd = [ "${main}/bin/kitsune" ];
};

frontend = pnpm2nix.packages.${system}.mkPnpmPackage {
src = "${src}/kitsune-fe";
distDir = "build";
Expand Down
26 changes: 0 additions & 26 deletions kitsune/Dockerfile.dev

This file was deleted.

26 changes: 0 additions & 26 deletions kitsune/Dockerfile.prod

This file was deleted.

0 comments on commit 6a3c8cf

Please sign in to comment.