From eb96dd21bb892a44b59aba45d98dca4717bfc1b5 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Wed, 24 Feb 2021 14:20:09 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=82=EF=B8=8F=20Remove=20ctr.run?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slides/k8s/exercise-helm.md | 18 +++++------------- slides/k8s/shippingimages.md | 18 +++++------------- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/slides/k8s/exercise-helm.md b/slides/k8s/exercise-helm.md index b41e429f..c4f790e1 100644 --- a/slides/k8s/exercise-helm.md +++ b/slides/k8s/exercise-helm.md @@ -10,7 +10,7 @@ Level 2: make it so that the number of replicas can be set with `--set replicas= Level 3: change the colors of the lego bricks. -(For level 3, fork the repository and use ctr.run to build images.) +(For level 3, you'll have to build/push your own images.) See next slide if you need hints! @@ -44,20 +44,12 @@ Also add `replicas: 5` to `values.yaml` to provide a default value. ## Changing the color -- Fork the repository +- Create an account on e.g. Docker Hub (e.g. `janedoe`) -- Make sure that your fork has valid Dockerfiles - - (or identify a branch that has valid Dockerfiles) - -- Use the following images: - - ctr.run/yourgithubusername/wordsmith/db:branchname - - (replace db with web and words for the other components) +- Create an image repository (e.g. `janedoe/web`) - Change the images and/or CSS in `web/static` -- Commit, push, trigger a rolling update +- Build and push - (`imagePullPolicy` should be `Always`, which is the default) +- Trigger a rolling update using the image you just pushed diff --git a/slides/k8s/shippingimages.md b/slides/k8s/shippingimages.md index 37abef9d..5c35d016 100644 --- a/slides/k8s/shippingimages.md +++ b/slides/k8s/shippingimages.md @@ -94,28 +94,20 @@ ## Building on the fly -- Some services can build images on the fly from a repository +- Conceptually, it is possible to build images on the fly from a repository - Example: [ctr.run](https://ctr.run/) -.exercise[ + (deprecated in August 2020, after being aquired by Datadog) -- Use ctr.run to automatically build a container image and run it: +- It did allow something like this: ```bash docker run ctr.run/github.com/jpetazzo/container.training/dockercoins/hasher ``` - +- No alternative yet -] - -There might be a long pause before the first layer is pulled, -because the API behind `docker pull` doesn't allow to stream build logs, and there is no feedback during the build. - -It is possible to view the build logs by setting up an account on [ctr.run](https://ctr.run/). + (free startup idea, anyone?) ???