This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
66 lines (51 loc) · 1.52 KB
/
Justfile
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# just is a handy way to save and run project-specific commands.
#
# https://github.com/casey/just
# list all tasks
default:
just --list
# Regenerate proto bindings
protogen:
protoc -I . --go_out=:$GOPATH/src api/protobuf/*.proto
# Format the code
fmt:
treefmt
alias f := fmt
# Start IDEA in this folder
idea:
nohup idea-ultimate . > /dev/null 2>&1 &
# Start VsCode in this folder
code:
code .
# Builds a concrete binary using go
go-build PROGRAM:
go build -o ./result/go/{{PROGRAM}} ./cmd/{{PROGRAM}}
# Builds all binaries using go
go-build-all: (go-build "proxy") (go-build "sidecar")
# Builds a concrete program using nix
nix-build PROGRAM:
nix build .#{{PROGRAM}}
# Builds all nix output targets
nix-build-all: (nix-build-docker-images) (nix-build-binaries)
# Builds only the binaries using nix
nix-build-binaries:
nix build -o ./result/nix/tethys-proxy .#tethys-proxy
nix build -o ./result/nix/tethys-sidecar .#tethys-sidecar
# Builds the docker images and loads them into docker
nix-build-docker-images:
nix build -o ./result/docker/tethys-proxy .#tethys-proxy-docker && docker load < result/docker/tethys-proxy
nix build -o ./result/docker/tethys-sidecar .#tethys-sidecar-docker && docker load < result/docker/tethys-sidecar
# Checks the source with nix
nix-check:
nix flake check
# Cleans all outputs
clean:
rm -rf ./result*
alias c := clean
# Alias docker-compose up
up:
mkdir -p $PRYSM_DATA $ERIGON_DATA
docker-compose up -d
# Alias for docker-compose down
down:
docker-compose down --remove-orphans -v