Hey when running Geodesic on an Ubuntu machine, an...
# geodesic
m
Hey when running Geodesic on an Ubuntu machine, and executing the helper script (e.g.
/usr/bin/local/toolbox
) I have to pass
sudo
because Linux. It seems that Geodesic doesn't mount the host user's home directory in that case and prints the following message:
Copy code
# Mounting /root into container with workdir /home/user/Workspace/project
# Starting new toolbox session from toolbox:latest
# Exposing port 40304
# No configured working directory is accessible:                                                    
#    GEODESIC_WORKDIR is ""
#    GEODESIC_HOST_CWD is "/home/user/Workspace/project"
# Defaulting initial working directory to "/conf"
# Geodesic version 2.3.0 based on Debian GNU/Linux 11 (bullseye) (11.7)
Is there a known work around for that for that issue?
@Jeremy G (Cloud Posse) I know you'll know about this, so pinging you. Get back to me when you get the chance -- thank you 💯
@Mike Crowe see you were working on https://github.com/cloudposse/geodesic/pull/769 Maybe you know a bit about this as well since it looks like you're on Linux?
I think I'm just missing some docs... it seems this has been worked on extensively, but the knowhow is just buried somewhere in scripts / issues.
Found https://github.com/cloudposse/geodesic/blob/4db6e8bf302384955e9d7ed6938eb245385219d2/rootfs/templates/wrapper#L86-L91 Going down the rootless route and that will likely work for us 👍 Will report back if not. Sorry for the noise!
j
Yes, rootless mode is best. See also this issue for not exactly the same problem, but the same solution.
BTW, @Matt Gowie it looks like because you are using
sudo
,
$HOME
gets changed to
/root
. You might try
sudo -E
and see if that solves your problem until you get rootless mode working (which is way better overall).
m
Got rootless working and that worked out the kinks. But I will try that if needed in the future. Thanks Jeremy!
🎉 1
👍 1