Skip to content

Build Docker image on slim base #3204

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

Merged
merged 25 commits into from
Jun 6, 2025
Merged

Build Docker image on slim base #3204

merged 25 commits into from
Jun 6, 2025

Conversation

AndrewFerr
Copy link
Member

@AndrewFerr AndrewFerr commented Apr 14, 2025

This reduces the size of the runtime image by about 50%.

depends on #3294

@toger5
Copy link
Contributor

toger5 commented Apr 14, 2025

Can we track what tests we did with the slim-base to make sure its not breaking anything.

  • deploy and run EC from the slim-base version

For Playwright end-to-end tests in CI, instead of running a development
webserver with `yarn dev`, build and deploy a Docker container for
Element Call and use that as the webserver to test against.
@AndrewFerr
Copy link
Member Author

Can we track what tests we did with the slim-base to make sure its not breaking anything.

There weren't any existing tests that used Docker, so I added 073baca to run the Playwright tests against a freshly-built Docker container of EC. This should ensure that not only does the Docker image build properly, but that running containers can successfully serve EC.

"Developer.elementCallUrl",
null,
"device",
"https://localhost:3000/room",
Copy link
Member Author

Choose a reason for hiding this comment

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

For some reason, this wasn't able to use a variable, so I've defined two different versions of the function for each value of the URL.

@AndrewFerr
Copy link
Member Author

Not sure why the end-to-end tests are hanging in CI, and they run properly for me in an Ubuntu VM...

@toger5
Copy link
Contributor

toger5 commented Apr 23, 2025

@AndrewFerr they are currently broken.
We need to get them fixed before merging (We did a couple of exceptions for the release relevant PR's)
We will merge it in your name once we have them fixed

@AndrewFerr
Copy link
Member Author

AndrewFerr commented Apr 29, 2025

I noticed "playwright" in some recent commit messages, so here's a merge to try tests again 🙂

EDIT: Still no luck.

@fkwp fkwp added the PR-Improvement Release note category. A PR that improves EC's performance or stability. label May 27, 2025
When using a containerized webserver, this stops the container once
tests finish.
@AndrewFerr
Copy link
Member Author

Now we're getting somewhere. Increasing the test job timeout revealed the errors that the tests are hitting, which do not reproduce when running them in a local Ubuntu VM.

The tests are failing on expected page elements not being visible. Any idea what could be causing that?

This reverts commit 298aced.
The point of this was to figure out why the tests were being cancelled.
Copy link
Contributor

@fkwp fkwp left a comment

Choose a reason for hiding this comment

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

Nice catch 5a84936

I think to get it over the line removing the debugging logs to track down 5a84936 would be nice.

@AndrewFerr AndrewFerr merged commit 13fac57 into livekit Jun 6, 2025
19 checks passed
@AndrewFerr AndrewFerr deleted the af/docker/slim branch June 6, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker build Creates a docker image for this PR PR-Improvement Release note category. A PR that improves EC's performance or stability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants