-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 931 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 931 Bytes
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
FROM deis/base:latest
MAINTAINER Gabriel Monroy <gabriel@opdemand.com>
# install rsyslog from rsyslog.com
RUN echo "deb http://ppa.launchpad.net/adiscon/v7-stable/ubuntu precise main" > /etc/apt/sources.list.d/rsyslog.list
RUN echo "deb-src http://ppa.launchpad.net/adiscon/v7-stable/ubuntu precise main" >> /etc/apt/sources.list.d/rsyslog.list
RUN gpg --recv-keys --keyserver keyserver.ubuntu.com AEF0CF8E
RUN gpg --export --armor AEF0CF8E | sudo apt-key add -
RUN apt-get update
RUN apt-get install -yq --force-yes rsyslog
# create /var/log/deis for holding logs (access via bind mount)
RUN mkdir -p /var/log/deis
# install latest etcdctl including no-sync options
RUN wget -q https://s3-us-west-2.amazonaws.com/deis/etcdctl.no-sync -O /usr/local/bin/etcdctl
RUN chmod +x /usr/local/bin/etcdctl
# add the current build context to /app
ADD . /app
# prepare execution environment
WORKDIR /app
CMD ["/app/bin/boot"]
EXPOSE 514