Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tailscale/codespace
Experimenting with codespaces
https://github.com/tailscale/codespace
Last synced: 1 day ago
JSON representation
Experimenting with codespaces
- Host: GitHub
- URL: https://github.com/tailscale/codespace
- Owner: tailscale
- License: bsd-3-clause
- Created: 2021-09-29T01:48:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-22T22:11:05.000Z (3 months ago)
- Last Synced: 2024-08-22T23:54:56.959Z (3 months ago)
- Language: Shell
- Size: 116 KB
- Stars: 72
- Watchers: 18
- Forks: 48
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Codespace feature for Tailscale connectivity
This repository contains a feature for [GitHub Codespaces](https://github.com/features/codespaces)
to connect the running VM to a [Tailscale network](https://tailscale.com).![Start a new codespace](codespace.jpg)
To get started, add the following [feature](https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-features-to-a-devcontainer-file)
to your `devcontainer.json`:```json
"runArgs": ["--device=/dev/net/tun"],
"features": {
"ghcr.io/tailscale/codespace/tailscale": {
"version": "latest"
}
}
```Then launch your Codespace. After it starts up, run [`tailscale up`](https://tailscale.com/kb/1080/cli/#up):
```shell
sudo tailscale up --accept-routes
```You'll only need to run `tailscale up` once per Codespace.
The Tailscale state will be saved between rebuilds.