chore: improve missing docker engine detection (#6495)

* chore: detect when docker is not installed

* chore: improve e2e tests requirement
This commit is contained in:
Julien
2024-02-28 03:37:59 -08:00
committed by GitHub
parent 86d28c932b
commit 40b8924f23
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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 ;;