| 1 |
# vim:ft=Dockerfile |
| 2 |
FROM debian:sid |
| 3 |
|
| 4 |
RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup |
| 5 |
# Paper over occasional network flakiness of some mirrors. |
| 6 |
RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry |
| 7 |
|
| 8 |
# NOTE: I tried exclusively using gce_debian_mirror.storage.googleapis.com |
| 9 |
# instead of httpredir.debian.org, but the results (Fetched 123 MB in 36s (3357 |
| 10 |
# kB/s)) are not any better than httpredir.debian.org (Fetched 123 MB in 34s |
| 11 |
# (3608 kB/s)). Hence, let’s stick with httpredir.debian.org (default) for now. |
| 12 |
|
| 13 |
# Install rsync (for running tests). |
| 14 |
RUN apt-get update && \ |
| 15 |
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ |
| 16 |
rsync ssh git ca-certificates build-essential golang-go bmake zlib1g-dev && \ |
| 17 |
rm -rf /var/lib/apt/lists/* |
| 18 |
|
| 19 |
# Build openrsync (for running tests). |
| 20 |
RUN cd /usr/src && \ |
| 21 |
git clone https://github.com/kristapsdz/openrsync && \ |
| 22 |
cd /usr/src/openrsync && \ |
| 23 |
./configure && bmake -j8 && bmake install |