Table of Contents

About

This is a docker build for Resilio Sync (rslsync).

Filesystem Disposition

.
├── Dockerfile
└── rootfs
    ├── etc
    │   └── rslsync.conf.default
    └── usr
        └── local
            └── bin
                └── run_rslsync

Dockerfile

File: https://svn.grimore.org/docker/build/rslsync/Dockerfile -

FROM debian:stable-slim
 
ADD https://download-cdn.resilio.com/stable/linux-x64/resilio-sync_x64.tar.gz /tmp/resilio-sync_x64.tar.gz
 
WORKDIR /tmp
RUN tar -xvf /tmp/resilio-sync_x64.tar.gz -C /usr/local/bin/
 
EXPOSE 8888
ENTRYPOINT ["/usr/local/bin/run_rslsync"]
CMD ["--config", "/sync/rslsync.conf"]
 
ADD rootfs /

Files

Here are the files that are placed under the rootfs filesystem path.

rslsync.conf.default

File: https://svn.grimore.org/docker/build/rslsync/rootfs/etc/rslsync.conf.default -

{
  "webui" :
  {
    "listen" : "0.0.0.0:8888"
  }
}

run_rslsync

File: https://svn.grimore.org/docker/build/rslsync/rootfs/usr/local/bin/run_rslsync -

#!/bin/sh
 
mkdir -p /sync
 
if ! [ -f /sync/rslsync.conf ]; then
    cp /etc/rslsync.conf.default /sync/rslsync.conf
fi
 
exec /usr/local/bin/rslsync --storage /sync --nodaemon $*