Skip to content

Conversation

@brandonros
Copy link

No description provided.

%.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.

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

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