From 9bb8175bc55b17f2ae3927d3feaf8e42618e928e Mon Sep 17 00:00:00 2001 From: Mostafa Abdo Date: Fri, 3 Feb 2023 11:45:26 -0800 Subject: [PATCH] add libc6-compat --- Dockerfile | 2 ++ tests/container_test.py | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 57a549d..61ffc62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,8 +52,10 @@ RUN addgroup --system --gid ${CISA_GID} ${CISA_GROUP} \ ### ENV DEPS \ ca-certificates \ + libc6-compat \ openssl \ wget + RUN apk --no-cache --quiet add ${DEPS} # Install Con-PCA-Tasks binary file diff --git a/tests/container_test.py b/tests/container_test.py index 330d7ff..e40243a 100644 --- a/tests/container_test.py +++ b/tests/container_test.py @@ -40,10 +40,10 @@ def test_wait_for_ready(main_container): def test_wait_for_exits(main_container, version_container): """Wait for containers to exit.""" - assert main_container.wait() == 0, "Container service (main) did not exit cleanly" - assert ( - version_container.wait() == 0 - ), "Container service (version) did not exit cleanly" + main_container.stop() + version_container.stop() + assert main_container.wait() == 143, "Container service (main) exited" + assert version_container.wait() == 143, "Container service (version) exited" def test_output(main_container):