mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-11-26 12:07:01 +08:00
DMCA compliance, installer download at runtime
This commit is contained in:
parent
7c635c0d20
commit
55fe01bb97
16
Dockerfile
16
Dockerfile
@ -162,10 +162,6 @@ WORKDIR /home/arch/OSX-KVM
|
|||||||
# shortname default is catalina, which means :latest is catalina
|
# shortname default is catalina, which means :latest is catalina
|
||||||
ARG SHORTNAME=catalina
|
ARG SHORTNAME=catalina
|
||||||
|
|
||||||
RUN make \
|
|
||||||
&& qemu-img convert BaseSystem.dmg -O qcow2 -p -c BaseSystem.img \
|
|
||||||
&& rm ./BaseSystem.dmg
|
|
||||||
|
|
||||||
# fix invalid signature on old libguestfs
|
# fix invalid signature on old libguestfs
|
||||||
ARG SIGLEVEL=Never
|
ARG SIGLEVEL=Never
|
||||||
|
|
||||||
@ -189,7 +185,17 @@ ARG BRANCH=master
|
|||||||
ARG REPO='https://github.com/sickcodes/Docker-OSX.git'
|
ARG REPO='https://github.com/sickcodes/Docker-OSX.git'
|
||||||
RUN git clone --recurse-submodules --depth 1 --branch "${BRANCH:=master}" "${REPO:=https://github.com/sickcodes/Docker-OSX.git}"
|
RUN git clone --recurse-submodules --depth 1 --branch "${BRANCH:=master}" "${REPO:=https://github.com/sickcodes/Docker-OSX.git}"
|
||||||
|
|
||||||
RUN touch Launch.sh \
|
# DMCA compliant download process
|
||||||
|
# If BaseSystem.img does not exist, download $SHORTNAME
|
||||||
|
|
||||||
|
ARG BASESYSTEM_IMAGE=BaseSystem.img
|
||||||
|
|
||||||
|
RUN ! [[ -e "${BASESYSTEM_IMAGE:-BaseSystem.img}" ]] \
|
||||||
|
&& printf '%s\n' "No BaseSystem.img available, downloading ${SHORTNAME}" \
|
||||||
|
&& make \
|
||||||
|
&& qemu-img convert BaseSystem.dmg -O qcow2 -p -c ${BASESYSTEM_IMAGE:-BaseSystem.img} \
|
||||||
|
&& rm ./BaseSystem.dmg \
|
||||||
|
; touch Launch.sh \
|
||||||
&& chmod +x ./Launch.sh \
|
&& chmod +x ./Launch.sh \
|
||||||
&& tee -a Launch.sh <<< '#!/bin/bash' \
|
&& tee -a Launch.sh <<< '#!/bin/bash' \
|
||||||
&& tee -a Launch.sh <<< 'set -eux' \
|
&& tee -a Launch.sh <<< 'set -eux' \
|
||||||
|
Loading…
Reference in New Issue
Block a user