-
Notifications
You must be signed in to change notification settings - Fork 196
Install a Swift 5.8.1 toolchain in all swift-ci images #346
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no way to share this code across Dockerfiles?
@shahmishal has some docker-compose ideas here IIUC. With the base docker... not really. You could share a common base image, but this is the other way around - ie. we have a bunch of images that we then want to add a toolchain on top of. Could do some generator-like hackery I suppose, but I'm not sure that's really better (eg. could just have a makefile that concats a bunch of files together 😅). Another alternative would be something like edrevo/dockerfile-plus. |
@swift-ci test |
7e3bb17
to
83d9b67
Compare
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz | ||
|
||
ENV PATH="${SWIFT_PREFIX}/usr/bin:${PATH}" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we use the RPM packages instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We currently mark those as "experimental use only" on swift.org/download. Are we willing to try those out here anyway, or is description on that page outdated?
some of this can be made into a script that is that can be copied & used in the docker file |
Ah that's a good point. Could do that, the extra curl for Ubuntu is a little annoying but we could install based on a parameter for that script. |
a bit less efficient from docker caching pov but we can install curl on ubuntu before the ADD and RUN commands for the script, then remove after. or even a more lazy approach, we can just include curl on these images in the main dependencies list even if we dont really need it for anything else |
Installs a Swift 5.8.1 toolchain into `/opt/swift/<version>` on each Linux platform. Removes clang since the toolchain clang can be used instead.
83d9b67
to
4b27da7
Compare
This was only changed for Ubuntu, also update for Amazon Linux, CentOS, and UBI.
This presumably came through clang previously as a transitive dependency. Add it directly.
@swift-ci test |
1 similar comment
@swift-ci test |
7da791c
to
d2463e0
Compare
@swift-ci please test |
1 similar comment
@swift-ci please test |
Installs a Swift 5.8.1 toolchain into
/opt/swift/<version>
on each Linux platform. Removes clang since the toolchain clang can be used instead.