Build the netalertx-test image on start so tests don't fail

This commit is contained in:
Adam Outler
2025-10-26 18:12:02 +00:00
parent ededd39d5b
commit 5ec35aa50e
2 changed files with 9 additions and 1 deletions

View File

@@ -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": {

View File

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