Skip to content

Commit

Permalink
more docker tentatives
Browse files Browse the repository at this point in the history
  • Loading branch information
adelaett committed Feb 18, 2025
1 parent 0740874 commit fcd501c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
23 changes: 20 additions & 3 deletions docker.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
{ dockerTools, coqPackages, coq, dune_3, name, git, ocaml, gcc, busybox}:


dockerTools.buildLayeredImage {
name = name;
tag = "latest";
contents = [ coq coqPackages.autosubst dune_3 git ocaml gcc busybox];
fakeRootCommands = ''
mkdir -p ./tmp
chmod 1777 ./tmp

extraCommands = ''
mkdir -m 1777 tmp
# mkdir -p /lib/coq/user-contrib/
# mkdir -p /lib/coq/8.20/user-contrib/Autosubst
# ln -s /lib/coq/8.20/user-contrib/Autosubst /lib/coq/user-contrib/
'';



config = {
Cmd = [ "/bin/dune" "build" ];
WorkingDir = "/app";
Env = [
"COQLIB=/lib/coq"
"COQCORELIB=/lib/coq-core"
"COQPATH=/lib/coq/user-contrib"
];
};
}
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
};

outputs = { self, nixpkgs }: {
packages.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.callPackage ./docker.nix {name = "ghcr.io/CatalaLang/catala-coq-ci";};
packages.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.callPackage ./docker.nix {name = "ghcr.io/catalalang/catala-coq-ci";};
};
}

0 comments on commit fcd501c

Please sign in to comment.