From 18a779a17f64a33cfa58b619b093f90f2afa3e9e Mon Sep 17 00:00:00 2001 From: Caleb Horst Date: Wed, 8 Feb 2023 11:08:11 -0800 Subject: [PATCH] Update Dockerfile base image to Debian11 (#156) * Update Dockerfile base image to Debian11 * Version bump --- Dockerfile | 2 +- README.md | 14 +++++++------- chart/tugger/Chart.yaml | 4 ++-- deployment/tugger-deployment.yaml | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6f9325d..1abcad0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ COPY ./ /src/jainishshah17/tugger/ RUN cd cmd/tugger && go install # Runnable image -FROM gcr.io/distroless/base-debian10 +FROM gcr.io/distroless/base-debian11 # Copy microservice executable from builder image COPY --from=builder /go/bin/tugger / diff --git a/README.md b/README.md index 5e4e3bf..0eafa05 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ In addition, the `MutatingAdmissionWebhook` and `ValidatingAdmissionWebhook` adm ```bash # Build docker image -docker build -t jainishshah17/tugger:0.1.7 . +docker build -t jainishshah17/tugger:0.1.8 . # Push it to Docker Registry -docker push jainishshah17/tugger:0.1.7 +docker push jainishshah17/tugger:0.1.8 ``` ### Create [Kubernetes Docker registry secret](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) @@ -79,7 +79,7 @@ helm install --name tugger \ ```bash # Run deployment kubectl create -f deployment/tugger-deployment.yaml - + # Create service kubectl create -f deployment/tugger-svc.yaml ``` @@ -90,7 +90,7 @@ helm install --name tugger \ ```bash # re MutatingAdmissionWebhook - kubectl create -f webhook/tugger-mutating-webhook ration.yaml + kubectl create -f webhook/tugger-mutating-webhook ration.yaml ``` Note: Use MutatingAdmissionWebhook only if you want to enforce pulling of docker image from Private Docker Registry e.g [JFrog Artifactory](https://jfrog.com/artifactory/). @@ -98,7 +98,7 @@ helm install --name tugger \ ```bash # Configure ValidatingWebhookConfiguration - kubectl create -f webhook/tugger-validating-webhook ration.yaml + kubectl create -f webhook/tugger-validating-webhook ration.yaml ``` Note: Use ValidatingWebhookConfiguration only if you want to check pulling of docker image from Private Docker Registry e.g [JFrog Artifactory](https://jfrog.com/artifactory/). @@ -107,8 +107,8 @@ helm install --name tugger \ ### Test Tugger ```bash -# Deploy nginx -kubectl apply -f test/nginx.yaml +# Deploy nginx +kubectl apply -f test/nginx.yaml ``` ## Configure diff --git a/chart/tugger/Chart.yaml b/chart/tugger/Chart.yaml index effc295..b85f751 100644 --- a/chart/tugger/Chart.yaml +++ b/chart/tugger/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 -appVersion: "0.1.7" +appVersion: "0.1.8" description: A Helm chart for Tugger name: tugger -version: 0.4.3 +version: 0.4.4 keywords: - DevOps - helm diff --git a/deployment/tugger-deployment.yaml b/deployment/tugger-deployment.yaml index d4de764..8d2ab4d 100644 --- a/deployment/tugger-deployment.yaml +++ b/deployment/tugger-deployment.yaml @@ -16,7 +16,7 @@ spec: spec: containers: - name: tugger - image: jainishshah17/tugger:0.1.7 + image: jainishshah17/tugger:0.1.8 imagePullPolicy: Always env: - name: DOCKER_REGISTRY_URL