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

Adds git to the Dockerfile apt install (Windows build functionality) #4153

Merged

Conversation

xiaodown
Copy link
Contributor

I saw in setup.md "(if you have docker on Windows, I'd be grateful if you could let me know if it works there too)". So I went to build it on Windows.

I use Windows Subsystem for Linux, which is mostly Ubuntu but not really (there's no init). But Docker Desktop has an integration for WSL2.

For me, gradle wouldn't build the image without forcing git to install in the container. I'll attach screenshots to the pull request. It just looks like whatever ubuntu:focal my docker system grabbed doesn't have git installed by default.

Anyway, this fixes it, and shouldn't screw anything even if git is installed by default. I tested it on my M1 Mac pro and it still works fine with this change.

And you can (somewhat) say building works on Windows, or at least WSL2.

1.19.4 trying to build:
1 19 4

this branch building:
mybranch

Docker desktop on Windows showing the image:
image-on-win

I saw in setup.md "(if you have docker on Windows, I'd be grateful if
you could let me know if it works there too)".  So I went to build
it on Windows.

I use Windows Subsystem for Linux, which is (mostly) Ubuntu but not
really (there's no init).  But Docker Desktop has an integration for
WSL2.

For me, gradle wouldn't build the image without forcing git to install
in the container.  I'll attach screenshots to the pull request.  It just
looks like whatever ubuntu:focal my docker system grabbed doesn't have
git installed by default.

Anyway, this fixes it, and shouldn't screw anything even if git is
installed by default.  I tested it on my M1 Mac pro and it still works
fine.
@xiaodown
Copy link
Contributor Author

https://learn.microsoft.com/en-us/windows/wsl/install and https://docs.docker.com/desktop/wsl/ btw if interested. Also the new Windows Terminal is ... actually really good (https://aka.ms/terminal or https://github.com/microsoft/terminal if you don't want to use the windows app store).

@xiaodown
Copy link
Contributor Author

image

^^^ container running + terminal showing build in progress (in windows)

@leijurv leijurv merged commit 1409c92 into cabaletta:1.19.4 Oct 31, 2023
1 check passed
@leijurv
Copy link
Member

leijurv commented Oct 31, 2023

Cool!

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.

2 participants