From 6d2ff105b8c4e35900627d63c098579db428333e Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 18 Dec 2024 13:32:37 +1000 Subject: [PATCH] set default container entrypoint --- containerize/Containerfile | 1 + e2e-tests/manifests/rapidast-nessus-pod.yaml | 6 +----- e2e-tests/manifests/rapidast-oobtkube-pod.yaml | 6 +----- e2e-tests/manifests/rapidast-trivy-pod.yaml | 6 +----- 4 files changed, 4 insertions(+), 15 deletions(-) diff --git a/containerize/Containerfile b/containerize/Containerfile index b4f8bd73..638787fb 100644 --- a/containerize/Containerfile +++ b/containerize/Containerfile @@ -83,3 +83,4 @@ RUN groupadd dast && \ USER rapidast WORKDIR /opt/rapidast +ENTRYPOINT ["./rapidast.py"] diff --git a/e2e-tests/manifests/rapidast-nessus-pod.yaml b/e2e-tests/manifests/rapidast-nessus-pod.yaml index 5c928b1d..ba768ce4 100644 --- a/e2e-tests/manifests/rapidast-nessus-pod.yaml +++ b/e2e-tests/manifests/rapidast-nessus-pod.yaml @@ -4,11 +4,7 @@ metadata: name: rapidast-nessus spec: containers: - - command: - - bash - - -c - - ./rapidast.py - env: + - env: - name: HOME value: /opt/rapidast - name: NESSUS_USER diff --git a/e2e-tests/manifests/rapidast-oobtkube-pod.yaml b/e2e-tests/manifests/rapidast-oobtkube-pod.yaml index bd344915..bfb45008 100644 --- a/e2e-tests/manifests/rapidast-oobtkube-pod.yaml +++ b/e2e-tests/manifests/rapidast-oobtkube-pod.yaml @@ -7,11 +7,7 @@ metadata: app: rapidast-oobtkube spec: containers: - - command: - - bash - - -c - - ./rapidast.py - env: + - env: - name: HOME value: /opt/rapidast image: ${IMAGE} # quay.io/redhatproductsecurity/rapidast:latest diff --git a/e2e-tests/manifests/rapidast-trivy-pod.yaml b/e2e-tests/manifests/rapidast-trivy-pod.yaml index e82f4fdf..91ee225f 100644 --- a/e2e-tests/manifests/rapidast-trivy-pod.yaml +++ b/e2e-tests/manifests/rapidast-trivy-pod.yaml @@ -5,11 +5,7 @@ metadata: name: rapidast-trivy spec: containers: - - command: - - bash - - -c - - ./rapidast.py - env: + - env: - name: HOME value: /opt/rapidast image: ${IMAGE} # quay.io/redhatproductsecurity/rapidast:latest