Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from alpine to wolfi #1

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/lab1/3_deploy-image-to-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
description: Digest of the image to be used.
steps:
- name: update-yaml
image: alpine
image: cgr.dev/chainguard/wolfi-base
command: ["sed"]
args:
- "-i"
Expand All @@ -46,7 +46,7 @@ spec:

This task has two steps.

1. The first step runs the `sed` command in an Alpine Linux container and updates the yaml file used for deployment. This step replaces the default image reference `__IMAGE__` by the image that was built by the `kaniko` task `__DIGEST__`. This step requires the yaml file to have two character strings, `__IMAGE__` and `__DIGEST__`, which are substituted with parameter values.
1. The first step runs the `sed` command in an Wolfi container and updates the yaml file used for deployment. This step replaces the default image reference `__IMAGE__` by the image that was built by the `kaniko` task `__DIGEST__`. This step requires the yaml file to have two character strings, `__IMAGE__` and `__DIGEST__`, which are substituted with parameter values.

2. The second step runs the `kubectl` command using a `k8s-kubectl` container image by Lachlan Evenson, to apply the yaml file to the same cluster where the pipeline is running.

Expand Down
4 changes: 2 additions & 2 deletions docs/lab1/allTogether.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ spec:
description: Digest of the image to be used.
steps:
- name: update-yaml
image: alpine
image: cgr.dev/chainguard/wolfi-base
command: ["sed"]
args:
- "-i"
Expand All @@ -463,7 +463,7 @@ spec:

This task has two steps.

1. The first step runs the `sed` command in an Alpine Linux container and updates the yaml file used for deployment. This step replaces the default image reference `__IMAGE__` by the image that was built by the `kaniko` task `__DIGEST__`. This step requires the yaml file to have two character strings, `__IMAGE__` and `__DIGEST__`, which are substituted with parameter values.
1. The first step runs the `sed` command in an Wolfi container and updates the yaml file used for deployment. This step replaces the default image reference `__IMAGE__` by the image that was built by the `kaniko` task `__DIGEST__`. This step requires the yaml file to have two character strings, `__IMAGE__` and `__DIGEST__`, which are substituted with parameter values.

2. The second step runs the `kubectl` command using a `k8s-kubectl` container image by Lachlan Evenson, to apply the yaml file to the same cluster where the pipeline is running.

Expand Down
4 changes: 2 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM golang:1.12 as builder

# Copy local code to the container image.
WORKDIR /go/src/github.com/IBM/tekton-tutorial
COPY picalc.go picalc_test.go .
COPY picalc.go picalc_test.go ./

# Run unit tests
RUN CGO_ENABLED=0 GOOS=linux go test
Expand All @@ -15,7 +15,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -v -o picalc

# Use a Docker multi-stage build to create a lean production image.
# https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds
FROM alpine
FROM cgr.dev/chainguard/wolfi-base

# Copy the binary to the production image from the builder stage.
COPY --from=builder /go/src/github.com/IBM/tekton-tutorial/picalc /picalc
Expand Down
2 changes: 1 addition & 1 deletion tekton/tasks/deploy-using-kubectl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
description: Digest of the image to be used.
steps:
- name: update-yaml
image: alpine
image: cgr.dev/chainguard/wolfi-base
command: ["sed"]
args:
- "-i"
Expand Down