Skip to content

Instantly share code, notes, and snippets.

@crizstian
Last active February 19, 2017 23:55
Show Gist options
  • Save crizstian/5c40004de1a708ad6086ca13eedd90c9 to your computer and use it in GitHub Desktop.
Save crizstian/5c40004de1a708ad6086ca13eedd90c9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
eval `docker-machine env manager1`
array=('./movies-service'
'./cinema-catalog-service'
'./booking-service'
'./payment-service'
'./notification-service'
)
# we go to the root of the project
cd ..
for ((i = 0; i < ${#array[@]}; ++i)); do
# we go into a specific folder
cd ${array[$i]}
# we start our docker services
sh ./start-service.sh
# and we go back to the root again :D
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment