Skip to content

Commit

Permalink
Merge pull request #44 from umccr/enhancement/add-rsync-3.3.0
Browse files Browse the repository at this point in the history
Adding in a new rsync version (3.3.0)
  • Loading branch information
alexiswl authored Jun 20, 2024
2 parents 934e04e + fdf9dbb commit 5cc92f8
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
49 changes: 49 additions & 0 deletions repositories/alpine-rsync/3.3.0/Dockerfile
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" ]
23 changes: 23 additions & 0 deletions repositories/alpine-rsync/3.3.0/Readme.md
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

0 comments on commit 5cc92f8

Please sign in to comment.