Skip to content

bump docker container to nodejs 22 and manually download phantomjs #6553

Merged
Exairnous merged 6 commits intoHubs-Foundation:masterfrom
rebeckerspecialties:update-docker-image
Jun 15, 2025
Merged

bump docker container to nodejs 22 and manually download phantomjs #6553
Exairnous merged 6 commits intoHubs-Foundation:masterfrom
rebeckerspecialties:update-docker-image

Conversation

@matthargett
Copy link
Copy Markdown
Contributor

@matthargett matthargett commented Jun 4, 2025

What?

This tests upgrading the docker container to a newer Debian without phantomjs. PhantomJS appears to be a vestigial dependency that isn't used by anything in the repository, nor as a runtime dependency in any transitive sub-dependencies, but it is checked for by some ancient package in a manual lifecycle script.

Why?

This is to enable the modernization of packages and infrastructure in #6549 more incrementally.

How to test

Docker image builds and deploys.

Documentation of functionality

Docker file is self-documenting, and this should be a seamless transition.

Alternatives considered

We tried to fully eliminate the need for phantomjs, but it's not possible without duplicating dependency upgrade efforts in #6549. Once #6549 is merged, we can retry relieving the phantomjs constraint (archived and abandoned for over 5 years now).

Additional details or related context

in support of #6549

…houldn't be installed anyway since its a devDependency, but let's handle that as a separate optimization
Copy link
Copy Markdown
Member

@DougReeder DougReeder left a comment

Choose a reason for hiding this comment

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

Works fine in my instance.

…e (antipattern) of git dependencies pulling in their devDependencies with preinstall checks.
…cript shenanigans to execute phantomjs, and we want to try only upgrading one aspect at a time
@matthargett matthargett changed the title bump docker container to nodejs 22 and remove phantomjs bump docker container to nodejs 22 and manually download phantomjs Jun 13, 2025
Copy link
Copy Markdown
Member

@Exairnous Exairnous left a comment

Choose a reason for hiding this comment

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

@matthargett LGTM. Thanks.
@ajlennon reported in Discord that it worked for him as well for both amd64 and arm64.

I noticed that this doesn't bump the node version mentioned in the readme, should it? Or is that something you're leaving for #6549

@matthargett
Copy link
Copy Markdown
Contributor Author

@matthargett LGTM. Thanks.

@ajlennon reported in Discord that it worked for him as well for both amd64 and arm64.

I noticed that this doesn't bump the node version mentioned in the readme, should it? Or is that something you're leaving for #6549

It does bump the node image version from 16.x to 22.x. Were you expecting a separate version bump in terms of an "engines" directive?

@Exairnous
Copy link
Copy Markdown
Member

I believe you added an "engines" directive in your other pull request for Node 22, but no, I was referring to the fact that the readme says "We use 16.16.0 on our build servers." and this isn't changed in this pull request to the new version of 22.

@DougReeder
Copy link
Copy Markdown
Member

The current version of this (f96fc6d) builds without issues on iMac with 8-Core Intel Core i7, and the image installs fine on my instance, and passes the smoke test for Firefox 139.0.1 (64-bit), Chrome Version 137.0.7151.104 (Official Build) (x86_64), Oculus Browser 39.0.0.15.... on the Quest 3 and Chrome 136.0.7103.125 on a Pixel 5 running Android 18.

Still can't enter a room from the lobby on my iPhone, so that's no regression.

@Exairnous
Copy link
Copy Markdown
Member

Okay, since everyone is happy with the latest version of this PR, I'm merging it. The update to the Node version in the readme can be added in a subsequent PR.

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