Skip to content

Commit 9c143e7

Browse files
authored
feat: make use of windows in docker container image
1 parent a30dbaf commit 9c143e7

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

Dockerfile

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
11
# syntax=docker/dockerfile:1.5
2-
FROM ubuntu:20.04
3-
4-
ENV DEBIAN_FRONTEND noninteractive
5-
ENV TERM xterm-256color
6-
7-
RUN apt-get update -y && \
8-
apt-get install -y \
9-
qemu-kvm \
10-
build-essential \
11-
libvirt-daemon-system \
12-
libvirt-dev \
13-
openssh-server \
14-
linux-image-$(uname -r) \
15-
curl \
16-
net-tools \
17-
gettext-base \
18-
jq && \
19-
apt-get autoremove -y && \
20-
apt-get clean
21-
22-
RUN curl -O https://releases.hashicorp.com/vagrant/2.2.19/vagrant_2.2.19_x86_64.deb && \
23-
dpkg -i vagrant_2.2.19_x86_64.deb && \
24-
vagrant plugin install vagrant-libvirt && \
25-
vagrant box add --provider libvirt peru/windows-server-2022-standard-x64-eval && \
26-
vagrant init peru/windows-server-2022-standard-x64-eval
2+
FROM ghcr.io/vaggeliskls/windows-in-docker-container:latest
273

284
# Github action settings
295
ENV GITHUB_RUNNER_NAME=windows_x64_vagrant
@@ -35,10 +11,13 @@ ENV PRIVILEGED=true
3511
ENV INTERACTIVE=true
3612
ENV DOLLAR=$
3713

14+
RUN rm -rf /Vagrantfile
15+
RUN rm -rf /Vagrantfile.tmp
16+
RUN rm -rf /startup.sh
17+
3818
COPY Vagrantfile /Vagrantfile.tmp
3919
COPY startup.sh /
4020
RUN chmod +x startup.sh
41-
RUN rm -rf /Vagrantfile
4221

4322
ENTRYPOINT ["/startup.sh"]
4423
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)