forked from kubernetes/perf-tests
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |