-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (37 loc) · 1.66 KB
/
Copy pathDockerfile
File metadata and controls
50 lines (37 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM pricingassistant/ubuntu:13.10
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/10gen.list
RUN apt-get update && echo "Updated on 2014-03-15"
RUN apt-get upgrade -y
RUN apt-get install -y gcc make g++ build-essential libc6-dev tcl curl adduser mongodb-10gen python python-pip python-dev strace git software-properties-common libev-dev nginx graphviz
# Then add PPAs (after software-properties-common is installed)
# RUN add-apt-repository -y ppa:pypy/ppa
# RUN apt-get update
# RUN apt-get install -y pypy pypy-dev
RUN curl http://download.redis.io/releases/redis-2.6.16.tar.gz > redis.tar.gz
RUN mkdir /redis && tar -zxf redis.tar.gz -C /redis --strip 1 && rm redis.tar.gz
RUN cd /redis && make && make test && make install && ln -s /usr/local/bin/redis-server /usr/bin/redis-server
# FS is read-only!
# RUN sysctl vm.overcommit_memory=1
RUN mkdir -p /data/db
VOLUME ["/data"]
ADD requirements-heroku.txt requirements-heroku.txt
RUN pip install --use-mirrors -r requirements-heroku.txt
ADD requirements-base.txt requirements-base.txt
RUN pip install --use-mirrors -r requirements-base.txt
ADD requirements-dev.txt requirements-dev.txt
RUN pip install --use-mirrors -r requirements-dev.txt
ADD requirements-dashboard.txt requirements-dashboard.txt
RUN pip install --use-mirrors -r requirements-dashboard.txt
# TODO remove me. https://github.com/kevin1024/pytest-httpbin/issues/9
RUN pip install pytest-httpbin==0.0.3
# Redis
EXPOSE 6379
# MongoDB
EXPOSE 27017
# Dashboard
EXPOSE 5555
# Worker monitoring port
EXPOSE 20020
# docs
EXPOSE 8000