Skip to content

Commit

Permalink
gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Nov 26, 2024
1 parent e3d68e8 commit cd1719f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,4 @@ ecies_bindings_wasm/

chain_urls.json
result/**
result
18 changes: 11 additions & 7 deletions nix/mls_validation_service/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{ pkgs, craneLib, filesets }:
{
pkgs,
craneLib,
filesets,
}:
let
mls_validation_service = pkgs.callPackage ./crate.nix { inherit craneLib filesets; };
muslService = pkgs.pkgsCross.musl64.callPackage ./crate.nix {
inherit craneLib filesets; rustTarget = "x86_64-unknown-linux-musl";
inherit craneLib filesets;
rustTarget = "x86_64-unknown-linux-musl";
};

dockerImage = pkgs.dockerTools.buildImage {
name = "mls_validation_service";
dockerImage = pkgs.dockerTools.streamLayeredImage {
name = "xmtp/mls_validation_service";
tag = "latest";
copyToRoot = [ muslService.bin ];
contents = [ muslService.bin ];
config = {
Cmd = [ "${muslService.bin}/bin/xdbg --help" ];
Cmd = [ "${muslService.bin}/bin/mls_validation_service" ];
};
};
in
Expand All @@ -20,4 +25,3 @@ in
inherit muslService;
inherit dockerImage;
}

18 changes: 11 additions & 7 deletions nix/xdbg/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{ pkgs, craneLib, filesets }:
{
pkgs,
craneLib,
filesets,
}:
let
xdbg = pkgs.callPackage ./crate.nix { inherit craneLib filesets; };
muslXDbg = pkgs.pkgsCross.musl64.callPackage ./crate.nix {
inherit craneLib filesets; rustTarget = "x86_64-unknown-linux-musl";
inherit craneLib filesets;
rustTarget = "x86_64-unknown-linux-musl";
};

dockerImage = pkgs.dockerTools.buildImage {
name = "xdbg";
dockerImage = pkgs.dockerTools.streamLayeredImage {
name = "xmtp/xdbg";
tag = "latest";
copyToRoot = [ muslXDbg.bin ];
contents = [ muslXDbg.bin ];
config = {
Cmd = [ "${muslXDbg.bin}/bin/xdbg --help" ];
Cmd = [ "${muslXDbg.bin}/bin/xdbg" ];
};
};
in
Expand All @@ -20,4 +25,3 @@ in
inherit muslXDbg;
inherit dockerImage;
}

0 comments on commit cd1719f

Please sign in to comment.