Skip to content

Commit c198c7c

Browse files
committed
Check if docker is installed
1 parent 7bba70b commit c198c7c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apache.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#!/bin/sh
2+
3+
if [ ! `which docker` ]; then
4+
echo "docker not found."
5+
exit 1;
6+
fi
7+
18
docker build --tag bench/apache -f .docker/apache.dockerfile .
29

310
echo "Runing apache in http://127.0.0.1:8080"

0 commit comments

Comments
 (0)