WIP: Try to install all backend reqs

This commit is contained in:
ViViDboarder 2018-05-11 18:53:24 -07:00
parent cad7d68644
commit 515e798147
3 changed files with 32 additions and 9 deletions

View File

@ -3,24 +3,26 @@ MAINTAINER ViViDboarder <vividboarder@gmail.com>
RUN [ "cross-build-start" ]
COPY ./requirements-backend.txt /
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
cron \
duplicity \
lftp \
ncftp \
openssh-client \
python-cloudfiles \
python-gdata \
python-oauthlib \
python-dev \
python-paramiko \
python-pexpect \
python-pip \
python-setuptools \
python-swiftclient \
python-urllib3 \
python-wheel \
rsync \
tahoe-lafs \
&& pip install -U boto b2 \
&& pip install -r /requirements-backend.txt \
&& apt-get remove -y python-pip \
&& apt-get install -y --no-install-recommends \
python-swiftclient \

View File

@ -1,29 +1,35 @@
FROM ubuntu:xenial
MAINTAINER ViViDboarder <vividboarder@gmail.com>
COPY ./requirements-backend.txt /
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common python-software-properties \
&& add-apt-repository ppa:duplicity-team/ppa \
&& apt-get update \
;
RUN echo y \
&& apt-get install -y --no-install-recommends \
build-essential \
cron \
duplicity \
lftp \
librsync-dev \
ncftp \
openssh-client \
python-cloudfiles \
python-gdata \
python-oauthlib \
python-dev \
python-paramiko \
python-pexpect \
python-pycryptopp \
python-pip \
python-setuptools \
python-swiftclient \
python-urllib3 \
python-wheel \
rsync \
tahoe-lafs \
&& pip install -U boto b2 \
;
RUN echo y \
&& pip install -U -r /requirements-backend.txt \
&& apt-get autoremove -y python-pip \
&& apt-get clean \
&& rm -rf /var/apt/lists/*

15
requirements-backend.txt Normal file
View File

@ -0,0 +1,15 @@
# List of known backend dependencies from
# https://bazaar.launchpad.net/~duplicity-team/duplicity/0.8-series/view/head:/requirements.txt
azure
b2
boto>=2.7.0
dropbox==6.9.0
gdata
jottalib
mediafire
paramiko
pydrive
pyrax
python-cloudfiles
python-swiftclient
requests_oauthlib