Skip to content

Commit

Permalink
Avoid kvm in dockerImage builds
Browse files Browse the repository at this point in the history
By using copyToRoot instead of a generic runAsRoot
  • Loading branch information
enobayram committed May 30, 2024
1 parent 8cefb14 commit 7dfcb70
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 7dfcb70

Please sign in to comment.