initial commit

This commit is contained in:
surtur 2020-07-08 22:19:04 +02:00
commit 344c7eb38a
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
3 changed files with 32 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM alpine:3.12.0
ARG BUILD_DATE
ARG VCS_REF
LABEL description="Alpine-based image containing simply rsync"
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf/docker-alpine-rsync.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.license=GPL-3.0
RUN apk update && apk -U upgrade --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
RUN apk add --no-cache ca-certificates rsync openssh-client --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing && \
rm -rf /var/cache/apk/*

7
README.md Normal file
View File

@ -0,0 +1,7 @@
# docker-alpine-rf
This repo provides the Dockerfile for creating an alpine-based rsync image.
## What you get
* updated alpine[`:3.12.0`](https://hub.docker.com/_/alpine) image
* rsync

10
hooks/build Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# as per https://github.com/rossf7/label-schema-automated-build
# $IMAGE_NAME var is injected into the build so the tag is correct.
echo "Build hook running"
docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
-t $IMAGE_NAME .