Skip to content

Commit

Permalink
Add containerd util image
Browse files Browse the repository at this point in the history
  • Loading branch information
lyzs90 committed Jan 13, 2021
1 parent cbbba0b commit eb0c38b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions util-images/containerd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM docker:latest

RUN wget https://github.com/containerd/containerd/releases/download/v1.4.3/containerd-1.4.3-linux-amd64.tar.gz
RUN tar xvf containerd-1.4.3-linux-amd64.tar.gz
17 changes: 17 additions & 0 deletions util-images/containerd/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
PROJECT ?= k8s-testimages
IMG = gcr.io/$(PROJECT)/perf-tests-util/containerd
TAG = v0.0.1

all: push

.PHONY: build
build: cmd
docker build --pull -t $(IMG):$(TAG) .
docker tag $(IMG):$(TAG) $(IMG):latest
@echo Built $(IMG):$(TAG) and tagged with latest

.PHONY: push
push: build
docker push $(IMG):$(TAG)
docker push $(IMG):latest
@echo Pushed $(IMG) with :latest and :$(TAG) tags
16 changes: 16 additions & 0 deletions util-images/containerd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# containerd

Utility image used by the CL2 image preloader. Uses containerd instead of docker.

## Testing and Usage

1. Build an image with `PROJECT=<TEST-PROJECT> make build`
1. Apply image preload daemonset to your cluster (hardcode the image to pull)
* `kubectl apply -f ~/go/src/k8s.io/perf-tests/clusterloader2/pkg/imagepreload/manifests/daemonset.yaml`

## Releasing

1. If required, test with steps from `Testing and Usage`
1. Increment the `TAG` in the Makefile
1. Build with `make build`
1. Release with `make push`

0 comments on commit eb0c38b

Please sign in to comment.