blob: 035e2ce288e0215a25a0fa44b46a21da89226def [file] [log] [blame]
Matteo Scandoloeb0d11c2017-08-08 13:05:26 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Scott Baker31acc652016-06-23 15:47:56 -070017FROM ubuntu:14.04.2
18MAINTAINER Andy Bavier <acb@cs.princeton.edu>
19
20# XXX Workaround for docker bug:
21# https://github.com/docker/docker/issues/6345
22# Kernel 3.15 breaks docker, uss the line below as a workaround
23# until there is a fix
24RUN ln -s -f /bin/true /usr/bin/chfn
25# XXX End workaround
26
27# Install.
28RUN apt-get update && apt-get install -y \
29 python-pip \
30 python-dev
31
32RUN pip install Flask
33RUN mkdir -p /usr/local/share/
34ADD sflow_pub_sub /usr/local/share/sflow_pub_sub
35RUN chmod +x /usr/local/share/sflow_pub_sub/sflow_pub_sub_main.py
36RUN chmod +x /usr/local/share/sflow_pub_sub/start_sflow_pub_sub
37WORKDIR /usr/local/share/sflow_pub_sub/
38CMD /usr/local/share/sflow_pub_sub/start_sflow_pub_sub