slight refactor

This commit is contained in:
Ben
2021-03-04 03:47:09 -05:00
parent 647cbb761e
commit 2a31f4e7cf
4 changed files with 18 additions and 5 deletions

View File

@@ -22,5 +22,6 @@ jobs:
with: with:
push: true push: true
tags: bencdr/code-server-deploy-container:latest tags: bencdr/code-server-deploy-container:latest
file: deploy-container/Dockerfile
- name: Image digest - name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }} run: echo ${{ steps.docker_build.outputs.digest }}

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
# Start with our deploy-container image (Debian)
FROM bencdr/deploy-container:latest
USER coder
# You can add custom software and dependencies for your environment here. Some examples:
# RUN code-server --install-extension esbenp.prettier-vscode
# RUN sudo apt-get install -y build-essential
# RUN COPY myTool /home/coder/myTool

View File

@@ -1,6 +1,6 @@
# deploy-code-server # deploy-code-server 🚀
A collection of one-click buttons and tutorials for deploying code-server to various cloud hosting platforms. The fastest way to get a code-server environment! ☁️ A collection of one-click buttons and scripts for deploying code-server to various cloud hosting platforms. The fastest way to get a code-server environment! ☁️
| Platform | Type | Cheapest Plan | Deploy | | Platform | Type | Cheapest Plan | Deploy |
| ----------------- | ---------------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------- | ---------------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -8,10 +8,10 @@ A collection of one-click buttons and tutorials for deploying code-server to var
| Vultr | VM | $5/mo, 1 CPU, 1 GB RAM | Test | | Vultr | VM | $5/mo, 1 CPU, 1 GB RAM | Test |
| Linode | VM | $3.50/mo, 1 CPU, 512 MB RAM | Test | | Linode | VM | $3.50/mo, 1 CPU, 512 MB RAM | Test |
| Railway | Deploy Container | Free, specs unknown, but very fast 🚀 | [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new?template=https%3A%2F%2Fgithub.com%2Fbpmct%2Fcode-server-railway&envs=PASSWORD%2CGIT_REPO&PASSWORDDesc=Your+password+to+log+in+to+code-server+with&GIT_REPODesc=A+git+repo+to+clone+and+open+in+code-server+%28ex.+https%3A%2F%2Fgithub.com%2Fcdr%2Fdocs.git%29) | | Railway | Deploy Container | Free, specs unknown, but very fast 🚀 | [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new?template=https%3A%2F%2Fgithub.com%2Fbpmct%2Fcode-server-railway&envs=PASSWORD%2CGIT_REPO&PASSWORDDesc=Your+password+to+log+in+to+code-server+with&GIT_REPODesc=A+git+repo+to+clone+and+open+in+code-server+%28ex.+https%3A%2F%2Fgithub.com%2Fcdr%2Fdocs.git%29) |
| | | |
| Heroku | Deploy Container | Free, 1 CPU, 512 MB RAM | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) | | Heroku | Deploy Container | Free, 1 CPU, 512 MB RAM | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) |
| | | |
| Azure App Service | Deploy Container | Free, 1 CPU, 1 GB RAM | Test | | Azure App Service | Deploy Container | Free, 1 CPU, 1 GB RAM | [see guide](https://github.com/bencdr/code-server-azure) |
--- ---
@@ -21,7 +21,9 @@ A collection of one-click buttons and tutorials for deploying code-server to var
- You need to save "snapshots" to use your latest images - You need to save "snapshots" to use your latest images
- Storage is always persistent, and you can usually add extra volumes - Storage is always persistent, and you can usually add extra volumes
- VMs can support many workloads, such as running Docker or Kubernetes clusters - VMs can support many workloads, such as running Docker or Kubernetes clusters
- [👀 Preview the VM install script](vm-script/)
- App Platforms deploy code-server containers, and are often rebuilt - App Platforms deploy code-server containers, and are often rebuilt
- App platforms can shut down when you are not using it, saving you money - App platforms can shut down when you are not using it, saving you money
- All software and dependencies need to be defined in the `Dockerfile` or install script so they aren't destroyed on a rebuild - All software and dependencies need to be defined in the `Dockerfile` or install script so they aren't destroyed on a rebuild
- Storage may not be redundant. You may have to use [rclone](https://rclone.org/) to store your filesystem on a cloud service - Storage may not be redundant. You may have to use [rclone](https://rclone.org/) to store your filesystem on a cloud service
- [📄 Docs for code-server-deploy-container](deploy-container/)

View File

@@ -1,3 +1,3 @@
build: build:
docker: docker:
web: deploy-container/Dockerfile web: Dockerfile