mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Build the netalertx-test image on start so tests don't fail
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
},
|
},
|
||||||
"postStartCommand": {
|
"postStartCommand": {
|
||||||
"Start Environment":"${containerWorkspaceFolder}/.devcontainer/scripts/setup.sh",
|
"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": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
|
|||||||
@@ -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 os
|
||||||
import pathlib
|
import pathlib
|
||||||
import shutil
|
import shutil
|
||||||
|
|||||||
Reference in New Issue
Block a user