mirror of
https://github.com/dockur/macos.git
synced 2026-03-11 08:34:24 +00:00
feat: Switch to port 80 (#212)
This commit is contained in:
parent
422ded1364
commit
d07d09ea48
5 changed files with 7 additions and 9 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ services:
|
|||
cap_add:
|
||||
- NET_ADMIN
|
||||
ports:
|
||||
- 8006:8006
|
||||
- 8006:80
|
||||
- 5900:5900/tcp
|
||||
- 5900:5900/udp
|
||||
volumes:
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ spec:
|
|||
- name: http
|
||||
port: 8006
|
||||
protocol: TCP
|
||||
targetPort: 8006
|
||||
targetPort: 80
|
||||
- name: vnc
|
||||
port: 5900
|
||||
protocol: TCP
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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="$?"
|
||||
|
|
|
|||
Loading…
Reference in a new issue