DEV Community

Lynn Langit
Lynn Langit

Posted on

2

Containers for GitHub Codespaces

Tried out using custom containers as a basis for GitHub Codespaces using the Java example from Microsoft - list.

Create and populate a .devcontainers folder at my Repo root with (modified) example DOCKERFILE, devcontainer.json and supporting script files and away we go.

Custom Codespace being created
Alt Text

Using the Java Codespace (includes Maven & Gradle by default)
Alt Text

The supporting .devcontainers.json file
Alt Text

Easy-peasy. Also learned that if I don't own the repo on which I am creating a custom Codespace, then when initially creating a Codespace Github will automatically create a repo fork.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay