mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 14:53:25 +00:00
Check for docker in linux deploy_stack scripts
This commit updates the linux (both ARM and x86) deploy_stack scripts to check for the availability of the Docker command and print the same error returned by the PS1 script if not found. Signed-off-by: John McCabe <john@johnmccabe.net>
This commit is contained in:
@ -1,4 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if ! [ -x "$(command -v docker)" ]; then
|
||||||
|
echo 'Unable to find docker command, please install Docker (https://www.docker.com/) and retry' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Deploying stack"
|
echo "Deploying stack"
|
||||||
docker stack deploy func --compose-file docker-compose.armhf.yml
|
docker stack deploy func --compose-file docker-compose.armhf.yml
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if ! [ -x "$(command -v docker)" ]; then
|
||||||
|
echo 'Unable to find docker command, please install Docker (https://www.docker.com/) and retry' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Deploying stack"
|
echo "Deploying stack"
|
||||||
docker stack deploy func --compose-file docker-compose.yml
|
docker stack deploy func --compose-file docker-compose.yml
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user