https://github.com/adrianliechti/loop-code
https://github.com/adrianliechti/loop-code
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adrianliechti/loop-code
- Owner: adrianliechti
- Created: 2022-06-30T07:49:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T16:53:10.000Z (9 months ago)
- Last Synced: 2025-01-13T03:42:50.601Z (5 months ago)
- Language: Dockerfile
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loop Visual Studio Code Server
## Available Images
Base Images
* ghcr.io/adrianliechti/loop-code
* ghcr.io/adrianliechti/loop-code:dindPre-Configured Images
* ghcr.io/adrianliechti/loop-code:golang
* ghcr.io/adrianliechti/loop-code:golang-dind
* ghcr.io/adrianliechti/loop-code:python
* ghcr.io/adrianliechti/loop-code:python-dind
* ghcr.io/adrianliechti/loop-code:java
* ghcr.io/adrianliechti/loop-code:java-dind
* ghcr.io/adrianliechti/loop-code:dotnet
* ghcr.io/adrianliechti/loop-code:dotnet-dind## Run locally (Example)
```shell
# run golang stack
docker run --name code -v $(pwd):/src -p 3000:3000 ghcr.io/adrianliechti/loop-code
```With Docker Support
```shell
# run golang stack with docker-in-docker support
docker run --name code --privileged -v $(pwd):/src -p 3000:3000 adrianliechti/loop-code:dind
```Open [http://localhost:3000/?folder=/src](http://localhost:3000/?folder=/src) in your Web Browser
## Install on Kubernetes (Example)
This creates the following in the Namespace "loop"
- a deployment with a persistent volume
- a privileged sidecare container running docker
- a service account & cluster-admin role binding (to manage Kubernetes)
- a service accessable by http```shell
# deploy on kubernetes
kubectl apply -f https://raw.githubusercontent.com/adrianliechti/loop-code/main/kubernetes/install.yaml# change stack if needed
kubectl set image deployment/code code=ghcr.io/adrianliechti/loop-code:python
```