-
Notifications
You must be signed in to change notification settings - Fork 173
/
build-docker-images.sh
executable file
·33 lines (25 loc) · 1.53 KB
/
build-docker-images.sh
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
#!/bin/bash
echo "Running yarn and building all packages..."
yarn
yarn build:all
echo "Build done."
#For M* macs set the default platform to linux/amd64
# export DOCKER_DEFAULT_PLATFORM=linux/amd64
echo "Docker: building sequencer-server, sequencer-publisher and sequencer-subscriber images..."
docker build --tag sequencer-server:latest --file ./docker/sequencer/server/Dockerfile .
docker build --tag sequencer-publisher:latest --file ./docker/sequencer/publisher/Dockerfile .
docker build --tag sequencer-subscriber:latest --file ./docker/sequencer/subscriber/Dockerfile .
echo "Docker: building router-publisher, router-subscriber and router-executor images..."
docker build --tag router-publisher:latest --file ./docker/router/publisher/Dockerfile .
docker build --tag router-subscriber:latest --file ./docker/router/subscriber/Dockerfile .
docker build --tag router-executor:latest --file ./docker/router/executor/Dockerfile .
echo "Docker: building relayer image..."
docker build --tag relayer:latest --file ./docker/relayer/Dockerfile .
echo "Docker: building lighthouse image..."
docker build --tag lighthouse:latest --file docker/lighthouse/subscriber/Dockerfile .
echo "Docker: building cartographer-transfers and cartographer-routers images..."
docker build --tag cartographer:latest --file ./docker/cartographer/poller/Dockerfile .
echo "Docker: building db image..."
docker build --tag db:latest --file ./docker/db/Dockerfile .
echo "Docker: building anvil chain image..."
docker build --tag anvil:latest --file ./docker/anvil/Dockerfile .