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

Clojurific api for docker volumes #106

Open
SevereOverfl0w opened this issue May 11, 2022 · 1 comment
Open

Clojurific api for docker volumes #106

SevereOverfl0w opened this issue May 11, 2022 · 1 comment

Comments

@SevereOverfl0w
Copy link
Collaborator

A continuation of #99.

It's unclear to me what a comprehensive, simple set of APIs should be for including custom layers in a docker image.

@SevereOverfl0w
Copy link
Collaborator Author

For anyone looking for an easy way to include a directory layer, here is my REPL test:

(docker {:basis (juxt.pack.cli.api/create-basis nil)
           :layers [:libs
                    (-> (com.google.cloud.tools.jib.api.buildplan.FileEntriesLayer/builder)
                        (.addEntryRecursive
                          (java.nio.file.Path/of "/tmp/config" (into-array String []))
                          (com.google.cloud.tools.jib.api.buildplan.AbsoluteUnixPath/get "/config"))
                        (.build))
                    :paths]

           :image-type :tar
           :image-name "pack"
           :tar-file "pack.tar"})

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