-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from truenas/NAS-122154
NAS-122154 / 23.10 / Add rsyncd container
- Loading branch information
Showing
4 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM debian:bookworm-slim | ||
|
||
LABEL maintainer="iXsystems <[email protected]>" | ||
LABEL description="rsynd on debian bookworm" | ||
|
||
RUN apt update && \ | ||
apt install -y rsync procps && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENTRYPOINT ["rsync", "--daemon", "--no-detach", "--config=/etc/rsyncd.conf"] | ||
|
||
HEALTHCHECK --interval=5s --timeout=10s --retries=3 \ | ||
CMD pgrep rsync || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# rsyncd | ||
|
||
⚠️ This container is used for the TrueNAS SCALE app `rsyncd`. ⚠️ | ||
|
||
⚠️ While it should work, it's not intended to be used as a standalone container. ⚠️ | ||
|
||
`GitHub` - truenas/containers - https://github.com/truenas/containers/tree/master/apps/rsyncd | ||
|
||
## Docker run | ||
|
||
```shell | ||
docker run -d \ | ||
--name rsyncd \ | ||
-v /path/of/some/files:/rsync \ | ||
-v /path/of/some/config:/etc/rsyncd.conf \ | ||
-p 873:873 \ | ||
truenas/rsyncd:latest | ||
``` | ||
|
||
Note that port 873 is the default port (Unless changed in the mounted config file) for rsyncd. | ||
If you want to use a different port, you can change the port mapping to something like `-p 1234:873`. | ||
(Change `873` to the port you defined in your config file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.0 |