Skip to content

Commit

Permalink
remove text colors
Browse files Browse the repository at this point in the history
  • Loading branch information
devosc committed Oct 23, 2018
1 parent 69dc476 commit e2d56ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions bin/docker-down
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ if [ -f $file ]; then
if [ "$images" != "" ]; then
rmi="--rmi local"
else
echo -e "\x1B[1;31mNo project images\x1B[0m"
echo -e "No project images"
fi
fi

# stop project
docker-compose --file $file down --remove-orphans $rmi;

else
echo -e "\x1B[1;31mProject not found\x1B[0m"
echo -e "Project not found"
fi

# stop all containers

if [ "-a" = "$1" ] || [ "-a" = "$2" ]; then
containers=$(docker ps -aq)
if [ "$containers" != "" ]; then
echo -e "\x1B[1;32mRemoving containers\x1B[0m"
echo -e "Removing containers"
docker stop $containers
docker rm $containers
else
echo -e "\x1B[1;31mNo containers\x1B[0m"
echo -e "No containers"
fi
fi
4 changes: 2 additions & 2 deletions bin/docker-services
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ else
elif [ -d "$service" ]; then
file="$service/docker-compose.yml"
else
echo -e "\x1B[1;31mService: $name not found\x1B[0m"
echo -e "Service: $name not found"
exit 1
fi

Expand All @@ -32,7 +32,7 @@ else
if [ "$images" != "" ]; then
rmi="--rmi local"
else
echo -e "\x1B[1;31mNo images\x1B[0m"
echo -e "No images"
fi
shift
fi
Expand Down
6 changes: 3 additions & 3 deletions bin/docker-up
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ source docker-build-env

# start services
if [ "-a" = "$1" ] || [ "-a" = "$2" ]; then
echo -e "\x1B[1;32mStarting services\x1B[0m"
echo -e "Starting services"
docker-services up
fi

file="$(pwd)/docker-compose.yml"

if [ -f $file ]; then
echo -e "\x1B[1;32mStarting project\x1B[0m"
echo -e "Starting project"

# build images before starting containers
build=""
Expand All @@ -21,5 +21,5 @@ if [ -f $file ]; then

docker-compose --file $file up -d $build
else
echo -e "\x1B[1;31mProject not found\x1B[0m"
echo -e "Project not found"
fi

0 comments on commit e2d56ec

Please sign in to comment.