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: Build with Alpine Linux #58

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andy5995
Copy link
Contributor

For #50

[skip ci]

This image will build, but swift is not available

[SR-4632] Swift on Alpine Linux (support musl libc) swiftlang/swift#47209

Image sizes:

This is 1.1GB, the Debian image is currently 3.83

This PR can be closed and use for future use.

For KaruroChori#50

[skip ci]

This image will build, but swift is not available

[SR-4632] Swift on Alpine Linux (support musl libc)
swiftlang/swift#47209

Image sizes:

This is 1.1GB, the Debian image is currently 3.83

This PR can be closed and use for future use.
@KaruroChori
Copy link
Owner

That would be very bad. Supporting musl libc is not really negotiable, but my understanding was that Swift 6 was capable.
I need to investigate this more in depth.

# https://github.com/swiftlang/swift/issues/47209
# Swift on Alpine not yet supported
#
# RUN curl -s https://archive.swiftlang.xyz/install.sh | bash && \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When this ran, I got the error that the operating system was unsupported.

Copy link
Owner

Choose a reason for hiding this comment

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

musl support is an open issue under certain conditions, but that looks like more of an arbitrary restriction of the installer script. I need to test it in a real env.

Copy link
Owner

Choose a reason for hiding this comment

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

I get it. Swift can crosscompile to support musl and so alpine as target. It cannot run on it yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. For reference: Building from source or the options above it. That could be done in the Dockerfile.

@KaruroChori
Copy link
Owner

KaruroChori commented Dec 11, 2024

For the time being I would suggest we stop working on alpine for docker.
I need the project to evolve a bit more and see if swift brings some added value, if it is better to move it out with its own components in a separate repo, or if it should be nuked entirely (except for its module files which are provided to make c libraries compatible with it).

Support of alpine as a target is much more important than supporting swift as a language within this repo. Still, building directly on alpine is less of a strict requirement, as long as vs runs on it.

@andy5995 andy5995 closed this Dec 11, 2024
@andy5995 andy5995 deleted the iss-50-alpine branch December 11, 2024 10:22
@andy5995 andy5995 restored the iss-50-alpine branch December 11, 2024 10:23
@andy5995 andy5995 reopened this Dec 11, 2024
@KaruroChori KaruroChori force-pushed the master branch 13 times, most recently from a7f9aa9 to 885f8e5 Compare December 17, 2024 16:03
@KaruroChori KaruroChori force-pushed the master branch 2 times, most recently from 61bd0a0 to 6f6c830 Compare December 19, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants