Adding Dockerfiles for MongoDB & Attract
MongoDB docker is working, Attract docker need some tweaks.
This commit is contained in:
parent
ff7d339f9c
commit
42ad3d3d54
17
docker/attract-db/Dockerfile
Normal file
17
docker/attract-db/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
FROM ubuntu:14.04
|
||||||
|
MAINTAINER Eibriel <eibriel@eibriel.com>
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
mongodb
|
||||||
|
|
||||||
|
#RUN mkdir /data && mkdir /data/db
|
||||||
|
|
||||||
|
RUN mkdir /data
|
||||||
|
|
||||||
|
VOLUME /data/db
|
||||||
|
|
||||||
|
CMD ["mongod", "--smallfiles"]
|
||||||
|
|
||||||
|
EXPOSE 27017
|
||||||
|
|
||||||
|
#CMD ["python", "/attract/attract/manage.py", "runserver", "-DFOREGROUND"]
|
18
docker/attract/Dockerfile
Normal file
18
docker/attract/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
FROM ubuntu:14.04
|
||||||
|
MAINTAINER Eibriel <eibriel@eibriel.com>
|
||||||
|
|
||||||
|
RUN mkdir attract
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
git
|
||||||
|
|
||||||
|
RUN git clone https://github.com/fsiddi/attract.git /attract/
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
python-pip
|
||||||
|
|
||||||
|
RUN pip install -r /attract/requirements.txt
|
||||||
|
|
||||||
|
EXPOSE 5000
|
||||||
|
|
||||||
|
CMD ["python", "/attract/attract/manage.py", "runserver"]
|
Loading…
x
Reference in New Issue
Block a user