Compare commits

..

No commits in common. "c9abc7551ab871a6b4086356fc3cd05c5b403047" and "5501437caab291b93b28fac200e74b08bd45e2e8" have entirely different histories.

5 changed files with 13 additions and 8 deletions

View File

@ -1,7 +1,7 @@
ARG VERSION_ARG="latest" ARG VERSION_ARG="latest"
FROM scratch AS build-amd64 FROM scratch AS build-amd64
COPY --from=qemux/qemu:7.01 / / COPY --from=qemux/qemu:7.00 / /
ARG DEBCONF_NOWARNINGS="yes" ARG DEBCONF_NOWARNINGS="yes"
ARG DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
@ -10,11 +10,16 @@ ARG DEBCONF_NONINTERACTIVE_SEEN="true"
RUN set -eu && \ RUN set -eu && \
apt-get update && \ apt-get update && \
apt-get --no-install-recommends -y install \ apt-get --no-install-recommends -y install \
bc \
jq \
7zip \
wsdd \ wsdd \
samba \ samba \
xz-utils \
wimtools \ wimtools \
dos2unix \ dos2unix \
cabextract \ cabextract \
genisoimage \
libxml2-utils \ libxml2-utils \
libarchive-tools && \ libarchive-tools && \
apt-get clean && \ apt-get clean && \
@ -32,7 +37,7 @@ ARG VERSION_ARG="0.00"
RUN echo "$VERSION_ARG" > /run/version RUN echo "$VERSION_ARG" > /run/version
VOLUME /storage VOLUME /storage
EXPOSE 3389 8006 EXPOSE 80 3389
ENV VERSION="11" ENV VERSION="11"
ENV RAM_SIZE="4G" ENV RAM_SIZE="4G"

View File

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

View File

@ -82,7 +82,7 @@ spec:
- name: http - name: http
port: 8006 port: 8006
protocol: TCP protocol: TCP
targetPort: 8006 targetPort: 80
- name: rdp - name: rdp
port: 3389 port: 3389
protocol: TCP protocol: TCP

View File

@ -41,7 +41,7 @@ services:
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
ports: ports:
- 8006:8006 - 8006:80
- 3389:3389/tcp - 3389:3389/tcp
- 3389:3389/udp - 3389:3389/udp
volumes: volumes:
@ -53,7 +53,7 @@ services:
Via Docker CLI: Via Docker CLI:
```bash ```bash
docker run -it --rm --name windows -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v ${PWD:-.}/windows:/storage --stop-timeout 120 dockurr/windows docker run -it --rm --name windows -p 8006:80 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v ${PWD:-.}/windows:/storage --stop-timeout 120 dockurr/windows
``` ```
Via Kubernetes: Via Kubernetes:
@ -78,7 +78,7 @@ kubectl apply -f https://raw.githubusercontent.com/dockur/windows/refs/heads/mas
Very simple! These are the steps: Very simple! These are the steps:
- Start the container and connect to [port 8006](http://127.0.0.1:8006/) using your web browser. - Start the container and connect to [port 8006](http://localhost:8006) using your web browser.
- Sit back and relax while the magic happens, the whole installation will be performed fully automatic. - Sit back and relax while the magic happens, the whole installation will be performed fully automatic.

View File

@ -35,7 +35,7 @@ boot() {
grep -Fq "BOOTMGR is missing" "$QEMU_PTY" && fail="y" grep -Fq "BOOTMGR is missing" "$QEMU_PTY" && fail="y"
fi fi
if [ -z "$fail" ]; then if [ -z "$fail" ]; then
info "Windows started succesfully, visit http://127.0.0.1:8006/ to view the screen..." info "Windows started succesfully, visit http://localhost:8006/ to view the screen..."
return 0 return 0
fi fi
fi fi