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" ] RUN [ "cross-build-start" ]
COPY ./requirements-backend.txt /
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
build-essential \
cron \ cron \
duplicity \ duplicity \
lftp \ lftp \
ncftp \ ncftp \
openssh-client \ openssh-client \
python-cloudfiles \ python-dev \
python-gdata \
python-oauthlib \
python-paramiko \ python-paramiko \
python-pexpect \ python-pexpect \
python-pip \ python-pip \
python-setuptools \ python-setuptools \
python-swiftclient \
python-urllib3 \ python-urllib3 \
python-wheel \
rsync \ rsync \
tahoe-lafs \ tahoe-lafs \
&& pip install -U boto b2 \ && pip install -r /requirements-backend.txt \
&& apt-get remove -y python-pip \ && apt-get remove -y python-pip \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
python-swiftclient \ python-swiftclient \

View File

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