large tar files not included. Still in SIM drive:
gitw-client.tar.gz
gitw-exchange.tar.gz
$ cd ~
$ mkdir ~/github
$ cd ~/github
$ git clone https://github.com/jefftune/gitw_river_bidders
$ scp -i ~/.ssh/GITW.pem ~/GITW2016/gitw-client.tar.gz [email protected]:
$ ssh -i ~/.ssh/GITW.pem [email protected]
[centos@ip-10-130-110-195 ~]$ zcat gitw-client.tar.gz | docker load
[centos@ip-10-130-110-195 ~]$ docker run -d -p 9000:80 gitw-client
$ scp -i ~/.ssh/GITW.pem ~/GITW2016/gitw-exchange.tar.gz [email protected]:
$ scp -i ~/.ssh/GITW.pem ~/GITW2016/config.json [email protected]:
$ ssh -i ~/.ssh/GITW.pem [email protected]
[centos@ip-10-130-110-195 ~]$ zcat gitw-exchange.tar.gz | docker load
[centos@ip-10-130-110-195 ~]$ docker run -it -e GITW_CLIENTS="http://10.130.110.195:9000" -v `pwd`/config.json:/var/has/gitw/config.json gitw-exchange
$ scp -i ~/.ssh/GITW.pem -r ~/GITW2016/client [email protected]:
$ ssh -i ~/.ssh/GITW.pem [email protected]
[centos@ip-10-130-110-195 ~]$ cd client
[centos@ip-10-130-110-195 client]$ docker run -d -p 9001:80 -v `pwd`/dev_client.py:/usr/local/src/client/client.py gitw-client
[centos@ip-10-130-110-195 client]$ cd ..
[centos@ip-10-130-110-195 ~]$ docker run -it -e GITW_CLIENTS="http://10.130.110.195:9000 http://10.130.110.195:9001" -v `pwd`/config.json:/var/has/gitw/config.json gitw-exchange
[centos@ip-10-130-110-195 client]$ docker run -d -p 9001:80 -v `pwd`/dev_client.py:/usr/local/src/client/client.py gitw-client
[centos@ip-10-130-110-195 client]$ cd ..
[centos@ip-10-130-110-195 ~]$ docker run -it -e GITW_CLIENTS="http://10.130.110.195:9000 http://10.130.110.195:9001" -v `pwd`/config.json:/var/has/gitw/config.json gitw-exchange