Debug Alpine

This commit is contained in:
Michiel Borkent 2024-05-27 22:12:21 +02:00
parent c60d139dbf
commit 976d0fcb6d
2 changed files with 3 additions and 0 deletions

View file

@ -62,6 +62,7 @@
(let [base-cmd ["docker" "buildx" "build"
"-t" (str image-name ":" image-tag)
"--platform" platform
"--progress" "plain"
"--push"
"-f" docker-file]]
(exec (concat base-cmd label-args ["."]))))
@ -75,6 +76,7 @@
(let [base-cmd ["docker" "buildx" "build"
"-t" (str ghcr-image-name ":" image-tag)
"--platform" platform
"--progress" "plain"
"--push"
"-f" docker-file]]
(exec (concat base-cmd label-args ["."]))))

View file

@ -14,6 +14,7 @@ RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswit
# TODO: Run actual native tests when they are ported
RUN bb -e '(prn (java.io.File/createTempFile "babashka.curl" ".headers"))'
RUN bb -e '(spit (java.io.File/createTempFile "babashka.curl" ".headers") "hello")'
RUN bb -e "(curl/get \"https://clojure.org\")" # cURL http test
RUN bb -e "(require '[org.httpkit.client :as http]) (when-let [error (:error @(http/get \"https://clojure.org\"))] (throw error))" # JVM http test
RUN bb -e "(.length \"Hello, Babashka\")" # Java interop test