Skip to content
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

Source code access in classpath (Docker image) #136

Open
michaelcole-LN opened this issue Aug 25, 2020 · 0 comments
Open

Source code access in classpath (Docker image) #136

michaelcole-LN opened this issue Aug 25, 2020 · 0 comments

Comments

@michaelcole-LN
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant