-
Notifications
You must be signed in to change notification settings - Fork 54
Extend Docker images and CI #442
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
56a7217 to
8771eab
Compare
4f97f8f to
b0b890f
Compare
…, such as x64 and arm64.
and extend SolverContextFactory with more checks on operating systems and architecture.
afa79f7 to
1a88f53
Compare
The file was only used for testing.
daniel-raffler
left a comment
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 might want to wait for feedback on the java-project-template issue. Otherwise this looks good to me!
| FROM ubuntu:20.04 | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
| ENV TZ=UTC | ||
|
|
||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ant \ | ||
| curl \ | ||
| git \ | ||
| jq \ | ||
| openjdk-11-jre-headless \ | ||
| openjdk-11-jdk-headless \ | ||
| wget \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| ENV LANG C.UTF-8 | ||
|
|
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.
Are the changes here just temporary due to the java-project-template issue you mentioned? Otherwise, I think that something like FROM --platform=?? registry.gitlab.com/sosy-lab/software/java-project-template/test:jdk-11 could be used to pull the image for a specific architecture.
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.
Yes, temporary, until further notice 😄, e.g., until there is one multi-arch Docker image in the registry where we can inherit from.
FROM --platform <ARCH> <TAG> can be used to select one of several architectures from a multi-arch Docker image, but not the other way. See https://docs.docker.com/reference/dockerfile/#from . I do not expect it to work in this case.
I am unsure who will work on issues for |
With the support of more architectures we should also extend our test-coverage for those architectures.
This PR provides several smaller steps towards this:
Screenshot of the pipeline:
This PR violates the rule to reuse SoSy-Lab common project files for building and testing applications and libraries. However, this is due to the lack of support for multiple architectures from the common project template. We opened an issue there: https://gitlab.com/sosy-lab/software/java-project-template/-/issues/7 and aim for a merge of scripts into the common project template.