This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22/.clj-kondo /
33/.cpcache /
44/.lsp /
5+ /pod-babashka-docker
6+ /pod-babashka-docker-0.1.0-macos-aarch64.zip
7+ /pod-atomisthq-docker
8+ /pod-atomisthq-docker-0.1.0-macos-aarch64.zip
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ This is a [babashka pod](https://github.com/babashka/pods) that binds some golan
1414#_(pods/load-pod " ./parser" )
1515
1616; ; load-pod will create this namespace with two vars
17- (require '[pod.babashka .docker :as docker])
17+ (require '[pod.atomisthq .docker :as docker])
1818
1919; ; parse image names using github.com/docker/distribution
2020; ; turns golang structs into clojure maps
@@ -31,12 +31,14 @@ This is a [babashka pod](https://github.com/babashka/pods) that binds some golan
3131(docker/parse-dockerfile " FROM \\\n gcr.io/whatever:tag\n CMD [\" run\" ]" )
3232```
3333
34+ Loading ` 'atomisthq/docker ` from the pod registry will download the binary into ` ${user.home}/.babashka/pods/registry ` (the ` $BABASHKA_PODS_DIR ` environment variable will be used if it exists).
35+
3436## Building
3537
3638To build the golang ` parser ` binary locally, run ` go build ` .
3739
3840``` bash
39- go build
41+ go build -o pod-babashka-docker
4042```
4143
4244## Contributing
Original file line number Diff line number Diff line change 1+ {:tasks
2+ {:requires ([babashka.fs :as fs])
3+ :init (do
4+ (def n " pod-atomisthq-docker" )
5+ (def os " macos" )
6+ (def version " 0.1.0" ))
7+ build (shell (format " go build -o %s" n))
8+ aarch64 (do
9+ (shell (format " zip %s-%s-%s-%s.zip %s" n version os " aarch64" n) {}))
10+ x86 (do
11+ (shell (format " zip %s-%s-%s-%s.zip %s" n version os " x86_64" n) {}))
12+ linux-x86
13+ (do
14+ (shell (format " zip %s-%s-%s-%s.zip %s" n version " linux" " amd64" n) {}))}}
15+
Original file line number Diff line number Diff line change 22 (:require [babashka.pods :as pods]))
33
44(pods/load-pod 'atomisthq/docker " 0.1.0" )
5- (require '[pod.babashka .docker :as docker])
5+ (require '[pod.atomisthq .docker :as docker])
66
77; ; parse image names using github.com/docker/distribution
88; ; turns golang structs into clojure maps
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ func ProcessMessage(message *babashka.Message) (any, error) {
6060 Format : "json" ,
6161 Namespaces : []babashka.Namespace {
6262 {
63- Name : "pod.babashka .docker" ,
63+ Name : "pod.atomisthq .docker" ,
6464 Vars : []babashka.Var {
6565 {
6666 Name : "parse-image-name" ,
@@ -74,14 +74,14 @@ func ProcessMessage(message *babashka.Message) (any, error) {
7474 }, nil
7575 case "invoke" :
7676 switch message .Var {
77- case "pod.babashka .docker/parse-image-name" :
77+ case "pod.atomisthq .docker/parse-image-name" :
7878 args := []string {}
7979 if err := json .Unmarshal ([]byte (message .Args ), & args ); err != nil {
8080 return nil , err
8181 }
8282
8383 return parse_uri (args [0 ])
84- case "pod.babashka .docker/parse-dockerfile" :
84+ case "pod.atomisthq .docker/parse-dockerfile" :
8585 args := []string {}
8686 if err := json .Unmarshal ([]byte (message .Args ), & args ); err != nil {
8787 return nil , err
You can’t perform that action at this time.
0 commit comments