Skip to content

Commit

Permalink
Avoid kvm in dockerImage builds (#190)
Browse files Browse the repository at this point in the history
By using copyToRoot instead of a generic runAsRoot

Fixes #189
  • Loading branch information
enobayram authored May 30, 2024
1 parent 8cefb14 commit a75c15c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ let profilingModule = {

fromImage = baseImage;

runAsRoot = ''
ln -s "${default}/bin/chainweb-data" /usr/local/bin/
mkdir -p /chainweb-data
'';
copyToRoot = pkgs.runCommand "copyToRoot" {} ''
mkdir -p $out/usr/local/bin/
ln -s "${default}/bin/chainweb-data" $out/usr/local/bin/
mkdir -p $out/chainweb-data
'';

config = {
WorkingDir = "/chainweb-data";
Expand Down

0 comments on commit a75c15c

Please sign in to comment.