feat: Switch to port 80 (#212)

This commit is contained in:
Kroese 2025-03-17 16:44:07 +01:00 committed by GitHub
parent 422ded1364
commit d07d09ea48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 9 deletions

View file

@ -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"

View file

@ -10,7 +10,7 @@ services:
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 8006:80
- 5900:5900/tcp
- 5900:5900/udp
volumes:

View file

@ -76,7 +76,7 @@ spec:
- name: http
port: 8006
protocol: TCP
targetPort: 8006
targetPort: 80
- name: vnc
port: 5900
protocol: TCP

View file

@ -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:

View file

@ -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="$?"