mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-17 01:17:36 +00:00
351436a258
* De-duplicate Dockerfiles by using a bash file to concatenate common parts Resolves #375. Dockerfiles are still committed to the repo to avoid a dependency on bash. * Add a CI job to confirm the committed dockerfiles are the currently generated ones * Create dedicated Dockerfiles per processor network Ensures the compromising of network-specific dependencies doesn't lead to a compromise of the build process for all processors. * Dockerfile corrections * Correct call to build processor Docker image in tests/processor
207 lines
3.9 KiB
YAML
207 lines
3.9 KiB
YAML
version: "3.9"
|
|
name: serai-dev
|
|
|
|
volumes:
|
|
serai:
|
|
serai-alice:
|
|
serai-bob:
|
|
serai-charlie:
|
|
serai-dave:
|
|
serai-eve:
|
|
serai-ferdie:
|
|
|
|
services:
|
|
# Coin services
|
|
|
|
bitcoin:
|
|
profiles:
|
|
- bitcoin
|
|
- coins
|
|
build:
|
|
context: ./coins/bitcoin/
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "./coins/bitcoin/scripts:/scripts"
|
|
entrypoint: /scripts/entry-dev.sh
|
|
# TODO: Use expose, not ports
|
|
ports:
|
|
- "18443:18443"
|
|
|
|
ethereum:
|
|
profiles:
|
|
- ethereum
|
|
- coins
|
|
build:
|
|
context: ./coins/ethereum/
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "./coins/ethereum/scripts:/scripts"
|
|
entrypoint: /scripts/entry-dev.sh
|
|
|
|
monero:
|
|
profiles:
|
|
- monero
|
|
- coins
|
|
build:
|
|
context: ./coins/monero/
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "./coins/monero/scripts:/scripts"
|
|
entrypoint: /scripts/entry-dev.sh
|
|
# TODO: Use expose, not ports
|
|
ports:
|
|
- "18081:18081"
|
|
|
|
# Infrastructure
|
|
|
|
message-queue:
|
|
profiles:
|
|
- message-queue
|
|
build:
|
|
context: ../
|
|
dockerfile: ./orchestration/message-queue/Dockerfile
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "./message-queue/scripts:/scripts"
|
|
entrypoint: /scripts/entry-dev.sh
|
|
expose:
|
|
- "2287"
|
|
|
|
bitcoin-processor:
|
|
profiles:
|
|
- bitcoin-processor
|
|
build:
|
|
context: ../
|
|
dockerfile: ./orchestration/processor/bitcoin/Dockerfile
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "./processor/scripts:/scripts"
|
|
entrypoint: /scripts/entry-dev.sh
|
|
|
|
monero-processor:
|
|
profiles:
|
|
- monero-processor
|
|
build:
|
|
context: ../
|
|
dockerfile: ./orchestration/processor/monero/Dockerfile
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "./processor/scripts:/scripts"
|
|
entrypoint: /scripts/entry-dev.sh
|
|
|
|
coordinator:
|
|
profiles:
|
|
- coordinator
|
|
build:
|
|
context: ../
|
|
dockerfile: ./orchestration/coordinator/Dockerfile
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "./coordinator/scripts:/scripts"
|
|
entrypoint: /scripts/entry-dev.sh
|
|
|
|
# Serai runtime
|
|
|
|
runtime:
|
|
profiles:
|
|
- runtime
|
|
build:
|
|
context: ../
|
|
dockerfile: ./orchestration/runtime/Dockerfile
|
|
entrypoint: |
|
|
sh -c "cd /serai/substrate/runtime && cargo clean && cargo build --release && \
|
|
sha256sum /serai/target/release/wbuild/serai-runtime/serai_runtime.wasm"
|
|
|
|
# Serai nodes
|
|
|
|
_serai:
|
|
&serai_defaults
|
|
restart: unless-stopped
|
|
# image: serai:dev
|
|
profiles:
|
|
- _
|
|
build:
|
|
context: ../
|
|
dockerfile: ./orchestration/serai/Dockerfile
|
|
args:
|
|
TAG: serai
|
|
entrypoint: /scripts/entry-dev.sh
|
|
volumes:
|
|
- "./serai/scripts:/scripts"
|
|
|
|
serai:
|
|
<<: *serai_defaults
|
|
hostname: serai
|
|
profiles:
|
|
- serai
|
|
environment:
|
|
CHAIN: local
|
|
NAME: node
|
|
|
|
serai-alice:
|
|
<<: *serai_defaults
|
|
hostname: serai-alice
|
|
profiles:
|
|
- alice
|
|
- cluster-sm
|
|
- cluster-lg
|
|
environment:
|
|
CHAIN: local
|
|
NAME: alice
|
|
VALIDATOR: true
|
|
|
|
serai-bob:
|
|
<<: *serai_defaults
|
|
hostname: serai-bob
|
|
profiles:
|
|
- bob
|
|
- cluster-sm
|
|
- cluster-lg
|
|
environment:
|
|
CHAIN: local
|
|
NAME: bob
|
|
VALIDATOR: true
|
|
|
|
serai-charlie:
|
|
<<: *serai_defaults
|
|
hostname: serai-charlie
|
|
profiles:
|
|
- charlie
|
|
- cluster-sm
|
|
- cluster-lg
|
|
environment:
|
|
CHAIN: local
|
|
NAME: charlie
|
|
VALIDATOR: true
|
|
|
|
serai-dave:
|
|
<<: *serai_defaults
|
|
hostname: serai-dave
|
|
profiles:
|
|
- dave
|
|
- cluster-sm
|
|
- cluster-lg
|
|
environment:
|
|
CHAIN: local
|
|
NAME: dave
|
|
VALIDATOR: true
|
|
|
|
serai-eve:
|
|
<<: *serai_defaults
|
|
hostname: serai-eve
|
|
profiles:
|
|
- eve
|
|
- cluster-lg
|
|
environment:
|
|
CHAIN: local
|
|
NAME: eve
|
|
|
|
serai-ferdie:
|
|
<<: *serai_defaults
|
|
hostname: serai-ferdie
|
|
profiles:
|
|
- ferdie
|
|
- cluster-lg
|
|
environment:
|
|
CHAIN: local
|
|
NAME: ferdie
|