mirror of
https://github.com/ViViDboarder/docker-duplicity-cron.git
synced 2024-11-21 23:56:32 +00:00
Try to do multi-arch on docker hub
This commit is contained in:
parent
fbd8117b3c
commit
3b0be0a329
@ -1,8 +1,6 @@
|
|||||||
FROM resin/rpi-raspbian:jessie
|
FROM raspbian/jessie
|
||||||
MAINTAINER ViViDboarder <vividboarder@gmail.com>
|
MAINTAINER ViViDboarder <vividboarder@gmail.com>
|
||||||
|
|
||||||
RUN [ "cross-build-start" ]
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
cron \
|
cron \
|
||||||
@ -26,8 +24,6 @@ RUN apt-get update \
|
|||||||
python-swiftclient \
|
python-swiftclient \
|
||||||
&& rm -rf /var/apt/lists/*
|
&& rm -rf /var/apt/lists/*
|
||||||
|
|
||||||
RUN [ "cross-build-end" ]
|
|
||||||
|
|
||||||
VOLUME /root/.cache/duplicity
|
VOLUME /root/.cache/duplicity
|
||||||
VOLUME /backups
|
VOLUME /backups
|
||||||
VOLUME /var/lock/duplicity
|
VOLUME /var/lock/duplicity
|
8
hooks/pre_build
Executable file
8
hooks/pre_build
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BUILD_ARCH=$(echo "${DOCKERFILE_PATH}" | cut -d '.' -f 2)
|
||||||
|
|
||||||
|
[ "${BUILD_ARCH}" == "Dockerfile" ] && \
|
||||||
|
{ echo 'qemu-user-static: Registration not required for current arch'; exit 0; }
|
||||||
|
|
||||||
|
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
Loading…
Reference in New Issue
Block a user