-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Legg til oppsett for å kjøre Datomic transactoren lokalt
Co-authored-by: Magnar Sveen <magnar.sveen@mattilsynet.no>
- Loading branch information
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
DATOMIC_VERSION=1.0.6735 | ||
|
||
datomic-transactor: | ||
curl https://datomic-pro-downloads.s3.amazonaws.com/$(DATOMIC_VERSION)/datomic-pro-$(DATOMIC_VERSION).zip -O datomic-pro-$(DATOMIC_VERSION).zip | ||
unzip datomic-pro-$(DATOMIC_VERSION).zip -d datomic-transactor | ||
cp datomic-transactor/datomic-pro-$(DATOMIC_VERSION)/config/samples/dev-transactor-template.properties datomic-transactor/datomic-pro-$(DATOMIC_VERSION)/config/transactor.properties | ||
sed -i '' 's|# data-dir=data|data-dir=../../datomic-data|' datomic-transactor/datomic-pro-$(DATOMIC_VERSION)/config/transactor.properties | ||
|
||
start-transactor: datomic-transactor | ||
cd datomic-transactor/datomic-pro-$(DATOMIC_VERSION) && ./bin/transactor config/transactor.properties | ||
|
||
test: | ||
clojure -M:dev -m kaocha.runner | ||
|
||
.PHONY: test | ||
clean: | ||
rm datomic-pro-$(DATOMIC_VERSION).zip | ||
|
||
.PHONY: test start-transactor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters