updates some stuff
This commit is contained in:
2
app.json
2
app.json
@@ -2,7 +2,7 @@
|
||||
"name": "code-server-heroku",
|
||||
"description": "A code-server environment designed to run in your Heroku",
|
||||
"repository": "https://github.com/bpmct/deploy-code-server",
|
||||
"logo": "https://avatars.githubusercontent.com/u/22407953?s=460&u=32797cfb0541bebfcf10a4613f56a65acd9f516d&v=4",
|
||||
"logo": "https://avatars.githubusercontent.com/u/1375?s=200&v=4",
|
||||
"keywords": [
|
||||
"node",
|
||||
"express",
|
||||
|
||||
@@ -1,16 +1,23 @@
|
||||
# code-server-deploy-container
|
||||
|
||||
An image built for deploying code-server to [railway.app](https://railway.app), [Heroku](https://heroku.com), or other app engines.
|
||||
An container image built for deploying code-server.
|
||||
|
||||

|
||||
## Guides:
|
||||
|
||||
To launch your code-server environment, click the button below and log in with GitHub:
|
||||
- [Deploy on Railway](guides/railway.md)
|
||||
- [Deploy on Heroku](guides/heroku.md)
|
||||
|
||||
| [](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) | [](https://heroku.com/deploy?template=https://github.com/bpmct/deploy-code-server/tree/main) |
|
||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| For Railway, it will ask you to make a new repo to store this image, so you can add additional software to your repo's `Dockerfile` in the future. | For Heroku, we recommend [using this repo as a template](https://github.com/bpmct/code-server-railway/generate) and using the one-click deploy on your own repo to further modify your app. |
|
||||
Docker Hub: `bencdr/code-server-deploy-container`
|
||||
|
||||
Docker Hub: this image is live on the Docker Hub at `bencdr/code-server-deploy-container`
|
||||
---
|
||||
|
||||
## Environment variables:
|
||||
|
||||
| Variable Name | Description | Default Value |
|
||||
| ------------- | ---------------------------------------------------------- | ------------- |
|
||||
| `PASSWORD` | Password for code-server |
|
||||
| `USE_LINK` | Use code-server --link instead of a password (coming soon) | false |
|
||||
| `GIT_REPO` | A git repository to clone | |
|
||||
|
||||
---
|
||||
|
||||
|
||||
41
guides/heroku.md
Normal file
41
guides/heroku.md
Normal file
@@ -0,0 +1,41 @@
|
||||

|
||||
|
||||
## Guide: Launching code-server on Heroku
|
||||
|
||||
[Railway](https://railway.app) is a new cloud development platform! ☁️ Use Railway + code-server to get a dev environment that you can access from any device.
|
||||
|
||||
## Step 1: Click to deploy [](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)
|
||||
|
||||
---
|
||||
|
||||
## Step 2: Configure & launch your environment
|
||||
|
||||

|
||||
|
||||
You'll need to make a new repository which will contain your code-server configuration. If you push changes to this repo (to install NodeJS, for example), it will re-deploy code-server.
|
||||
|
||||
You also need to specity a `PASSWORD` and a `GIT_REPO` to clone in your environment :)
|
||||
|
||||
## Step 3: Modify your environment to add additional tools
|
||||
|
||||

|
||||
|
||||
1. In Railway, go to `Deployments -> Triggers` to see your source repo.
|
||||
1. Open the source repo in GitHub and edit the `Dockerfile`
|
||||
1. Add some custom tools (like NodeJS) and commit to the main branch:
|
||||
|
||||
```Dockerfile
|
||||
# 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
|
||||
|
||||
# Install NodeJS
|
||||
RUN sudo curl -fsSL https://deb.nodesource.com/setup_15.x | sudo bash -
|
||||
RUN sudo apt-get install -y nodejs
|
||||
```
|
||||
|
||||
1. Head back to Railway and notice a new deployment was created. After it has completed, you can use these tools in your environment.
|
||||
|
||||
1. (Optional): [Configure rclone](https://github.com/bpmct/deploy-code-server/tree/main/deploy-container#-persist-your-filesystem-with-rclone) so that you can save your VS Code config and files without commiting
|
||||
@@ -36,6 +36,6 @@ You also need to specity a `PASSWORD` and a `GIT_REPO` to clone in your environm
|
||||
RUN sudo apt-get install -y nodejs
|
||||
```
|
||||
|
||||
1. Head back to Railway and notice how there is a new deployment. After it is done, you can use these tools in your environment.
|
||||
1. Head back to Railway and notice a new deployment was created. After it has completed, you can use these tools in your environment.
|
||||
|
||||
1. (Optional): [Configure rclone](https://github.com/bpmct/deploy-code-server/tree/main/deploy-container#-persist-your-filesystem-with-rclone) so that you can save your VS Code config and files without commiting
|
||||
|
||||
Reference in New Issue
Block a user