-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional skipping of using sudo for Docker on Linux #426
Comments
Noted 👍 |
@UniqueTokens This is now available in v4.4.0 - please try and let me know if it works as expected. |
Line 21 in f6ff591
julia> using Genie
# output omitted
julia> Genie.newapp("DockerTest")
# output omitted
julia> using Genie.Deploy
# output omitted
julia> Deploy.Docker.dockerfile()
# output omitted
julia> Deploy.Docker.build()
┌ Error: 2021-12-02 08:33:11 Can not find sudo docker. Please make sure that sudo docker is installed and accessible.
└ @ Genie.Deploy ~/.julia/packages/Genie/MQlbP/src/Deploy.jl:9
ERROR: IOError: could not spawn `'sudo docker' build --no-cache -t genie .`: no such file or directory (ENOENT)
# output omitted Maybe this will fix the bug DOCKER(; sudo::Bool = Sys.islinux()) = sudo ? "sudo docker" : "docker" |
Hmmm.... I don't have a Linux with me, but on macOS (the non sudo version) worked fine... |
Oh, need more coffee - I can just pass the sudo argument to force it on macOS too :) |
Should be fixed in v4.4.2 |
Primary issue seems be fixed in v4.4.2. But now julia> Deploy.Docker.run()
ERROR: UndefVarError: System not defined
Stacktrace:
[1] run()
@ Genie.Deploy.Docker ~/.julia/packages/Genie/U7ZwI/src/Deploy.jl:92
[2] top-level scope
@ REPL[7]:1
Line 91 in 0ab1f8d
BTW, how about automated unit tests before the next version is released? ;-) |
Damn! |
OK - tagged v4.4.3 - hopefully this is the last of the fixes. |
v4.4.3 tested with |
🥳 |
For automated tests, it would be nice if the use of sudo for Docker on Linux could be skipped (because the current user may a member of the docker group). Perhaps as a named parameter for
Genie.Deploy.Docker.build(; sudo=false)
andGenie.Deploy.Docker.run(; sudo=false)
with the default valuetrue
?The text was updated successfully, but these errors were encountered: