From 3d640483174d08e07e9506dc8111dab08302d47c Mon Sep 17 00:00:00 2001 From: Blockpill <84447224+blockpill@users.noreply.github.com> Date: Wed, 13 Oct 2021 11:50:15 +0700 Subject: [PATCH] ADD: Coder (code-server) SDL to Awesome Akash (#205) * ADD: Coder (code-server) SDL to Awesome Akash * Add Code-server to top level README.md --- README.md | 1 + code-server/Readme.md | 29 +++++++++++++++++++++++++++++ code-server/deploy.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 code-server/Readme.md create mode 100644 code-server/deploy.yml diff --git a/README.md b/README.md index d6f2ca96..8fcd700a 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ Awesome DeFi apps you can deploy on Akash - [Matomo](matomo) - [Zammad](zammad) - [KnowYourDeFi](knowyourdefi) +- [Code-Server](code-server) ### Video Conferencing diff --git a/code-server/Readme.md b/code-server/Readme.md new file mode 100644 index 00000000..dcb7303f --- /dev/null +++ b/code-server/Readme.md @@ -0,0 +1,29 @@ +# Akash Code-Server + +Launch a [Code-Server](https://coder.com/) server on the Akash blockchain. Run VS Code on any machine anywhere and access it in the browser. Visit the [code-server](https://github.com/cdr/code-server) github repo to learn more. + + + +## Requirements + +Linux machine with WebSockets enabled, 1 GB RAM, and 2 CPUs. +## Environment Variables + +Information about the Environment Variables for this docker image can be found in the [linuxserver/docker-code-server](https://github.com/linuxserver/docker-code-server) github repo. +### Required Variables + +```yaml + - PUID=1000 + - PGID=1000 + - PASSWORD=password + - SUDO_PASSWORD=password +``` + +### Optional Variables + +```yaml + - TZ=Europe/London + - HASHED_PASSWORD= #optional + - SUDO_PASSWORD_HASH= #optional + - PROXY_DOMAIN=code-server.my.domain #optional +``` \ No newline at end of file diff --git a/code-server/deploy.yml b/code-server/deploy.yml new file mode 100644 index 00000000..b547be38 --- /dev/null +++ b/code-server/deploy.yml @@ -0,0 +1,42 @@ +version: '2.0' +services: + codeserver: + image: ghcr.io/linuxserver/code-server + env: + - PUID=1000 + - PGID=1000 + - PASSWORD=password + - SUDO_PASSWORD=password + + expose: + - port: 8443 + as: 80 + to: + - global: true +profiles: + compute: + codeserver: + resources: + cpu: + units: 2 + memory: + size: 4Gi + storage: + size: 1Gi + placement: + westcoast: + attributes: + host: akash + signedBy: + anyOf: + - akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63 + pricing: + codeserver: + denom: uakt + amount: 8000 +deployment: + codeserver: + westcoast: + profile: codeserver + count: 1 +