forked from rdiff-backup/rdiff-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (36 loc) · 1.14 KB
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# rdiff-backup build environment (for developers)
FROM debian:sid
# General Debian build dependencies
RUN DEBIAN_FRONTEND=noninteractive apt-get update -yqq && \
apt-get install -y --no-install-recommends \
devscripts \
equivs \
curl \
ccache \
git \
git-buildpackage \
pristine-tar \
dh-python \
build-essential
# Build dependencies specific for rdiff-backup
RUN DEBIAN_FRONTEND=noninteractive apt-get update -yqq && \
apt-get install -y --no-install-recommends \
librsync-dev \
python3-all-dev \
python3-pylibacl \
python3-pyxattr
# Build dependencies specific for rdiff-backup development and testing
RUN DEBIAN_FRONTEND=noninteractive apt-get update -yqq && \
apt-get install -y --no-install-recommends \
tox \
rdiff \
python3-setuptools-scm \
# /usr/include/sys/acl.h is required by test builds
libacl1-dev \
# tox_slow uses rsync for comperative benchmarking
rsync
# Tests require that there is a regular user
ENV RDIFF_TEST_UID 1000
ENV RDIFF_TEST_USER testuser
ENV RDIFF_TEST_GROUP testuser
RUN useradd -ms /bin/bash --uid ${RDIFF_TEST_UID} ${RDIFF_TEST_USER}