Hi there, hope this isn’t too simple, but I just s...
# geodesic
m
Hi there, hope this isn’t too simple, but I just started with Geodesic v0.149.1-debian on macOS Catalina (Intel processor), and when I bring up a geodesic container using the installed command,
geodesic
, my home folder is not mounted to
/localhost
and I don’t see any erros I have gogoled and don’t see a relevant solution yet, do you have any advice what to try? Thank you ver ymuch
e
How did you start geodesic?
m
I used
Copy code
docker run --rm cloudposse/geodesic:0.149.1-debian init | bash
I am using minikube as a docker server with hyperkit as the driver, if that is helpful
e
ok, so after doing that, it should install a wrapper script
then you ran the wrapper script?
m
yes,
geodesic
? it installed to
/usr/local/bin/geodesic
Untitled.txt
there were no errors running the wrapper script, but nothing in my home directory gets mounted to
/localhost
m
Start
geodesic
from your project folder, not your
$HOME
folder. I think because you fired it up from
Users/matan
, it only mapped the workdir. If you start from
/Users/matan/terraform/tutorials
(say where
~/terraform/tutorials
is where you downloaded the CloudPosse tutorials repo, then you would see: •
/Users/matan -> /localhost
•
(workdir) -> ~/terraform/tutorials/ -> /localhost/terraform/tutorials
(I think...)
m
Good thought, trying
Hm that resulted in a new message, it is red but I’m not sure it’s an error
Copy code
# No configured working directory is accessible:                                
#    GEODESIC_WORKDIR is ""
#    GEODESIC_HOST_CWD is "/Users/matan/projects/example"
# Defaulting initial working directory to "/conf"

 ✗ . [none] ~ ⨠ ls -a /localhost
.  ..  .aws  .geodesic

 ✗ . [none] ~ ⨠ ls -a /conf
.  ..  .aws  .emacs  .envrc  .gitconfig  .inputrc  .kube
m
Hey just wanted to let you know there is something wrong with how my docker is mounting volumes in general https://docs.docker.com/engine/reference/commandline/run/#mount-volume--v---read-only Maybe it is because of running Docker on macOS with minkube
m
This is the best workaround I can find for now - https://github.com/kubernetes/minikube/issues/2481#issuecomment-469736193
Copy code
minikube mount /Users/xxxxx:/Users/xxxxx
or wherever you want to be available to run geodesic in. I need it for several workflow, so I’ll run it in the background
Copy code
minikube mount /Users/xxxxx:/Users/xxxxx &
e
@Jeremy G (Cloud Posse) any ideas?
j
@Erik Osterman (Cloud Posse) This is a 4-year old bug in
minikube
, so while I'm sympathetic, with this being the first we have heard of it, and it in no way being specific to or triggered by Geodesic, I am not inclined to do anything about it, especially since there is a minikube-specific workaround.
✅ 1
m
I agree, I just wanted to throw up my solution here for the record
I imagine I’m not the only geodesic user experiencing the need to switch off Docker Desktop due to the license change
Thanks for the support! I look forward to discovering a lot more about Geodesic
Hm interesting aside about this: when I run geodesic now, with the
minikube mount
running in another terminal window, I get an error message about mounting
/localhost
, but I find interacting with the container, everything is mounted as expected. red message first:
Copy code
########################################################################################
# No filesystem is mounted at /localhost which limits Geodesic functionality.
# EXIT THIS SHELL and on your host computer,
# run the following to install the script that runs
# Geodesic with all its features (the recommended way to use Geodesic):
#
#   docker run --rm cloudposse/geodesic:0.149.1-debian init | bash
#
# (On a Linux workstation, you might need to use "sudo bash" instead of just "bash")
#
# After that, you should be able to launch Geodesic just by typing
#
#   geodesic
#
########################################################################################


Disabling user customizations: GEODESIC_CUSTOMIZATION_DISABLED is '/localhost not a volume'
then a green message:
Copy code
# Initial working directory set from host CWD to /localhost/dev/emr_app_auth
So it seems like either detecting the mount is off when doing this using minikube mount s the intermediary, or that the error message is displayed asynchronously to the mount finishing somehow
BUT I’m unblocked for now, just wanted to let you know it is still imperfect. I will also look into other alternatives to Docker Desktop that may help. Using VirtualBox instead of hyperkit as the virtualization layer seems to fix it as well, but that isn’t acceptable to us from a performance standpoint
j
@Matan Shavit Thank you for the additional information. I believe I know the cause of the warning message. If you are willing to give it a try, modifying and rebuilding Geodesic, I believe you can eliminate the
Copy code
No filesystem is mounted at /localhost...
warning by changing this line to
Copy code
if ! df -a | grep -q /localhost; then
We will make and publish that change eventually, but if you want to get a head start (and verify that it works for you), you can, and I would appreciate hearing how it goes.
m
I can give that a try, sounds fun
j