build: fix build environment for the liveness test (#10551)

Extracted from #10210.

Make the test more reproducible, so that it does not require coordination
between the build container and the run container.

- Use layers to more advantage.
- Include bash in the run container.
- Put writable output onto a volume.
This commit is contained in:
M. J. Fromberger
2021-11-15 11:02:31 -08:00
committed by GitHub
parent 7043dde071
commit 70a3a90f68
6 changed files with 26 additions and 32 deletions
+4 -4
View File
@@ -12,7 +12,7 @@ services:
- ID=0
- LOG=${LOG:-simd.log}
volumes:
- ./build:/simd:Z
- ./localnet:/data:Z
networks:
localnet:
ipv4_address: 192.168.10.2
@@ -28,7 +28,7 @@ services:
- ID=1
- LOG=${LOG:-simd.log}
volumes:
- ./build:/simd:Z
- ./localnet:/data:Z
networks:
localnet:
ipv4_address: 192.168.10.3
@@ -44,7 +44,7 @@ services:
- "1319:1317"
- "9092:9090"
volumes:
- ./build:/simd:Z
- ./localnet:/data:Z
networks:
localnet:
ipv4_address: 192.168.10.4
@@ -60,7 +60,7 @@ services:
- "1320:1317"
- "9093:9090"
volumes:
- ./build:/simd:Z
- ./localnet:/data:Z
networks:
localnet:
ipv4_address: 192.168.10.5