Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-wine #23

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

docker-wine #23

wants to merge 8 commits into from

Conversation

brandonros
Copy link

No description provided.

@@ -26,6 +26,7 @@ alpine: alpine.img
%.img: builder %.dir
@echo ${COL_GRN}"[Create $* disk image]"${COL_END}
docker run -it \
--platform linux/amd64 \
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise building on Apple M1 will oddly default to arm64 I believe

@@ -0,0 +1,44 @@
#!/usr/bin/env bash
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,144 @@
#!/usr/bin/env bash
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,9 @@
# Connect to the host's server using the mounted UNIX socket
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LABEL com.iximiuz-project="docker-to-linux"
RUN apt-get update -y
RUN apt-get -y install \
linux-image-virtual \
systemd-sysv
RUN echo "root:root" | chpasswd

# docker-remote-desktop
RUN sed -i -E 's/^# deb-src /deb-src /g' /etc/apt/sources.list \
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really sure if we can support the multistage FROM stuff, so this is a copy and paste hackjob from https://github.com/scottyhardy/docker-remote-desktop/blob/master/Dockerfile

ENV LANG en_US.UTF-8

# docker-wine
# Install prerequisites
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_image.sh Outdated
@@ -11,7 +11,7 @@ echo_blue() {
}

echo_blue "[Create disk image]"
dd if=/dev/zero of=/os/${DISTR}.img bs=$(expr 1024 \* 1024 \* 1024) count=1
dd if=/dev/zero of=/os/${DISTR}.img bs=$(expr 1024 \* 1024 \* 1024 * 20) count=1
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

20gb i think? i hit disk out of space otherwise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant