-
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 #44 from umccr/enhancement/add-rsync-3.3.0
Adding in a new rsync version (3.3.0)
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM docker.io/alpine:3.20.0 | ||
|
||
LABEL author="Alexis Lucattini" \ | ||
description="Run rsync 3.3.0" \ | ||
maintainer="alexis.lucattini@umccr.org" | ||
|
||
ARG TOOL_NAME="rsync" | ||
ARG TOOL_VERSION="3.3.0" | ||
ARG FUZZY="true" | ||
ARG ALPINE_MAIN_REPOSITORY="http://dl-cdn.alpinelinux.org/alpine/v3.20/main" | ||
|
||
# User args | ||
ARG USER="alpine_user" | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
ARG GROUP="alpine_group" | ||
|
||
RUN apk update --quiet && \ | ||
if [ "${FUZZY-}" = "true" ]; then \ | ||
TOOL_VERSION="$( \ | ||
apk search \ | ||
--no-cache --repository "${ALPINE_MAIN_REPOSITORY}" \ | ||
"${TOOL_NAME}" | \ | ||
grep "^${TOOL_NAME}-${TOOL_VERSION}" | \ | ||
sed "s%^${TOOL_NAME}-%%" \ | ||
)"; \ | ||
fi; \ | ||
apk add \ | ||
--no-cache --repository "${ALPINE_MAIN_REPOSITORY}" \ | ||
"${TOOL_NAME}=${TOOL_VERSION}" && \ | ||
apk add \ | ||
--no-cache --repository "${ALPINE_MAIN_REPOSITORY}" \ | ||
"sshpass" \ | ||
"openssh" | ||
|
||
RUN addgroup \ | ||
--system \ | ||
--gid "${GID}" \ | ||
"${GROUP}" && \ | ||
adduser \ | ||
--system \ | ||
--disabled-password \ | ||
--ingroup "${GROUP}" \ | ||
--uid "${UID}" \ | ||
"${USER}" | ||
|
||
USER "$USER" | ||
|
||
CMD [ "rsync" ] |
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,23 @@ | ||
# Alpine-rsync | ||
|
||
## Version 3.3.0 | ||
|
||
## Package link | ||
[docker-who/alpine-rsync](https://github.com/umccr/docker-who/pkgs/container/alpine-rsync) | ||
|
||
## Platforms | ||
* linux/amd64 | ||
* linux/arm64 | ||
|
||
### Usage | ||
|
||
```bash | ||
docker pull ghcr.io/umccr/alpine-rsync:3.3.0 | ||
``` | ||
|
||
### Description | ||
Useful for a simple tiny alpine container with rsync installed | ||
|
||
Official rsync documentation can be found [here](https://linux.die.net/man/1/rsync) | ||
|
||
This container also installs openssh client and sshpass |