lemma-osu / naip-cnn

Modeling forest attributes from aerial imagery using CNNs
0 stars 0 forks source link

Use local Earth Engine credentials in Docker environment #10

Closed aazuspan closed 1 year ago

aazuspan commented 1 year ago

This resolves #9 by mounting the local ~/.config folder that contains Earth Engine credentials to the Docker container. This allows for initializing Earth Engine with stored local credentials instead of having to authenticate every time the container is rebuilt.

There are some possible side effects to this as it removes the isolation between the local and Docker Earth Engine environments, including:

I think those trade-offs are worth the convenience, but we can always revisit this if it turns out to be problematic.

aazuspan commented 1 year ago

@grovduck Can you do a quick test just to rebuild the container and see if you can ee.Initialize without authenticating? Just want to make sure this works outside my setup before merging!

aazuspan commented 1 year ago

Perfect, that all jives with what I expected/hoped to see! Thanks for the thorough test.

From what I understand, this is mounting my Windows .config directory into the container and accessing it as /root/.config?

Exactly. I'm not sure this will end up being the best solution, but I figured we can work with it for a while and see if any problems arise.