summaryrefslogtreecommitdiff
path: root/scripts/docker/Dockerfile
blob: 2ec310a922969e752172b9623346768f704916e5 (plain)
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
# start with a fresh debian image
FROM debian

RUN apt-get update

RUN apt-get -y install git
# needed to build python twisted module
RUN apt-get -y install libpython2.7-dev
# needed to build python cryptography module
RUN apt-get -y install libssl-dev

# install pip and tox
RUN apt-get -y install python-pip
RUN pip install -U pip
RUN pip install tox

# clone repositories
RUN mkdir -p /builds/leap
RUN git clone -b develop https://0xacab.org/leap/soledad.git /builds/leap/soledad

# use tox to install everything needed to run tests
RUN cd /builds/leap/soledad/testing && tox -v -r --notest

RUN mkdir -p /usr/local/soledad
COPY files/bin/ /usr/local/soledad/