From 6c817258c7365494bb6f59dbc379c662b3dd4c66 Mon Sep 17 00:00:00 2001 From: Andrew Vogel Date: Thu, 30 May 2019 17:51:37 -0700 Subject: [PATCH] WEAV-3246: Dockerfile for weave device manager Also add __init__.py so when files are installed in dist-packages they can be imported. --- build/contrib/docker/Dockerfile | 20 ++++++++++++++++++++ src/device-manager/python/__init__.py | 0 2 files changed, 20 insertions(+) create mode 100644 build/contrib/docker/Dockerfile create mode 100644 src/device-manager/python/__init__.py diff --git a/build/contrib/docker/Dockerfile b/build/contrib/docker/Dockerfile new file mode 100644 index 0000000000..eec90497cd --- /dev/null +++ b/build/contrib/docker/Dockerfile @@ -0,0 +1,20 @@ +FROM ubuntu:14.04 + +RUN \ + apt-get update && \ + apt-get -y upgrade && \ + apt-get install -y python-pip python-setuptools bridge-utils \ + libglib2.0-dev libdbus-1-dev libudev-dev \ + libical-dev libreadline-dev git-core && \ + pip install --user grpc google-cloud protobuf && \ + sudo cpan -i Text::Template && \ + mkdir weave + +COPY . weave + +RUN cd weave && \ + ./configure --disable-systemd && \ + make all && \ + make install + +CMD ["/bin/bash"] diff --git a/src/device-manager/python/__init__.py b/src/device-manager/python/__init__.py new file mode 100644 index 0000000000..e69de29bb2