Commit 5385fa75 authored by Christopher Reis's avatar Christopher Reis

Change to docker.io source

parent d86ed35f
......@@ -2,20 +2,10 @@
#Docker file for GMSEC Bolt
#
############################
FROM ubuntu:latest
FROM chrisreis53/gmsec_node:2-bolt
MAINTAINER Christopher Reis "chrisreis53@gmail.com"
EXPOSE 5000
EXPOSE 80
#WORKDIR /code
RUN apt-get update
RUN apt-get install -y wget default-jre default-jdk
RUN mkdir /GMSEC_API
RUN cd /GMSEC_API
RUN wget https://sourceforge.net/projects/gmsec/files/GMSEC%20API%204.2/GMSEC_API-4.2-RH7_x86_64.tar.gz
RUN tar -zxvf GMSEC_API-4.2-RH7_x86_64.tar.gz
CMD ["java","-jar","/GMSEC_API/bin/bolt.jar","port=5000"]
############################
#Docker file for GMSEC Bolt
#Docker file for GMSEC pub
#
############################
FROM ubuntu:latest
......@@ -8,19 +8,29 @@ MAINTAINER Christopher Reis "chrisreis53@gmail.com"
EXPOSE 5000
EXPOSE 80
#WORKDIR /code
WORKDIR /
RUN apt-get update
RUN apt-get install -y wget default-jre default-jdk
RUN apt-get install -y wget default-jre default-jdk python2.7 cmake uuid-dev
#Install GMSEC Libraries
RUN mkdir /GMSEC_API
RUN cd /GMSEC_API
RUN wget https://sourceforge.net/projects/gmsec/files/GMSEC%20API%204.2/GMSEC_API-4.2-RH7_x86_64.tar.gz
RUN tar -zxvf GMSEC_API-4.2-RH7_x86_64.tar.gz
#Install AMQP Required Library (this is dumb, need to contact NASA to update libs)
RUN wget http://archive.apache.org/dist/qpid/proton/0.9.1/qpid-proton-0.9.1.tar.gz
RUN tar -xf qpid-proton-0.9.1.tar.gz
RUN cd qpid-proton-0.9.1-rc1/
RUN mkdir build && cd build
WORKDIR /qpid-proton-0.91-rc1/build/
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DSYSINSTALL_BINDINGS=ON -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2.7; exit 0
RUN make install
ADD .bashrc ~/.bashrc
#CMD ["export","LD_LIBRARY_PATH=/GMSEC_API/bin/"]
#CMD ["source","~/.bashrc"]
ENV LD_LIBRARY_PATH /GMSEC_API/bin
ENV LD_LIBRARY_PATH /GMSEC_API/bin:/usr/lib/x86_64-linux-gnu/
#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"]
#CMD ["/GMSEC_API/bin/gmpub","server=gmbolt:5000","iterations=500","connectiontype=gmsec_bolt","interval_ms=500"]
CMD ["/GMSEC_API/bin/gmpub","server=rabbitmq:5672","iterations=500","connectiontype=gmsec_amqp","interval_ms=500"]
......@@ -8,19 +8,29 @@ MAINTAINER Christopher Reis "chrisreis53@gmail.com"
EXPOSE 5000
EXPOSE 80
#WORKDIR /code
WORKDIR /code
RUN apt-get update
RUN apt-get install -y wget default-jre default-jdk
RUN apt-get install -y wget default-jre default-jdk python2.7 cmake uuid-dev
#Install GMSEC Libraries
RUN mkdir /GMSEC_API
RUN cd /GMSEC_API
RUN wget https://sourceforge.net/projects/gmsec/files/GMSEC%20API%204.2/GMSEC_API-4.2-RH7_x86_64.tar.gz
RUN tar -zxvf GMSEC_API-4.2-RH7_x86_64.tar.gz
#Install AMQP Required Library (this is dumb, need to contact NASA to update libs)
RUN wget http://archive.apache.org/dist/qpid/proton/0.9.1/qpid-proton-0.9.1.tar.gz
RUN tar -xf qpid-proton-0.9.1.tar.gz
RUN cd qpid-proton-0.9.1-rc1/
RUN mkdir build && cd build
WORKDIR /qpid-proton-0.91-rc1/build/
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DSYSINSTALL_BINDINGS=ON -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2.7; exit 0
RUN make install
ADD .bashrc ~/.bashrc
#CMD ["export","LD_LIBRARY_PATH=/GMSEC_API/bin/"]
#CMD ["source","~/.bashrc"]
ENV LD_LIBRARY_PATH /GMSEC_API/bin
ENV LD_LIBRARY_PATH /GMSEC_API/bin:/usr/lib/x86_64-linux-gnu/
#server name must be same name given to gmsec bolt server
CMD ["/GMSEC_API/bin/gmsub","server=gmbolt:5000","connectiontype=gmsec_bolt"]
#CMD ["/GMSEC_API/bin/gmsub","server=gmbolt:5000","connectiontype=gmsec_bolt"]
CMD ["/GMSEC_API/bin/gmsub","server=rabbitmq:5672","connectiontype=gmsec_amqp"]
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