Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whyvra/code-server-dotnet
A docker image based on code-server with added support for the .NET 6.0 SDK.
https://github.com/whyvra/code-server-dotnet
Last synced: 3 days ago
JSON representation
A docker image based on code-server with added support for the .NET 6.0 SDK.
- Host: GitHub
- URL: https://github.com/whyvra/code-server-dotnet
- Owner: whyvra
- License: mit
- Created: 2022-02-24T21:55:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-12T19:31:53.000Z (about 1 year ago)
- Last Synced: 2023-10-14T21:23:37.976Z (about 1 year ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# code-server-dotnet
[![GitHub Build](https://img.shields.io/github/workflow/status/whyvra/code-server-dotnet/Build%20Docker%20image?style=flat-square)](https://github.com/whyvra/code-server-dotnet/actions)
[![Docker Pulls](https://img.shields.io/docker/pulls/whyvra/code-server-dotnet?style=flat-square)](https://hub.docker.com/r/whyvra/code-server-dotnet)
[![LICENSE](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](https://github.com/whyvra/code-server-dotnet/blob/master/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)A docker image based on `code-server` with added support for the .NET 8.0 SDK.
## Usage
```bash
# This will start a code-server container and expose it at http://127.0.0.1:8080.
# It will also mount your current directory into the container as `/home/coder/project`
# and forward your UID/GID so that all file system operations occur as your user outside
# the container.
#
# Your $HOME/.config is mounted at $HOME/.config within the container to ensure you can
# easily access/modify your code-server config in $HOME/.config/code-server/config.json
# outside the container.
mkdir -p ~/.config
docker run -it --name code-server -p 127.0.0.1:8080:8080 \
-v "$HOME/.config:/home/coder/.config" \
-v "$PWD:/home/coder/project" \
-u "$(id -u):$(id -g)" \
-e "DOCKER_USER=$USER" \
whyvra/code-server-dotnet:latest
```## Mounts
In order to persist your `code-server` configuration, installed extensions, dotnet tools. git config and custom projects, mount points must be created.
```bash
/home/coder
├── .config/ # code-server config
├── .local/share/ # extensions and their config files
├── .dotnet/ # local dotnet folder used for dotnet-tools and stuff
├── .ssh/ # ssh keys
├── .gitconfig # git config file
├── dev/ # folder to persist your projects (you don't have to call it dev)
```For SSH keys, please be mindful of their location and who can access them. Highly recommend using a secure mechanism like Docker secrets.
## License
Released under the [MIT License](https://github.com/whyvra/code-server-dotnet/blob/master/LICENSE).