Skip to content

Commit

Permalink
Add makefile tasks to build and load the image
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramblurr committed Oct 30, 2024
1 parent ea70282 commit 1471dc2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ result
.clj-kondo
data
container
datomic-pro-container-unstable
datomic-pro-container
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DOCKER ?= docker

check:
nix flake check
test: check
Expand All @@ -6,7 +8,13 @@ datomic-pro:
nix build .#datomic-pro -o result --show-trace

datomic-pro-container:
nix build .#datomic-pro-container -o container --show-trace
nix build .#datomic-pro-container -o datomic-pro-container --show-trace

datomic-pro-container-unstable:
nix build .#datomic-pro-container-unstable -o datomic-pro-container-unstable --show-trace

clean:
rm -rf result container
rm -f result container datomic-pro-container-unstable datomic-pro-container

load: datomic-pro-container-unstable
$(DOCKER) load < ./datomic-pro-container-unstable

0 comments on commit 1471dc2

Please sign in to comment.