From fdf9dbbfa8613c254aaaf4a2d97032dfdda7aa05 Mon Sep 17 00:00:00 2001 From: Alexis Lucattini Date: Thu, 20 Jun 2024 21:29:54 +1000 Subject: [PATCH] Adding in a new rsync version (3.3.0) This version also contains ssh and sshpass --- repositories/alpine-rsync/3.3.0/Dockerfile | 49 ++++++++++++++++++++++ repositories/alpine-rsync/3.3.0/Readme.md | 23 ++++++++++ 2 files changed, 72 insertions(+) create mode 100644 repositories/alpine-rsync/3.3.0/Dockerfile create mode 100644 repositories/alpine-rsync/3.3.0/Readme.md diff --git a/repositories/alpine-rsync/3.3.0/Dockerfile b/repositories/alpine-rsync/3.3.0/Dockerfile new file mode 100644 index 0000000..93f6b5f --- /dev/null +++ b/repositories/alpine-rsync/3.3.0/Dockerfile @@ -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" ] diff --git a/repositories/alpine-rsync/3.3.0/Readme.md b/repositories/alpine-rsync/3.3.0/Readme.md new file mode 100644 index 0000000..9f357ab --- /dev/null +++ b/repositories/alpine-rsync/3.3.0/Readme.md @@ -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