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 compose for testing #9525

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pabzm
Copy link
Member

@pabzm pabzm commented Jun 28, 2024

I couldn't get the browser tests to run green locally, and felt uneasy about running a downloaded binary with superuser-rights (the IMAP-server) on my machine anyway. So I decided to build a testing setup with docker compose, which depends on external containers for the browser and the IMAP-server and helps to make the environment reproducecable. Additionally it is faster for repeated runs, because it doesn't repeatedly downloads the server-jar, installs the webdriver, etc.

And because more people might find it useful I'm posting this pull request.

We could also rebuild the automated testing workflows to use services (external containers) to speed things up. But before I do that I wanted to know if this gets merged or provokes discussion in the first place.

The container image needs to be built locally, currently. If this gets merged I'd set it up to be built repeatedly on github and to be downloadable.

This helps to test (reproduceably) locally, it only depends on docker
compose, no other tools. It uses standalone containers for the greenmail
IMAP server and the standalone browser.

The previous solution should still work, and all github workflows are
untouched (yet).
So we don't have to specify them on the command line when we check
codestyle locally.
@pabzm pabzm requested review from alecpl and miaulalala June 28, 2024 13:03
@alecpl
Copy link
Member

alecpl commented Jun 28, 2024

I don't like docker and I have no clue about docker, but...

  1. I'm not against using it in CI, as long as possibility to use local/external IMAP server is still there.
  2. There's more or less official roundcube/roundcubemail-docker repository, so we should not add any docker files here, unless they reside in .ci folder.

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.

None yet

2 participants