Skip to content

Commit

Permalink
Don't use the plain Ubuntu image.
Browse files Browse the repository at this point in the history
Doesn't have sudo or the pkgeval user.
  • Loading branch information
maleadt committed Dec 2, 2020
1 parent 884d2c4 commit 577220d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ function run(julia_versions::Vector{VersionNumber}, pkgs::Vector;
for (julia, (install,cache)) in julia_environments
Base.run(```docker run --mount type=bind,source=$storage,target=/storage
--mount type=bind,source=$cache,target=/cache
ubuntu
newpkgeval:ubuntu
sudo chown -R pkgeval:pkgeval /storage /cache```)
end

Expand Down Expand Up @@ -716,7 +716,7 @@ function run(julia_versions::Vector{VersionNumber}, pkgs::Vector;
uid = ccall(:getuid, Cint, ())
gid = ccall(:getgid, Cint, ())
Base.run(```docker run --mount type=bind,source=$cache,target=/cache
ubuntu
newpkgeval:ubuntu
sudo chown -R $uid:$gid /cache```)
rm(cache; recursive=true)
end
Expand Down

0 comments on commit 577220d

Please sign in to comment.