From c1340abe95912814b654e4f7eba408f7f8e304fa Mon Sep 17 00:00:00 2001 From: Sean Hacker Date: Fri, 21 Jun 2024 08:53:34 -0400 Subject: [PATCH 1/2] Fix entrypoint. Copy binary into container --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 52ff0d0..c056c89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,8 +22,8 @@ RUN \ mkdir -p /opt/method/${CLI_NAME}/service/bin && \ mkdir -p /mnt/output -# COPY configs/* /opt/method/${CLI_NAME}/var/conf/ -# COPY ${CLI_NAME} /opt/method/${CLI_NAME}/service/bin/${CLI_NAME} +COPY configs/* /opt/method/${CLI_NAME}/var/conf/ +COPY ${CLI_NAME} /opt/method/${CLI_NAME}/service/bin/${CLI_NAME} RUN \ adduser --disabled-password --gecos '' ${USERNAME} && \ @@ -38,3 +38,4 @@ RUN \ pipx install semgrep==${SEMGREP_VERSION} ENV PATH="/opt/method/${CLI_NAME}/service/bin:/home/${USERNAME}/.local/bin:${PATH}" +ENTRYPOINT [ "codeanalyze" ] From 6a970dcecdf36fe7fee8277d2ed5515fedf67e6f Mon Sep 17 00:00:00 2001 From: Sean Hacker Date: Fri, 21 Jun 2024 09:13:05 -0400 Subject: [PATCH 2/2] Fix paths to trigger build --- .github/workflows/test-build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index f5a92d2..c9818b2 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -3,6 +3,9 @@ on: pull_request: paths: - "**.*" + - "main.go" + - "go.mod" + - "Dockerfile" push: branches: - develop