Skip to content

Commit

Permalink
Added a mongrel2 based Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Brisebois authored and pjkundert committed Dec 17, 2013
1 parent 102dc6b commit 9e5ff14
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -524,5 +524,5 @@
#+END_EXAMPLE

Then, we can build and save the container under a new name:
: docker build -t cpppo/scada
: docker build -t cpppo/scada .
: docker run -p 44818
3 changes: 2 additions & 1 deletion docker/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

IMAGES = cpppo/base \
cpppo/cpppo \
cpppo/scada
cpppo/scada \
cpppo/mongrel2

UPDATE =

Expand Down
19 changes: 19 additions & 0 deletions docker/cpppo/mongrel2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- mode: conf -*-
FROM cpppo/cpppo
MAINTAINER Perry Kundert "[email protected]"
RUN apt-get install -y git
RUN mkdir src
RUN cd src; git clone git://github.com/zeromq/zeromq3-x.git; cd zeromq3-x; git checkout master
RUN cd src; git clone git://github.com/cython/cython.git; cd cython; git checkout 0.18
RUN cd src; git clone git://github.com/zeromq/pyzmq.git; cd pyzmq; git checkout v13.1.0
RUN cd src; git clone git://github.com/zedshaw/mongrel2.git; cd mongrel2; git checkout develop
RUN apt-get install -y libtool autoconf automake python-dev uuid-dev sqlite3 libsqlite3-dev build-essential
RUN cd src/zeromq3-x; ./autogen.sh; ./configure; make V=1; make install; ldconfig
RUN cd src/cython; python setup.py install
RUN cd src/pyzmq; python setup.py configure --zmq=/usr/local; python setup.py install
RUN cd src/mongrel2; make; make install
RUN cd src/mongrel2/examples/python; python setup.py install

#EXPOSE 44818
#ENTRYPOINT [ "python", "-m", "cpppo.server.enip" ]
#CMD [ "SCADA=dint[1000]" ]

0 comments on commit 9e5ff14

Please sign in to comment.