Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aledbf/devcontainers-features
https://github.com/aledbf/devcontainers-features
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aledbf/devcontainers-features
- Owner: aledbf
- Created: 2023-11-21T19:20:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-24T00:03:43.000Z (about 1 year ago)
- Last Synced: 2024-10-14T15:56:52.405Z (3 months ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# devcontainers-features
1. Open a workspace
2. In a terminal run```
# create a new SSH key (this one will be injected by workspacekit or runner)
ssh-keygen -b 2048 -t rsa -f /home/gitpod/.ssh/id_rsa -q -N ""
chmod 0600 /home/gitpod/.ssh/id_rsa# install the devcontainer CLI
npm install -g @devcontainers/cli# build the container
devcontainer build --workspace-folder .# start the devcontainer
devcontainer up --workspace-folder . --log-level debug# test we can get access using the node or root user (the only ones in /etc/passwd)
ssh -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o GlobalKnownHostsFile=/dev/null -i /home/gitpod/.ssh/id_rsa node@localhost
```