blob: c9025ee2ec6e91e237278485c20235775d3ed751 [file] [log] [blame]
Scott Baker31acc652016-06-23 15:47:56 -07001FROM ubuntu:14.04.2
2MAINTAINER Andy Bavier <acb@cs.princeton.edu>
3
4# XXX Workaround for docker bug:
5# https://github.com/docker/docker/issues/6345
6# Kernel 3.15 breaks docker, uss the line below as a workaround
7# until there is a fix
8RUN ln -s -f /bin/true /usr/bin/chfn
9# XXX End workaround
10
11# Install.
12RUN apt-get update && apt-get install -y \
13 python-pip \
14 python-dev
15
16RUN pip install Flask
17RUN mkdir -p /usr/local/share/
18ADD sflow_pub_sub /usr/local/share/sflow_pub_sub
19RUN chmod +x /usr/local/share/sflow_pub_sub/sflow_pub_sub_main.py
20RUN chmod +x /usr/local/share/sflow_pub_sub/start_sflow_pub_sub
21WORKDIR /usr/local/share/sflow_pub_sub/
22CMD /usr/local/share/sflow_pub_sub/start_sflow_pub_sub