Skip to content

fix: Improve devcontainer.json to use current Ubuntu and docker, fixes #7287 [skip ci] - #7290

Closed
rfay wants to merge 23 commits into
ddev:mainfrom
rfay:20250513_rfay_devcontainer_codespaces
Closed

rfay wants to merge 23 commits into
ddev:mainfrom
rfay:20250513_rfay_devcontainer_codespaces

Conversation

@rfay

@rfay rfay commented May 13, 2025 •

Copy link
Copy Markdown
Member

The Issue

devcontainer.json has an ancient Ubuntu version (20.04)

How This PR Solves The Issue

Upgrade. Use 24.04

TODO

  • The golang feature is huge and takes a lot of time to install. We don't need all of that.
  • (Probably separate PR) Update ddev install docs and the related devcontainer package
  • Automatically push the new ddev-devcontainer image on build with correct tag (and configure tag)

Manual Testing Instructions

Try out this PR using the Codespaces link: https://github.com/codespaces/new?ref=20250513_rfay_devcontainer_codespaces&repo=80927419

Automated Testing Overview

We don't know how to test these things yet but maybe we'll learn

Release/Deployment Notes

There are a number of other things wrong with codespaces still:

  • No port is mapped, so the d10simple we create isn't useful until manually mapped
  • d10simple is out of date. And why not d11? And why Drupal specifically?

However, this may be a first step toward and architecture-independent devcontainer that will work on arm64 mac (unrelated to Codespaces, but related to

@rfay
rfay force-pushed the 20250513_rfay_devcontainer_codespaces branch 2 times, most recently from 2b1efe3 to 48a9dd6 Compare May 21, 2025 16:42
@rfay

rfay commented May 22, 2025 •

Copy link
Copy Markdown
Member Author

I doubt I'll get this into any decent shape before leaving. It may be that this can't work without MS's Oryx. I am learning a little bit about where features come from and how they are configured.

  • Created a new experimental ddev-devcontainer image based on the MS universal image, but not sure if it can be used successfully without Oryx, whatever that is.
  • Switched the demo environment to new ddev/d11simple (useful, should be retained even if this fails)
  • Made setup_test_project.sh use the proper architecture (useful, retain even if this fails)

@rfay

rfay commented May 22, 2025 •

Copy link
Copy Markdown
Member Author

Oh my goodness, it might be close to working! It works in Codespaces, and it even works in VS Code with Devcontainers! (On Apple Silicon, VS Code, and isolated Docker environment)

@rfay
rfay force-pushed the 20250513_rfay_devcontainer_codespaces branch from bf20c2a to e39b696 Compare May 22, 2025 22:51
@github-actions

Copy link
Copy Markdown

@rfay
rfay force-pushed the 20250513_rfay_devcontainer_codespaces branch from f344f4a to 7d3c37d Compare June 11, 2025 20:08
@rfay
rfay force-pushed the 20250513_rfay_devcontainer_codespaces branch from 7d3c37d to 2b4e157 Compare June 27, 2025 18:21
@rfay
rfay force-pushed the 20250513_rfay_devcontainer_codespaces branch from 2b4e157 to bfa2c58 Compare July 10, 2025 04:11
@rfay
rfay force-pushed the 20250513_rfay_devcontainer_codespaces branch from bfa2c58 to 56e70ec Compare July 21, 2025 21:43
@rfay

rfay commented Aug 6, 2025

Copy link
Copy Markdown
Member Author

I'll close this for now, but it's on our list of key initiatives for this year, so it will get reopened.

# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------

FROM ubuntu:24.04 AS ddev-devcontainer

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant