2017-03-20 18:21:26 +13:00
|
|
|
#!/bin/bash
|
2017-03-20 18:58:48 +13:00
|
|
|
echo 'what is running now?'
|
|
|
|
docker ps
|
2017-03-20 18:21:26 +13:00
|
|
|
|
2017-03-23 18:51:45 +13:00
|
|
|
webContainerID=$(sudo docker ps | grep plugindevwp | grep -o -e '^\S*')
|
|
|
|
sqlContainerID=$(sudo docker ps | grep devmysql | grep -o -e '^\S*')
|
|
|
|
seleniumContainerID=$(sudo docker ps | grep seleniumserver | grep -o -e '^\S*')
|
2017-03-20 18:21:26 +13:00
|
|
|
|
2017-03-23 18:51:45 +13:00
|
|
|
webContainerIP=$( sudo docker inspect --format="{{ .NetworkSettings.IPAddress }}" $webContainerID)
|
|
|
|
sqlContainerIP=$( sudo docker inspect --format="{{ .NetworkSettings.IPAddress }}" $sqlContainerID)
|
|
|
|
seleniumContainerIP=$( sudo docker inspect --format="{{ .NetworkSettings.IPAddress }}" $seleniumContainerID)
|
|
|
|
|
|
|
|
echo $webContainerIP
|
|
|
|
echo $sqlContainerIP
|
|
|
|
echo $seleniumContainerIP
|
2017-03-20 18:21:26 +13:00
|
|
|
|
2017-03-23 23:10:44 +13:00
|
|
|
siteurl=$(cat siteurl)
|
2017-03-23 22:17:30 +13:00
|
|
|
|
2017-03-20 18:52:52 +13:00
|
|
|
gem install bundler
|
|
|
|
bundle install
|
2017-03-23 22:17:30 +13:00
|
|
|
bundle exec ruby run_tests.rb $siteurl
|