Skip to content

Commit ade3cef

Browse files
committed
another refactor :D
1 parent 6db02c7 commit ade3cef

File tree

7 files changed

+28
-32
lines changed

7 files changed

+28
-32
lines changed

.github/workflows/to-dockerhub.yml

-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ jobs:
2121
with:
2222
push: true
2323
tags: bencdr/code-server-deploy-container:latest
24-
file: deploy-container/Dockerfile
2524
- name: Image digest
2625
run: echo ${{ steps.docker_build.outputs.digest }}

Dockerfile

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
1-
# Start with our deploy-container image (Debian)
2-
FROM bencdr/deploy-container:latest
1+
# Start from the code-server Debian base image
2+
FROM codercom/code-server:latest
33

44
USER coder
55

6+
# Apply VS Code settings
7+
COPY deploy-container/settings.json .local/share/code-server/User/settings.json
8+
9+
# Use bash shell
10+
ENV SHELL=/bin/bash
11+
12+
# Install unzip + rclone (support for remote filesystem)
13+
RUN sudo apt-get update && sudo apt-get install unzip -y
14+
RUN curl https://rclone.org/install.sh | sudo bash
15+
616
# You can add custom software and dependencies for your environment here. Some examples:
717

818
# RUN code-server --install-extension esbenp.prettier-vscode
919
# RUN sudo apt-get install -y build-essential
1020
# RUN COPY myTool /home/coder/myTool
21+
22+
# Fix permissions for code-server
23+
RUN sudo chown -R coder:coder /home/coder/.local
24+
25+
# Port
26+
ENV PORT=8080
27+
28+
# Use our custom entrypoint script first
29+
COPY deploy-container/entrypoint.sh /usr/bin/deploy-container-entrypoint.sh
30+
ENTRYPOINT ["/usr/bin/deploy-container-entrypoint.sh"]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A collection of one-click buttons and scripts for deploying code-server to vario
1919
- You need to save "snapshots" to use your latest images
2020
- Storage is always persistent, and you can usually add extra volumes
2121
- VMs can support many workloads, such as running Docker or Kubernetes clusters
22-
- [👀 Preview the VM install script](vm-script/)
22+
- [👀 Docs for the VM install script](vm-script/)
2323
- App Platforms deploy code-server containers, and are often rebuilt
2424
- App platforms can shut down when you are not using it, saving you money
2525
- All software and dependencies need to be defined in the `Dockerfile` or install script so they aren't destroyed on a rebuild

deploy-container/Dockerfile

-24
This file was deleted.

deploy-container/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ An image built for deploying code-server to [railway.app](https://railway.app),
66

77
To launch your code-server environment, click the button below and log in with GitHub:
88

9-
[![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)
9+
| [![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) | [![Deploy on Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/bpmct/deploy-code-server/tree/main) |
10+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11+
| 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. |
1012

11-
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.
12-
13-
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.
13+
---
1414

1515
## 💾 Persist your filesystem with `rclone`
1616

vm-script/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yep it is coming

0 commit comments

Comments
 (0)