Skip to content

Commit

Permalink
Update Dockerfile base image to Debian11 (#156)
Browse files Browse the repository at this point in the history
* Update Dockerfile base image to Debian11

* Version bump
  • Loading branch information
Calebjh authored Feb 8, 2023
1 parent 2ec144f commit 18a779a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 /
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down Expand Up @@ -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
```
Expand All @@ -90,15 +90,15 @@ 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/).
If your container image is `nginx` then Tugger will append `REGISTRY_URL` to it. e.g `nginx` will become `jainishshah17/nginx`

```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/).
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions chart/tugger/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion deployment/tugger-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18a779a

Please sign in to comment.