forked from Runbook/runbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (34 loc) · 1014 Bytes
/
Dockerfile
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
######################################
### Runbook.io - All Dockerfile ###
######################################
# Pull base image
FROM ubuntu:14.04
# OS Dependencies
RUN apt-get update --fix-missing && \
apt-get upgrade -y && \
apt-get install -y python \
python-dev \
python-pip \
python-virtualenv \
wget \
unzip \
build-essential \
libssl-dev \
libffi-dev
RUN rm -rf /var/lib/apt/lists/*
## Install Honcho
RUN pip install honcho
## Copy everything
COPY src /src
# Install python requirements
RUN pip install -r /src/web/requirements.txt
RUN pip install -r /src/monitors/requirements.txt
RUN pip install -r /src/actions/requirements.txt
RUN pip install -r /src/bridge/requirements.txt
RUN find /src/ -name "*.yml" | xargs -n 1 sed -i 's/actionbroker/127.0.0.1/g'
RUN find /src/ -name "*.yml" | xargs -n 1 sed -i 's/monitorbroker/127.0.0.1/g'
COPY Procfile /
CMD cd / && \
python src/bridge/mgmtscripts/create_db.py src/bridge/config/config.yml && \
honcho start
EXPOSE 8000