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
60 lines
2 KiB
Bash
Executable file
60 lines
2 KiB
Bash
Executable file
# Bitcoin
|
|
rm ./coins/bitcoin/Dockerfile
|
|
cat \
|
|
./Dockerfile.parts/mimalloc/Dockerfile.debian \
|
|
./coins/bitcoin/Dockerfile.bitcoin \
|
|
./Dockerfile.parts/Dockerfile.debian.start \
|
|
./coins/bitcoin/Dockerfile.bitcoin.end >> ./coins/bitcoin/Dockerfile
|
|
|
|
# Monero
|
|
rm ./coins/monero/Dockerfile
|
|
cat \
|
|
./Dockerfile.parts/mimalloc/Dockerfile.alpine \
|
|
./coins/monero/Dockerfile.monero \
|
|
./Dockerfile.parts/Dockerfile.alpine.start \
|
|
./coins/monero/Dockerfile.monero.end >> ./coins/monero/Dockerfile
|
|
|
|
# Message Queue
|
|
rm ./message-queue/Dockerfile
|
|
cat \
|
|
./Dockerfile.parts/mimalloc/Dockerfile.debian \
|
|
./Dockerfile.parts/Dockerfile.serai.build \
|
|
./message-queue/Dockerfile.message-queue \
|
|
./Dockerfile.parts/Dockerfile.debian.start \
|
|
./message-queue/Dockerfile.message-queue.end >> ./message-queue/Dockerfile
|
|
|
|
# Bitcoin Processor
|
|
rm ./processor/bitcoin/Dockerfile
|
|
cat \
|
|
./Dockerfile.parts/mimalloc/Dockerfile.debian \
|
|
./Dockerfile.parts/Dockerfile.serai.build \
|
|
./processor/bitcoin/Dockerfile.processor.bitcoin \
|
|
./Dockerfile.parts/Dockerfile.debian.start \
|
|
./processor/Dockerfile.processor.end >> ./processor/bitcoin/Dockerfile
|
|
|
|
# Monero Processor
|
|
rm ./processor/monero/Dockerfile
|
|
cat \
|
|
./Dockerfile.parts/mimalloc/Dockerfile.debian \
|
|
./Dockerfile.parts/Dockerfile.serai.build \
|
|
./processor/monero/Dockerfile.processor.monero \
|
|
./Dockerfile.parts/Dockerfile.debian.start \
|
|
./processor/Dockerfile.processor.end >> ./processor/monero/Dockerfile
|
|
|
|
# Coordinator
|
|
rm ./coordinator/Dockerfile
|
|
cat \
|
|
./Dockerfile.parts/mimalloc/Dockerfile.debian \
|
|
./Dockerfile.parts/Dockerfile.serai.build \
|
|
./coordinator/Dockerfile.coordinator \
|
|
./Dockerfile.parts/Dockerfile.debian.start \
|
|
./coordinator/Dockerfile.coordinator.end >> ./coordinator/Dockerfile
|
|
|
|
# Node
|
|
rm ./serai/Dockerfile
|
|
cat \
|
|
./Dockerfile.parts/mimalloc/Dockerfile.debian \
|
|
./Dockerfile.parts/Dockerfile.serai.build \
|
|
./serai/Dockerfile.serai \
|
|
./Dockerfile.parts/Dockerfile.debian.start \
|
|
./serai/Dockerfile.serai.end >> ./serai/Dockerfile
|