summaryrefslogtreecommitdiff
path: root/scripts/docker/Dockerfile
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-05-30 13:45:51 -0300
committerdrebs <drebs@leap.se>2016-06-06 21:40:37 -0300
commitf829832457237b7342e510e4112f66819be3ab3d (patch)
treefc682e18c9a1926d1c1198bd54bfeb70d82f1d65 /scripts/docker/Dockerfile
parent3e4870f8bd6186f3d0821f392a0dafc5d5247ad4 (diff)
[test] add files to create docker image
Diffstat (limited to 'scripts/docker/Dockerfile')
-rw-r--r--scripts/docker/Dockerfile32
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/docker/Dockerfile b/scripts/docker/Dockerfile
new file mode 100644
index 00000000..8d462db9
--- /dev/null
+++ b/scripts/docker/Dockerfile
@@ -0,0 +1,32 @@
+# start with a fresh debian image
+FROM debian
+
+# expose soledad server port in case we want to run a server container
+EXPOSE 2424
+
+# install dependencies from debian repos
+COPY files/leap.list /etc/apt/sources.list.d/
+
+RUN apt-get update
+RUN apt-get -y --force-yes install leap-archive-keyring
+
+RUN apt-get update
+RUN apt-get -y install git
+RUN apt-get -y install libpython2.7-dev
+RUN apt-get -y install libffi-dev
+RUN apt-get -y install libssl-dev
+RUN apt-get -y install libzmq3-dev
+RUN apt-get -y install python-pip
+RUN apt-get -y install couchdb
+
+# copy over files to help setup the environment and run soledad
+RUN mkdir -p /usr/local/soledad
+RUN mkdir -p /usr/local/soledad/conf
+
+COPY files/setup-env.sh /usr/local/soledad/
+COPY files/test-env.py /usr/local/soledad/
+COPY files/start-server.sh /usr/local/soledad/
+COPY files/conf/* /usr/local/soledad/conf/
+
+# clone repos and install dependencies from leap wheels using pip
+RUN /usr/local/soledad/setup-env.sh