mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-10 16:18:17 -05:00
chore: improve missing docker engine detection (#6495)
* chore: detect when docker is not installed * chore: improve e2e tests requirement
This commit is contained in:
@@ -32,7 +32,7 @@ To run tests:
|
||||
- :test_tube: Run `yarn check-types` to check TypeScript types.
|
||||
- :test_tube: Run `yarn lint` to run the linter (ESLint).
|
||||
|
||||
Note that to run `test:e2e`, first ensure that the environment is correctly setup by running the `run_e2e_env.sh` script.
|
||||
Note that to run `test:e2e`, first ensure that the environment is correctly setup by running the `run_e2e_env.sh` script. This script requires a running docker engine.
|
||||
|
||||
```sh
|
||||
./scripts/run_e2e_env.sh start
|
||||
|
||||
@@ -16,7 +16,11 @@ function stop_app() {
|
||||
kill -s TERM $(cat test-logs/e2e-test-env/simulation.pid)
|
||||
}
|
||||
|
||||
|
||||
docker version > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Docker is not running. Please start Docker and try again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start) start_app ;;
|
||||
|
||||
Reference in New Issue
Block a user