Skip to content

Commit

Permalink
Adding podman as command, instead of docker (like openshift/release r…
Browse files Browse the repository at this point in the history
…epo does it) (#2066)

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
  • Loading branch information
matzew committed Nov 2, 2023
1 parent e7e9b18 commit d258a19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hack/allocate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ networking() {
--timeout=300s

local kind_addr
kind_addr="$(docker container inspect func-control-plane | jq '.[0].NetworkSettings.Networks.kind.IPAddress' -r)"
kind_addr="$($CONTAINER_ENGINE container inspect func-control-plane | jq '.[0].NetworkSettings.Networks.kind.IPAddress' -r)"

echo "Setting up address pool."
kubectl apply -f - <<EOF
Expand Down Expand Up @@ -209,10 +209,10 @@ registry() {

echo "${em}⑥ Registry${me}"
if [ "$CONTAINER_ENGINE" == "docker" ]; then
docker run -d --restart=always -p "127.0.0.1:50000:5000" --name "func-registry" registry:2
docker network connect "kind" "func-registry"
$CONTAINER_ENGINE run -d --restart=always -p "127.0.0.1:50000:5000" --name "func-registry" registry:2
$CONTAINER_ENGINE network connect "kind" "func-registry"
elif [ "$CONTAINER_ENGINE" == "podman" ]; then
docker run -d --restart=always -p "127.0.0.1:50000:5000" --net=kind --name "func-registry" registry:2
$CONTAINER_ENGINE run -d --restart=always -p "127.0.0.1:50000:5000" --net=kind --name "func-registry" registry:2
fi

kubectl apply -f - <<EOF
Expand Down

0 comments on commit d258a19

Please sign in to comment.