diff --git a/Dockerfile b/Dockerfile index 663b06e..65514c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,10 +26,8 @@ RUN set -eu && \ apt-get update && \ apt-get --no-install-recommends -y install \ xxd \ - curl \ fdisk \ - mtools \ - python3 && \ + mtools && \ apt-get clean && \ echo "$VERSION_ARG" > /run/version && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* @@ -47,7 +45,7 @@ ADD --chmod=644 \ ADD $REPO_KVM_OPENCORE/releases/download/$VERSION_KVM_OPENCORE/OpenCore-$VERSION_KVM_OPENCORE.iso.gz /opencore.iso.gz VOLUME /storage -EXPOSE 8006 5900 +EXPOSE 80 5900 ENV VERSION="13" ENV RAM_SIZE="4G" diff --git a/compose.yml b/compose.yml index 5e0c6ed..739253f 100644 --- a/compose.yml +++ b/compose.yml @@ -10,7 +10,7 @@ services: cap_add: - NET_ADMIN ports: - - 8006:8006 + - 8006:80 - 5900:5900/tcp - 5900:5900/udp volumes: diff --git a/kubernetes.yml b/kubernetes.yml index cb9e8c9..42fd1ce 100644 --- a/kubernetes.yml +++ b/kubernetes.yml @@ -76,7 +76,7 @@ spec: - name: http port: 8006 protocol: TCP - targetPort: 8006 + targetPort: 80 - name: vnc port: 5900 protocol: TCP diff --git a/readme.md b/readme.md index 9a6420b..82c627b 100644 --- a/readme.md +++ b/readme.md @@ -37,7 +37,7 @@ services: cap_add: - NET_ADMIN ports: - - 8006:8006 + - 8006:80 - 5900:5900/tcp - 5900:5900/udp volumes: @@ -49,7 +49,7 @@ services: Via Docker CLI: ```bash -docker run -it --rm --name macos -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v ${PWD:-.}/macos:/storage --stop-timeout 120 dockurr/macos +docker run -it --rm --name macos -p 8006:80 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v ${PWD:-.}/macos:/storage --stop-timeout 120 dockurr/macos ``` Via Kubernetes: diff --git a/src/install.sh b/src/install.sh index affc585..b547dfe 100644 --- a/src/install.sh +++ b/src/install.sh @@ -61,7 +61,7 @@ function downloadImage() { if [ -z "$downloadLink" ] || [ -z "$downloadSession" ]; then local code="99" - msg="Failed to connect to the Apple servers, reason: " + msg="Failed to connect to the Apple servers, reason:" curl --silent --max-time 10 --output /dev/null --fail -H "Host: osrecovery.apple.com" -H "Connection: close" -A "InternetRecovery/1.0" https://osrecovery.apple.com/ || { code="$?"