sparse-intern-71089
04/28/2023, 1:55 PMsalmon-account-74572
04/28/2023, 2:27 PMfew-byte-52729
04/28/2023, 5:52 PMeval $(minikube docker-env)
in the terminal I do pulumi up
. To no avail as it would have been too easy.
Next, let's register the image created with minikube.
artifacts = docker.Image(
"artifacts-image",
build=docker.DockerBuildArgs(
context="./artifacts",
dockerfile="artifacts/Dockerfile",
),
image_name="artifacts",
skip_push=True
)
os.system("minikube image load artifacts")
Little minikube image ls
and yup <http://docker.io/library/artifacts:latest|docker.io/library/artifacts:latest>
looks to be present. But the container can't pull it it seems.
Let's update its policy with
artifacts_container = ContainerArgs(
name="artifacts-container",
image=artifacts.image_name,
image_pull_policy="Never",
)
Still not enough. So yeah time to setup a local image repository.few-byte-52729
04/28/2023, 5:55 PMsalmon-account-74572
04/28/2023, 7:49 PMskip_push
if you are just working locally with Docker (like building the image and then running a container from that image). The wrinkle here is Kubernetes. Sorry for the extra work of having to stand up a repository (there’s a quick-and-dirty registry you can run as a container, FWIW), but this is outside our control.few-byte-52729
04/29/2023, 2:43 PM