Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 29e586f

Browse files
Releases (#1)
Rename babashka to atomisthq
1 parent 17327a8 commit 29e586f

5 files changed

Lines changed: 27 additions & 6 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
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

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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\nCMD [\"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

3638
To 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

bb.edn

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+

dev/user.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

docker/ops.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)