mirror of https://github.com/knative/func.git
				
				
				
			Adding podman as command, instead of docker (like openshift/release repo does it) (#2066)
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
This commit is contained in:
		
							parent
							
								
									e7e9b182b9
								
							
						
					
					
						commit
						d258a19cda
					
				|  | @ -139,7 +139,7 @@ networking() { | ||||||
|     --timeout=300s |     --timeout=300s | ||||||
| 
 | 
 | ||||||
|   local kind_addr |   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." |   echo "Setting up address pool." | ||||||
|   kubectl apply -f - <<EOF |   kubectl apply -f - <<EOF | ||||||
|  | @ -209,10 +209,10 @@ registry() { | ||||||
| 
 | 
 | ||||||
|   echo "${em}⑥ Registry${me}" |   echo "${em}⑥ Registry${me}" | ||||||
|   if [ "$CONTAINER_ENGINE" == "docker" ]; then |   if [ "$CONTAINER_ENGINE" == "docker" ]; then | ||||||
|     docker run -d --restart=always -p "127.0.0.1:50000:5000" --name "func-registry" registry:2 |     $CONTAINER_ENGINE run -d --restart=always -p "127.0.0.1:50000:5000" --name "func-registry" registry:2 | ||||||
|     docker network connect "kind" "func-registry" |     $CONTAINER_ENGINE network connect "kind" "func-registry" | ||||||
|   elif [ "$CONTAINER_ENGINE" == "podman" ]; then |   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 |   fi | ||||||
| 
 | 
 | ||||||
|   kubectl apply -f - <<EOF |   kubectl apply -f - <<EOF | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue