|
1 | 1 | ## Unofficial Multi-architecture Resilio Sync Docker files |
2 | 2 |
|
3 | | -> **WARNING:** \ |
4 | | -> This is still somewhat volatile while I settle on how to |
5 | | -handle these images, the tags in particular are being re-defined |
6 | | -as I make small tweaks. Please keep it mind (everything should work, though).\ |
7 | | -I'll remove this warning once the repository stabilises. |
| 3 | +This is a fork of the official [Resilio Sync for Docker repository](https://github.com/bt-sync/sync-docker) with small changes to be used on all architectures supported by Resilio Sync. |
8 | 4 |
|
9 | | -This is a fork of the official [Resilio Sync for Docker repository](https://github.com/bt-sync/sync-docker) with small changes to be used on the all architectures supported by Resilio Sync. |
| 5 | +### Running with Docker Compose |
10 | 6 |
|
11 | | -This repository has just a few key differences compared to the upstream one: |
| 7 | +This is my recommended way of running. |
12 | 8 |
|
13 | | - 1. A makefile is provided to generate the different `Dockerfile`s and images. |
14 | | - 1. Multiple `Dockerfile`s are provided, one per arch. They are different from the official one in the way the image is built, to ease multi-architecture support, but the end structure is the same, except the License for Resilio Sync is also included in the image. |
15 | | - 1. They're based on a _debian stable slim_ image instead of on an Ubuntu image. |
| 9 | +Edit `docker-compose/docker-compose.yml` to fit your needs, then: |
16 | 10 |
|
17 | | -In practice they should work exactly the same as the official one. |
| 11 | +```shell |
| 12 | +cd docker-compose |
| 13 | +docker compose up -d |
| 14 | +``` |
18 | 15 |
|
19 | | -The `Dockerfile`s: |
| 16 | +### Running with Docker |
20 | 17 |
|
21 | | -* `amd64.Dockerfile`: For AMD64 aka x86_64 aka x64 (64 bit PC) |
22 | | -* `arm64.Dockerfile`: For ARM64 aka ARMv8 aka AArch64 (64 bit ARM) |
23 | | -* `armhf.Dockerfile`: For armhf aka ARMv7 (and up), (32 bit ARM with hardware float support). Superseded by `arm64`. |
24 | | -* `armle.Dockerfile`: For armle aka EABI ARM (ARMv5 and up), (32 bit ARM). Superseded by `armhf` and `arm64`. Docker Hub does not provided official support for this architecture. NOTE: This image isn't a part of the auto-selected architecture images (e.g. `resiliosync-multiarch:latest`), you'll have to use `resiliosync-multiarch:armle-latest` directly. |
25 | | -* `i386.Dockerfile`: For i386 aka x86 aka IA-32 (32 bit PC). Superseded by `amd64`. Docker Hub does not provided official support for this architecture. |
| 18 | +See [upstream usage instructions](#usage) below, simple example: |
| 19 | + |
| 20 | +```shell |
| 21 | +docker run -d --name Sync \ |
| 22 | + -p 127.0.0.1:8888:8888 \ |
| 23 | + -p 55555/tcp \ |
| 24 | + -p 55555/udp \ |
| 25 | + -v ./data:/mnt/sync \ |
| 26 | + -v /etc/localtime:/etc/localtime:ro \ |
| 27 | + --restart always \ |
| 28 | + outlyernet/resiliosync-multiarch |
| 29 | +``` |
26 | 30 |
|
27 | 31 | ### Pulling the image from Docker Hub |
28 | 32 |
|
29 | 33 | For the architectures included in the multiarch support (`amd64`, `armhf`, `arm64` and `i386`): |
30 | 34 |
|
31 | | - # docker pull outlyernet/resiliosync-multiarch |
| 35 | +```shell |
| 36 | +docker pull outlyernet/resiliosync-multiarch |
| 37 | +``` |
32 | 38 |
|
33 | 39 | which is equivalent to |
34 | 40 |
|
35 | | - # docker pull outlyernet/resiliosync-multiarch:latest |
| 41 | +```shell |
| 42 | +docker pull outlyernet/resiliosync-multiarch:latest |
| 43 | +``` |
36 | 44 |
|
37 | 45 | may also use the version tag: |
38 | 46 |
|
39 | | - # docker pull outlyernet/resiliosync-multiarch:2.6.3 |
| 47 | +```shell |
| 48 | +docker pull outlyernet/resiliosync-multiarch:2.7.3 |
| 49 | +``` |
40 | 50 |
|
41 | 51 | As of this writing images for ARMv5 or ARMv6 (`armle`) are excluded from the automatic architecture selection mechanism, since Docker Hub doesn't appear to distinguish them from ARMv7. For those use: |
42 | 52 |
|
43 | | - # docker pull outlyernet/resiliosync-multiarch:latest-armle |
| 53 | +```shell |
| 54 | +docker pull outlyernet/resiliosync-multiarch:latest-armle |
| 55 | +``` |
44 | 56 |
|
45 | 57 | or |
46 | 58 |
|
47 | | - # docker pull outlyernet/resiliosync-multiarch:2.6.3-armle |
| 59 | +```shell |
| 60 | +docker pull outlyernet/resiliosync-multiarch:2.6.3-armle |
| 61 | +``` |
| 62 | + |
| 63 | +### Build instructions |
| 64 | + |
| 65 | +> **WARNING:** \ |
| 66 | +> This is still somewhat volatile while I settle on how to |
| 67 | +handle these images, the tags in particular are being re-defined |
| 68 | +as I make small tweaks. Please keep it mind (everything should work, though).\ |
| 69 | +I'll remove this warning once the repository stabilises. |
| 70 | + |
| 71 | +This repository has just a few key differences compared to the upstream one: |
| 72 | + |
| 73 | + 1. Multiple `Dockerfile`s are provided, one per arch. They are different from the official one in the way the image is built, to ease multi-architecture support, but the end structure is the same, except the License for Resilio Sync is also included in the image. |
| 74 | + 1. A makefile is provided to generate the different `Dockerfile`s and images. |
| 75 | + 1. They're based on a _debian stable slim_ image instead of on an Ubuntu image. |
| 76 | + |
| 77 | +In practice they should work exactly the same as the official one. |
| 78 | + |
| 79 | +The `Dockerfile`s: |
| 80 | + |
| 81 | +* `amd64.Dockerfile`: For AMD64 aka x86_64 aka x64 (64 bit PC) |
| 82 | +* `arm64.Dockerfile`: For ARM64 aka ARMv8 aka AArch64 (64 bit ARM) |
| 83 | +* `armhf.Dockerfile`: For armhf aka ARMv7 (and up), (32 bit ARM with hardware float support). Superseded by `arm64`. |
| 84 | +* `armle.Dockerfile`: For armle aka EABI ARM (ARMv5 and up), (32 bit ARM). Superseded by `armhf` and `arm64`. Docker Hub does not provided official support for this architecture. NOTE: This image isn't a part of the auto-selected architecture images (e.g. `resiliosync-multiarch:latest`), you'll have to use `resiliosync-multiarch:armle-latest` directly. |
| 85 | +* `i386.Dockerfile`: For i386 aka x86 aka IA-32 (32 bit PC). Superseded by `amd64`. Docker Hub does not provided official support for this architecture. |
48 | 86 |
|
49 | 87 | ### Links |
50 | 88 |
|
|
0 commit comments