mirror of https://github.com/dapr/java-sdk.git
update instructions to cover podman (#1274)
Signed-off-by: salaboy <Salaboy@gmail.com> Co-authored-by: artur-ciocanu <artur.ciocanu@gmail.com> Co-authored-by: Cassie Coyle <cassie@diagrid.io>
This commit is contained in:
parent
c909d26811
commit
f0c35968f4
|
@ -13,6 +13,17 @@ with a local container registry, so we can push our container images to it. This
|
|||
./kind-with-registry.sh
|
||||
```
|
||||
|
||||
**Note**: If you are using Podman Desktop, instead of Docker you need to run the following command to enable insecure registries:
|
||||
|
||||
```
|
||||
read -r -d '' registry_conf <<EOF
|
||||
[[registry]]
|
||||
location = "localhost:5001"
|
||||
insecure = true
|
||||
EOF
|
||||
podman machine ssh --username=root sh -c 'cat > /etc/containers/registries.conf.d/local.conf' <<<$registry_conf
|
||||
```
|
||||
|
||||
Once you have the cluster up and running you can install Dapr:
|
||||
|
||||
```bash
|
||||
|
@ -39,10 +50,15 @@ Once we have the container image created, we need to tag and push to the local r
|
|||
Alternatively, you can push the images to a public registry and update the Kubernetes manifests accordingly.
|
||||
|
||||
```bash
|
||||
docker tag producer-app:0.14.0-SNAPSHOT localhost:5001/sb-producer-app
|
||||
docker tag producer-app:0.15.0-SNAPSHOT localhost:5001/sb-producer-app
|
||||
docker push localhost:5001/sb-producer-app
|
||||
```
|
||||
|
||||
**Note**: for Podman you need to run:
|
||||
```
|
||||
podman push localhost:5001/sb-producer-app --tls-verify=false
|
||||
```
|
||||
|
||||
From inside the `spring-boot-examples/consumer-app` directory you can run the following command to create a container:
|
||||
```bash
|
||||
mvn spring-boot:build-image
|
||||
|
@ -52,10 +68,15 @@ Once we have the container image created, we need to tag and push to the local r
|
|||
Alternatively, you can push the images to a public registry and update the Kubernetes manifests accordingly.
|
||||
|
||||
```bash
|
||||
docker tag consumer-app:0.14.0-SNAPSHOT localhost:5001/sb-consumer-app
|
||||
docker tag consumer-app:0.15.0-SNAPSHOT localhost:5001/sb-consumer-app
|
||||
docker push localhost:5001/sb-consumer-app
|
||||
```
|
||||
|
||||
**Note**: for Podman you need to run:
|
||||
```
|
||||
podman push localhost:5001/sb-consumer-app --tls-verify=false
|
||||
```
|
||||
|
||||
Now we are ready to install our application into the cluster.
|
||||
|
||||
## Installing and interacting with the application
|
||||
|
|
|
@ -11,8 +11,10 @@ if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true
|
|||
fi
|
||||
|
||||
# 2. Create kind cluster with containerd registry config dir enabled
|
||||
# TODO: kind will eventually enable this by default and this patch will
|
||||
# be unnecessary.
|
||||
#
|
||||
# NOTE: the containerd config patch is not necessary with images from kind v0.27.0+
|
||||
# It may enable some older images to work similarly.
|
||||
# If you're only supporting newer relases, you can just use `kind create cluster` here.
|
||||
#
|
||||
# See:
|
||||
# https://github.com/kubernetes-sigs/kind/issues/2875
|
||||
|
|
Loading…
Reference in New Issue