Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backstage Techlab – Dev Container

This repository provides a Dev Container environment to run the Backstage Techlab without installing any tools locally.

Included Tools

Tool Version
Node.js 24 (LTS)
Yarn latest
Git latest
Docker (via host socket) via Docker-outside-of-Docker

Prerequisites

Setup

  1. Clone the repository:

    git clone https://github.com/puzzle/backstage-techlab-devcontainer.git
    cd backstage-techlab-devcontainer
  2. Open VS Code:

    code .
  3. VS Code will prompt: "Reopen in Container" – confirm.

    Alternatively: Command Palette (Ctrl+Shift+P / Cmd+Shift+P) → Dev Containers: Reopen in Container

  4. The container will be built and Yarn installed. This may take a few minutes the first time.

VS Code automatically forwards the ports so the app is accessible in your local browser.

Verification

Important: This is NOT the training project itself — just a pre-check of the environment. Run the verification script inside the Dev Container before the lab starts to confirm everything works.

Run the script

Open a terminal inside the Dev Container and run:

bash verify.sh

Expected output (all lines must show [OK]):

Backstage Techlab - Verification
---------------------------------
[OK]      Node.js (v24.x.x)
[OK]      npm (10.x.x)
[OK]      yarn (1.x.x)
[OK]      backstage cli (11.x.x)
[OK]      workspace write access
---------------------------------
All five lines must show [OK] before starting the lab.

Manual verification steps

If you prefer to check manually, run the following commands in the Dev Container terminal:

# Check Node.js
node --version

# Check npm
npm --version

# Check yarn
yarn --version

# Check npm registry reachability (fetches @backstage/create-app version)
npx -y @backstage/create-app --version

# Write access: create file
touch write-test

All commands must return a reasonable result and have no errors.

Troubleshooting

Verify fails

If any check shows [MISSING], copy the terminal output or take a screenshot and send it to the address provided in your training invitation email so it can be resolved before the lab starts.

Windows and WSL

On Windows, Dev Containers run via WSL2. If the container has no write permissions, this is usually caused by a mismatch between the Windows host filesystem and the Linux user inside the container.

1. Move your project into the WSL2 filesystem (recommended)

If your project is located on the Windows filesystem (C:\ / /mnt/c/), permission conflicts are common. Clone or move the project directly into the WSL2 filesystem (e.g. ~/projects/my-project) and open the Dev Container from there in VS Code: code .

Verify it works by running in the container terminal:

touch test.txt

If the file is created without error, the move was successful. If not, got to next section.

No write permissions

Fix ownership inside the container. Open the terminal inside the Dev Container and transfer ownership of the workspace directory to your current user:

sudo chown -R $(whoami) /workspace

Links

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages