-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (15 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
protos:
protoc --go_out=. --go-grpc_out=. proto/filebank.proto proto/signed.proto proto/storage.proto
gencerts:
rm ./certs/*/*.pem || rm ./certs/*/*.srl || true
openssl req -x509 -newkey rsa:4096 -days 365 -nodes -keyout ./certs/ca/filebank-ca-key.pem -out ./certs/ca/filebank-ca-cert.pem -subj "/C=FR/ST=Ile de France/L=Paris/O=MerkleFileBank/OU=MerkleFileBank/CN=*.filebank.fr/[email protected]"
openssl req -newkey rsa:4096 -nodes -keyout ./certs/server/filebank-server-key.pem -out ./certs/server/filebank-server-req.pem -subj "/C=FR/ST=Ile de France/L=Paris/O=MerkleFileBank/OU=Server/CN=*.filebank.fr/[email protected]/"
openssl x509 -req -in ./certs/server/filebank-server-req.pem -days 60 -CA ./certs/ca/filebank-ca-cert.pem -CAkey ./certs/ca/filebank-ca-key.pem -CAcreateserial -out ./certs/server/filebank-server-cert.pem -extfile certs/ext.cnf
build:
docker build -t oteffahi/filebankd:0.1.0 .
start:
docker-compose up
stop:
docker-compose stop
down:
docker-compose down -v