[FIX] get root cert into the busybox

This commit is contained in:
David Arnold
2018-02-11 15:43:45 -05:00
parent 0eb6656705
commit f081131560
2 changed files with 12 additions and 0 deletions

View File

@@ -1,5 +1,11 @@
FROM alpine as certs
RUN apk update && apk add ca-certificates
FROM busybox:glibc
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
# Get restic executable
ENV RESTIC_VERION=0.8.1
ADD https://github.com/restic/restic/releases/download/v${RESTIC_VERION}/restic_${RESTIC_VERION}_linux_amd64.bz2 /

View File

@@ -3,6 +3,12 @@ set -e
echo "Starting container ..."
RESTIC_CMD=restic
if [ -n "${ROOT_CERT}" ]; then
RESTIC_CMD="${RESTIC_CMD} --cert ${ROOT_CERT}"
fi
if [ -n "${NFS_TARGET}" ]; then
echo "Mounting NFS based on NFS_TARGET: ${NFS_TARGET}"
mount -o nolock -v ${NFS_TARGET} /mnt/restic