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

Add Dockerfile and use docker in CI #2166

Merged
merged 2 commits into from
Mar 16, 2022

Conversation

lorenzo-gomez-windhover
Copy link
Contributor

As discussed in #2156, some unit tests do not pass in a docker image since there are multiple issues related to IPV6. This PR addresses those issues.

During this process, I also learned that GitHub Actions has some issues related to Maven network timeouts. See actions/runner-images#1499. Specifically in our case GitHub Actions would hang forever(until eventually it times out) when we used the new docker-tests profile when running maven. The new flags in MAVEN_OPTS seems to fix it. I don't know if there is something in those flags that we shouldn't be doing, so please give me feedback if there is. I pretty much stole the config from here Ericsson/ecchronos#275.

Hope these changes make sense.
Thanks
Lorenzo

-Add docker-tests profile.
-Update CI to use docker image.
-Update docs.
@shroffk
Copy link
Member

shroffk commented Mar 14, 2022

Thanks
Is this image gomezwhl/phoebus-ci:latest made using the docker file you have added under /misc/Dockerfile ?

@lorenzo-gomez-windhover
Copy link
Contributor Author

Yes. And I would have liked to build it every time I push it, but it requires a token from my account. It is built every time this fork is built.

Copy link
Collaborator

@andersharrisson-ess andersharrisson-ess left a comment

Choose a reason for hiding this comment

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

Thank you for the MR, @lorenzo-gomez-windhover .
This looks like a good MR. I added a couple of comments on the Dockerfile.

misc/Dockerfile Outdated Show resolved Hide resolved
misc/Dockerfile Outdated
@@ -0,0 +1,11 @@
FROM ubuntu:18.04
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any reason for using ubuntu:18.04? It is not the latest LTS version for Ubuntu.
Have you tried using the official images for OpenJDK or even Maven?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no reason. I just forgot that Ubuntu 18 is not LTS anymore :).

@shroffk
Copy link
Member

shroffk commented Mar 16, 2022

@lorenzo-gomez-windhover do you want me to wait till you update the PR with anders suggestions

@lorenzo-gomez-windhover
Copy link
Contributor Author

I believe all of the concerns have been addressed. Sorry for delays in responses. Things have been quite busy lately...

@shroffk shroffk merged commit 62fbfab into ControlSystemStudio:master Mar 16, 2022
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.

3 participants