This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-21
Channels
- # announcements (4)
- # beginners (47)
- # cider (7)
- # clj-kondo (9)
- # cljs-dev (16)
- # clojure (8)
- # clojure-dev (33)
- # clojure-europe (39)
- # clojure-germany (2)
- # clojure-my (1)
- # clojure-nl (1)
- # clojure-norway (18)
- # clojure-uk (6)
- # clojuredesign-podcast (8)
- # clojurescript (12)
- # cursive (9)
- # datomic (24)
- # docker (3)
- # fulcro (23)
- # hoplon (7)
- # hyperfiddle (2)
- # java (5)
- # jvm (3)
- # leiningen (9)
- # lsp (6)
- # off-topic (75)
- # pathom (17)
- # polylith (21)
- # reitit (1)
- # rewrite-clj (11)
- # scittle (2)
- # shadow-cljs (57)
- # uncomplicate (6)
- # yamlscript (27)
I'm new to docker and would like to use contajners
to build an image. The https://github.com/lispyclouds/contajners/blob/main/doc/002-general-guidelines.md#building-an-image-with-docker doesn't make sense to me, is it saying that the only way to build an image is to send a tar file including a dockerfile in the ImageBuild
request ?
I remember this as being correct. Contajners is very close to the REST API of docker, and that's the way it works. It has no notion of current directory, as well in order to work fully remote.
Yes like its mentioned here, the lib is a thin layer on the REST api and that’s what it expects: a tar of the directory: https://docs.docker.com/engine/api/v1.45/#tag/Image/operation/ImageBuild The docker cli which works with the pwd has this extra logic of reading the path and making a tar before making the same call as a cli convenience. Like the other language SDKs contajners also doesn’t offer this as the user is expected to do this the way the language/problem sees fit. Hope that helps?