-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (39 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
include .account
export
REPO = ghcr.io/pixelaw/core
CORE_VERSION = $(shell cat VERSION)
DOJO_VERSION = $(shell cat DOJO_VERSION)
docker_build:
echo $$private_key && \
docker build -t $(REPO):$(CORE_VERSION) -t $(REPO):latest \
--build-arg DOJO_VERSION=$(DOJO_VERSION) \
--build-arg GENERATE_POPULATED_CORE=false \
--secret id=DOJO_KEYSTORE_PASSWORD \
--network=host \
--pull=false \
--progress=plain .
docker_run:
docker run \
--name pixelaw \
--rm \
-ti \
-p 3000:3000 -p 5050:5050 -p 8080:8080 \
-e WORLD_ADDRESS=0x60916a73fe631fcba3b2a930e21c6f7bb2533ea398c7bfa75c72f71a8709fc2 \
-e SERVER_PORT=3000 \
$(REPO):$(CORE_VERSION)
docker_bash:
docker run \
--name pixelaw \
--rm \
-ti \
-p 3000:3000 -p 5050:5050 -p 8080:8080 \
-e WORLD_ADDRESS=0xfc685b398bc4692ab3a4acd380859e71f97d2c319f188854d3a01948ba276a \
-e SERVER_PORT=3000 \
$(REPO):$(CORE_VERSION) \
/bin/bash
build:
cd contracts;sozo build;
shell:
docker compose exec keiko bash
test:
cd contracts; sozo test