From 8d987799a037230f3a54df72f8a909a27d677483 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Sun, 4 Sep 2022 23:24:14 +0200 Subject: [PATCH] operator.py is reserved in kopf --- .drone.yml | 2 +- Dockerfile | 4 ++-- operator.py => bitwarden-crd-operator.py | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename operator.py => bitwarden-crd-operator.py (100%) diff --git a/.drone.yml b/.drone.yml index 0fc76fb..7162a6f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,7 +32,7 @@ steps: - name: trivy image: aquasec/trivy:0.31.3 commands: - - trivy lerentis/bitwarden-crd-operator:${DRONE_COMMIT_SHA} + - trivy image lerentis/bitwarden-crd-operator:${DRONE_COMMIT_SHA} environment: TRIVY_USERNAME: from_secret: docker_username diff --git a/Dockerfile b/Dockerfile index c7c3b88..34d4106 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,9 +22,9 @@ RUN set -eux; \ apt-get install -y --no-install-recommends python3 python3-pip; \ pip install -r requirements.txt -COPY --chown=bw-operator:bw-operator operator.py /home/bw-operator/operator.py +COPY --chown=bw-operator:bw-operator bitwarden-crd-operator.py /home/bw-operator/bitwarden-crd-operator.py USER bw-operator -ENTRYPOINT [ "/home/bw-operator/operator.py" ] +ENTRYPOINT [ "/home/bw-operator/bitwarden-crd-operator.py" ] CMD [ "--help" ] \ No newline at end of file diff --git a/operator.py b/bitwarden-crd-operator.py similarity index 100% rename from operator.py rename to bitwarden-crd-operator.py