notebook icon indicating copy to clipboard operation
notebook copied to clipboard

Source code access in classpath (Docker image)

Open michaelcole-LN opened this issue 5 years ago • 0 comments

Using latest Docker image. I want to expose my project source code to enable loading into the notebook namespace.

On my local machine I can do: clojure -Sdeps '{:deps {org.pinkgorilla/gorilla-notebook {:mvn/version "0.4.17"} db/driver {:local/root "./resources/RedshiftJDBC42-1.2.1.1001.jar"}}}' -m pinkgorilla.notebook-app.core -P 9113

When this is executed in my project directory, the notebook can find the ./src/projectname .clj files.

In the Docker image, I am not successful after modifying /usr/bin/gorilla-notebook.sh to use /bin/setenv.sh to set a classpath to something like /src/projectname which points to the .clj files.

Testing the classpath in the notebook using clojure.java.classpath shows only the jars in the local maven repo.

The actual path is unimportant to me. If there is a default location where the notebook can fine project source files that would be fine.

Any thoughts are appreciated.

(local env is MacOS 10.15.6)

michaelcole-LN avatar Aug 25 '20 01:08 michaelcole-LN