oznakn / codespace

Experimenting with codespaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codespace feature for Tailscale connectivity

This repository contains a feature for GitHub Codespaces to connect the running VM to a Tailscale network.

Start a new codespace

To get started, add the following feature to your devcontainer.json:

"runArgs": ["--device=/dev/net/tun"],
"features": {
  // ...
  "ghcr.io/tailscale/codespace": {}
  // ...
}

Then launch your Codespace. After it starts up, run tailscale up:

sudo tailscale up --accept-routes

You'll only need to run tailscale up once per Codespace. The Tailscale state will be saved between rebuilds.

About

Experimenting with codespaces

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Shell 100.0%