Skip to content

Update devcontainer Dockerfile - #127460

Merged
jtschuster merged 4 commits into
mainfrom
copilot/sync-packages-in-dockerfile
May 8, 2026
Merged

Update devcontainer Dockerfile#127460
jtschuster merged 4 commits into
mainfrom
copilot/sync-packages-in-dockerfile

Conversation

Copilot AI commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

The devcontainer package list was missing some requirements to build, so new codespaces could not build runtime. Update the Dockerfile to curl and run the install-dependencies script during creation to install the packages.

Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/e01dfde2-e3fd-478e-aa3c-c270ffb6f75b

Co-authored-by: jtschuster <36744439+jtschuster@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot April 27, 2026 15:59
Copilot AI changed the title [WIP] Fix package mismatch between Dockerfile and requirements documentation Sync Linux devcontainer package requirements Apr 27, 2026
Copilot AI requested a review from jtschuster April 27, 2026 16:04
Comment thread .devcontainer/Dockerfile Outdated
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

Comment thread docs/workflow/requirements/linux-requirements.md Outdated
Comment thread docs/workflow/requirements/linux-requirements.md Outdated
Copilot AI review requested due to automatic review settings April 28, 2026 13:52
@jtschuster jtschuster changed the title Sync Linux devcontainer package requirements Update dev container Dockerfile Apr 28, 2026
@jtschuster jtschuster changed the title Update dev container Dockerfile Update devcontainer Dockerfile Apr 28, 2026
Comment thread .devcontainer/Dockerfile Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the devcontainer Dockerfile to install build prerequisites by downloading and running the repo’s eng/common/native/install-dependencies.sh script during image creation, instead of maintaining a hardcoded apt-get install list.

Changes:

  • Switches the devcontainer base image variant default from 8.0-noble to 10.0-noble.
  • Replaces the explicit apt-get install dependency list with a curl + bash install-dependencies.sh step.
  • Adds a note intending to keep dependencies aligned with the documented Linux requirements.

Comment thread .devcontainer/Dockerfile Outdated
Comment thread .devcontainer/Dockerfile Outdated
Comment thread .devcontainer/Dockerfile Outdated
Comment thread .devcontainer/Dockerfile Outdated
Comment thread .devcontainer/Dockerfile Outdated
Comment thread .devcontainer/Dockerfile
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 28, 2026 14:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@jtschuster

Copy link
Copy Markdown
Member

For now maybe we can just use the install-dependencies.sh script for dev containers / Codespaces to enable building runtime without installing additional packages.

@jtschuster
jtschuster marked this pull request as ready for review May 5, 2026 10:52
@am11

am11 commented May 5, 2026

Copy link
Copy Markdown
Member

For now maybe we can just use the install-dependencies.sh script for dev containers / Codespaces to enable building runtime without installing additional packages.

I agree that this is good enough for standard configuration. Those additional packages are not required to build / debug runtime. User is free to install any other package in dev containers.

@jtschuster
jtschuster merged commit c4ef6f4 into main May 8, 2026
25 checks passed
@github-project-automation github-project-automation Bot moved this to Done in AppModel May 8, 2026
@jtschuster
jtschuster deleted the copilot/sync-packages-in-dockerfile branch May 8, 2026 17:46
jakobbotsch pushed a commit to jakobbotsch/runtime that referenced this pull request May 12, 2026
The devcontainer package list was missing some requirements to build, so
new codespaces could not build runtime. Update the Dockerfile to curl
and run the install-dependencies script during creation to install the
packages.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jtschuster <36744439+jtschuster@users.noreply.github.com>
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Packages installed in .devcontainer/Dockerfile do not match docs/workflow/requirements/linux-requirements.md

6 participants