mirror of
https://github.com/vacp2p/status-linea-besu.git
synced 2026-01-09 22:07:59 -05:00
* first pass at building arm64 besu docker images * add arch to docker publish * add architecture envars to executors * first pass at manifest docker * setup docker in manifest step * add base image to manifestDocker * add changelog Signed-off-by: garyschulte <garyschulte@gmail.com>
31 lines
962 B
Bash
Executable File
31 lines
962 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export TEST_PATH=../tests
|
|
export GOSS_PATH=$TEST_PATH/goss-linux-${architecture}
|
|
export GOSS_OPTS="$GOSS_OPTS --format junit"
|
|
export GOSS_FILES_STRATEGY=cp
|
|
DOCKER_IMAGE=$1
|
|
DOCKER_FILE="${2:-$PWD/Dockerfile}"
|
|
|
|
i=0
|
|
|
|
## Checks on the Dockerfile
|
|
GOSS_FILES_PATH=$TEST_PATH/00 \
|
|
bash $TEST_PATH/dgoss dockerfile $DOCKER_IMAGE $DOCKER_FILE \
|
|
> ../reports/00.xml || i=`expr $i + 1`
|
|
# fail fast if we dont pass static checks
|
|
if [[ $i != 0 ]]; then exit $i; fi
|
|
|
|
# Test for normal startup with ports opened
|
|
# we test that things listen on the right interface/port, not what interface the advertise
|
|
# hence we dont set p2p-host=0.0.0.0 because this sets what its advertising to devp2p; the important piece is that it defaults to listening on all interfaces
|
|
GOSS_FILES_PATH=$TEST_PATH/01 \
|
|
bash $TEST_PATH/dgoss run $DOCKER_IMAGE \
|
|
--network=dev \
|
|
--rpc-http-enabled \
|
|
--rpc-ws-enabled \
|
|
--graphql-http-enabled \
|
|
> ../reports/01.xml || i=`expr $i + 1`
|
|
|
|
exit $i
|