initial commit
This commit is contained in:
commit
344c7eb38a
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
7
README.md
Normal 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
10
hooks/build
Normal 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 .
|
Loading…
Reference in New Issue
Block a user