diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 335a3b3c..8b4a036e 100755 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -48,7 +48,7 @@ }, "postStartCommand": { "Start Environment":"${containerWorkspaceFolder}/.devcontainer/scripts/setup.sh", - "Build test-container":"nohup screen docker buildx build --platform linux/amd64 --tag netalertx-test . & disown" + "Build test-container":"echo building netalertx-test container in background. check /tmp/build.log for progress. && setsid docker buildx build -t netalertx-test . > /tmp/build.log 2>&1 &" }, "customizations": { "vscode": { diff --git a/test/docker_tests/test_container_environment.py b/test/docker_tests/test_container_environment.py index b0043957..f1707a60 100644 --- a/test/docker_tests/test_container_environment.py +++ b/test/docker_tests/test_container_environment.py @@ -1,3 +1,11 @@ +''' +This set of tests requires netalertx-test image built. Ensure netalertx-test image is built prior +to starting these tests or they will fail. netalertx-test image is generally rebuilt using the +Build Unit Test Docker Image task. but can be created manually with the following command executed +in the workspace: +docker buildx build -t netalertx-test . +''' + import os import pathlib import shutil