fix docker image creation and document it

This commit is contained in:
Travis Shears 2025-06-10 11:04:07 +02:00
parent 2197dd0c1d
commit e0afe65a1b
3 changed files with 11 additions and 3 deletions

View file

@ -16,3 +16,11 @@ App to store my code snippets.
``` ```
$ clojure -M -m snippets.infra.api $ clojure -M -m snippets.infra.api
``` ```
### How to create docker image
At this point I'm using a private AWS ECR repository for the project and deploying it in my homelab.
```shell
$ docker buildx build --platform linux/amd64,linux/arm64 -t 853019563312.dkr.ecr.eu-central-1.amazonaws.com/code-snippets:latest --push .
```

View file

@ -5,13 +5,13 @@ meta {
} }
delete { delete {
url: {{host}}/api/snippet?id=90d00a80-78c4-4bc9-a066-01c988599d05 url: {{host}}/api/snippet?id=d77d3463-c76e-4c53-a1d5-ecaf16c6c54e
body: none body: none
auth: none auth: none
} }
params:query { params:query {
id: 90d00a80-78c4-4bc9-a066-01c988599d05 id: d77d3463-c76e-4c53-a1d5-ecaf16c6c54e
} }
body:json { body:json {

View file

@ -1,5 +1,5 @@
(ns snippets.main (ns snippets.main
(:require [snippets.api :as api]) (:require [snippets.infra.api :as api])
(:gen-class)) (:gen-class))
(defn -main [] (defn -main []