Skip to content

devcontainer: Use new prebuilt devcontainer image.#43139

Merged
jschwe merged 1 commit into
servo:mainfrom
jschwe:devcontainer-image
Mar 11, 2026
Merged

devcontainer: Use new prebuilt devcontainer image.#43139
jschwe merged 1 commit into
servo:mainfrom
jschwe:devcontainer-image

Conversation

@jschwe

@jschwe jschwe commented Mar 10, 2026

Copy link
Copy Markdown
Member

Follow-up to #43131.

Testing: Tested locally. Note: This only works for x86_64 based systems. Arm Linux users will need to build from source, but building in the devcontainer on arm linux is anyway not working currently.

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 10, 2026
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
@jschwe jschwe force-pushed the devcontainer-image branch from dad7b69 to e6ba39a Compare March 10, 2026 14:21
@jschwe jschwe requested review from sagudev March 10, 2026 19:37
"dockerfile": "Ubuntu.Dockerfile",
"context": ".."
},
"image": "ghcr.io/servo/servo/devcontainer-ubuntu:latest",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think I understand the rationale for specifying this image (to make setting up the devcontainer more efficient), but it appears to have a big downside: the image may not match the contents of the Dockerfile. So devcontainer behaviour becomes non-reproducible (with all the downsides of a non-reproducible build).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

While this is technically true I think it's not really a problem in practice, because we have postCreateCommand that will make sure that image contains everything needed from current checkout. Also we do not expect many changes to Dockerfile. If one wants to change dockerfile it can also change devcontainer file.

Ideally docker would check if local dockerfile matches dockerfile from image, but this is not possible.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ok, sounds reasonable then. If problems occur, that will be the point at which to address them.

@glyn glyn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If my comment about a non-reproducible devcontainer is correct, I don't think this PR should be merged.

@sagudev sagudev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IMO we should still do this for faster onboarding.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Mar 11, 2026
@sagudev sagudev requested a review from mrobinson March 11, 2026 05:38

@glyn glyn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM.

@jschwe jschwe added this pull request to the merge queue Mar 11, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Mar 11, 2026
Merged via the queue into servo:main with commit 04ca254 Mar 11, 2026
30 checks passed
@jschwe jschwe deleted the devcontainer-image branch March 11, 2026 18:27
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Mar 11, 2026
bruno-j-nicoletti pushed a commit to bruno-j-nicoletti/servo that referenced this pull request Mar 12, 2026
Follow-up to servo#43131.

Testing: Tested locally. Note: This only works for x86_64 based systems.
Arm Linux users will need to build from source, but building in the
devcontainer on arm linux is anyway not working currently.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Signed-off-by: Bruno Nicoletti <bjn@dummy_address.com>
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.

4 participants