Travis testing
This commit is contained in:
49
tests/bin/docker
Executable file
49
tests/bin/docker
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/usr/bin/env bash
|
||||
case "$1" in
|
||||
stop)
|
||||
echo "testid"
|
||||
;;
|
||||
start)
|
||||
echo "testid"
|
||||
;;
|
||||
kill)
|
||||
echo "testid"
|
||||
;;
|
||||
run)
|
||||
echo "testid"
|
||||
;;
|
||||
rm)
|
||||
echo "testid"
|
||||
;;
|
||||
ps)
|
||||
if [[ $@ = *"no-trunc"* ]]; then
|
||||
echo "1479bbd60ade8a92617d2aeb4935bd3ff3179bd0fd71c22c3102c421f4bc221f"
|
||||
exit 0
|
||||
else
|
||||
echo "CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES"
|
||||
echo "testid redis:3.0.3 \"/entrypoint.sh redi 5 minutes ago Up 5 minutes 6379/tcp dokku.redis.l"
|
||||
fi
|
||||
;;
|
||||
exec)
|
||||
echo "exec called with $@"
|
||||
;;
|
||||
inspect)
|
||||
if [[ $@ = *"IPAddress"* ]]; then
|
||||
echo "172.17.0.34"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# running
|
||||
echo "true"
|
||||
;;
|
||||
images)
|
||||
echo "REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE"
|
||||
echo "redis 3.0.3 9216d5a4eec8 13 days ago 109.3 MB"
|
||||
;;
|
||||
pull)
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user