Skip to content

Source code access in classpath (Docker image) #136

Open
@michaelcole-LN

Description

@michaelcole-LN

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions