forked from zhanglei/BridgX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-for-mac.sh
10 lines (10 loc) · 1002 Bytes
/
run-for-mac.sh
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
# deploy mysql
docker run -d --name bridgx_db -e MYSQL_ROOT_PASSWORD=mtQ8chN2 -e MYSQL_DATABASE=bridgx -e MYSQL_USER=gf -e [email protected] -p 3306:3306 -v $(pwd)/init/mysql:/docker-entrypoint-initdb.d yobasystems/alpine-mariadb:10.5.11
# deploy etcd
docker run -d --name bridgx_etcd -e ALLOW_NONE_AUTHENTICATION=yes -e ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379 -p 2379:2379 -p 2380:2380 bitnami/etcd:3
# deploy api
sed "s/127.0.0.1/host.docker.internal/g" $(pwd)/conf/config.yml.prod > $(pwd)/conf/config.yml.mac
docker run -d --name bridgx_api --add-host host.docker.internal:host-gateway -v $(pwd)/conf/config.yml.mac:/home/tiger/api/conf/config.yml.prod -p 9099:9090 galaxyfuture/bridgx-api:v0.1.0 bin/wait-for-api.sh
# deploy sheduler
docker run -d --name bridgx_scheduler --add-host host.docker.internal:host-gateway -v $(pwd)/conf/config.yml.mac:/home/tiger/scheduler/conf/config.yml.prod galaxyfuture/bridgx-scheduler:v0.1.0 bin/wait-for-scheduler.sh