2018-07-19 20:11:21 +00:00
|
|
|
export CLOUDSDK_CORE_PROJECT="test"
|
|
|
|
|
2018-02-15 22:47:18 +00:00
|
|
|
if [ "$(ps aux | grep '[p]ubsub-emulator')" = "" ]; then
|
|
|
|
echo "starting pubsub emulator"
|
|
|
|
yes | gcloud beta emulators pubsub start >/dev/null 2>&1 &
|
|
|
|
fi
|
|
|
|
$(gcloud beta emulators pubsub env-init)
|
2018-07-19 20:11:21 +00:00
|
|
|
|
|
|
|
if [ "$(ps aux | grep '[c]loud-datastore-emulator')" = "" ]; then
|
|
|
|
echo "starting datastore emulator"
|
|
|
|
yes | gcloud beta emulators datastore start >/dev/null 2>&1 &
|
|
|
|
fi
|
|
|
|
$(gcloud beta emulators datastore env-init)
|
2018-07-21 19:56:40 +00:00
|
|
|
|
|
|
|
if [ "$(ps aux | grep '[b]igtable-emulator')" = "" ]; then
|
|
|
|
echo "starting bigtable emulator"
|
|
|
|
yes | gcloud beta emulators bigtable start --host-port 127.0.0.1:8086 >/dev/null 2>&1 &
|
|
|
|
fi
|
|
|
|
$(gcloud beta emulators bigtable env-init)
|
2019-03-10 23:23:37 +00:00
|
|
|
|
|
|
|
if ! (sudo systemctl status mysqld 1>/dev/null); then
|
|
|
|
echo "starting mysqld"
|
|
|
|
sudo systemctl start mysqld
|
|
|
|
fi
|
2019-07-16 04:42:01 +00:00
|
|
|
|
|
|
|
if ! (sudo systemctl status redis 1>/dev/null); then
|
|
|
|
echo "starting redis"
|
|
|
|
sudo systemctl start redis
|
|
|
|
fi
|