Commit f0283fd3 authored by Christopher Reis's avatar Christopher Reis

Added docker-compose.yml

Run:
sudo docker-compose build
sudo docker-compose up
parent 1e08691a
gmbolt:
restart: always
build: ./gmsec_bolt
ports:
- "5000"
gmsub:
restart: always
build: ./gmsec_sub
links:
- gmbolt:gmbolt
gmpub:
restart: always
build: ./gmsec_pub
links:
- gmbolt:gmbolt
...@@ -21,5 +21,6 @@ ADD .bashrc ~/.bashrc ...@@ -21,5 +21,6 @@ ADD .bashrc ~/.bashrc
#CMD ["export","LD_LIBRARY_PATH=/GMSEC_API/bin/"] #CMD ["export","LD_LIBRARY_PATH=/GMSEC_API/bin/"]
#CMD ["source","~/.bashrc"] #CMD ["source","~/.bashrc"]
ENV LD_LIBRARY_PATH /GMSEC_API/bin ENV LD_LIBRARY_PATH /GMSEC_API/bin
CMD ["/GMSEC_API/bin/gmpub","server=gmsec_bolt:5000","iterations=500","connectiontype=gmsec_bolt","interval_ms=500"]
#server name must be same name given to gmsec bolt server
CMD ["/GMSEC_API/bin/gmpub","server=gmbolt:5000","iterations=500","connectiontype=gmsec_bolt","interval_ms=500"]
...@@ -21,5 +21,6 @@ ADD .bashrc ~/.bashrc ...@@ -21,5 +21,6 @@ ADD .bashrc ~/.bashrc
#CMD ["export","LD_LIBRARY_PATH=/GMSEC_API/bin/"] #CMD ["export","LD_LIBRARY_PATH=/GMSEC_API/bin/"]
#CMD ["source","~/.bashrc"] #CMD ["source","~/.bashrc"]
ENV LD_LIBRARY_PATH /GMSEC_API/bin ENV LD_LIBRARY_PATH /GMSEC_API/bin
CMD ["/GMSEC_API/bin/gmsub","server=gmsec_bolt:5000","connectiontype=gmsec_bolt"]
#server name must be same name given to gmsec bolt server
CMD ["/GMSEC_API/bin/gmsub","server=gmbolt:5000","connectiontype=gmsec_bolt"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment