Skip to content

Commit 63ff141

Browse files
Merge branch 'main' into jsjoeio/5364
2 parents 10b47fd + a51c941 commit 63ff141

File tree

4 files changed

+75
-1
lines changed

4 files changed

+75
-1
lines changed

ci/helm-chart/templates/deployment.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ spec:
6262
securityContext:
6363
runAsUser: {{ .Values.securityContext.runAsUser }}
6464
{{- end }}
65+
{{- if .Values.lifecycle.enabled }}
66+
lifecycle:
67+
{{- if .Values.lifecycle.postStart }}
68+
postStart:
69+
{{ toYaml .Values.lifecycle.postStart | nindent 14 }}
70+
{{- end }}
71+
{{- if .Values.lifecycle.preStop }}
72+
preStop:
73+
{{ toYaml .Values.lifecycle.preStop | nindent 14 }}
74+
{{- end }}
75+
{{- end }}
6576
env:
6677
{{- if .Values.extraVars }}
6778
{{ toYaml .Values.extraVars | indent 10 }}

ci/helm-chart/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@ persistence:
127127
# existingClaim: ""
128128
# hostPath: /data
129129

130+
lifecycle:
131+
enabled: false
132+
# postStart:
133+
# exec:
134+
# command:
135+
# - /bin/bash
136+
# - -c
137+
# - curl -s -L SOME_SCRIPT | bash
138+
130139
## Enable an Specify container in extraContainers.
131140
## This is meant to allow adding code-server dependencies, like docker-dind.
132141
extraContainers: |

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ access it in the browser.
1919
See [requirements](requirements.md) for minimum specs, as well as instructions
2020
on how to set up a Google VM on which you can install code-server.
2121

22-
**TL;DR:** Linux machine with WebSockets enabled, 1 GB RAM, and 2 CPUs
22+
**TL;DR:** Linux machine with WebSockets enabled, 1 GB RAM, and 2 vCPUs
2323

2424
## Getting started
2525

docs/termux.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Termux
44

55
- [Install](#install)
6+
- [Yarn Installation](#yarn-installation)
67
- [Upgrade](#upgrade)
78
- [Known Issues](#known-issues)
89
- [Git won't work in `/sdcard`](#git-wont-work-in-sdcard)
@@ -65,6 +66,59 @@ curl -fsSL https://code-server.dev/install.sh | sh
6566
> Consider using a new user instead of root, read [here](https://www.howtogeek.com/124950/htg-explains-why-you-shouldnt-log-into-your-linux-system-as-root/) why using root is not recommended.\
6667
> Learn how to add a user [here](#create-a-new-user).
6768
69+
## Yarn Installation
70+
71+
1. Get [Termux](https://f-droid.org/en/packages/com.termux/) from **F-Droid**.
72+
73+
2. We will now change using the following command.
74+
75+
```sh
76+
termux-change-repo
77+
```
78+
79+
Now select `Main Repository` then change repo to `Mirrors by Grimler Hosted on grimler.se`.
80+
81+
3. After successfully updating of repository update and upgrade all the packages by the following command
82+
83+
```sh
84+
pkg update
85+
pkg upgrade -y
86+
```
87+
88+
4. Now let's install requirement dependancy.
89+
90+
```sh
91+
pkg install -y \
92+
build-essential \
93+
binutils \
94+
pkg-config \
95+
python3 \
96+
yarn \
97+
nodejs-lts
98+
npm config set python python3
99+
node -v
100+
```
101+
102+
you will get node version `v16.15.0`
103+
104+
5. Now install code-server
105+
106+
```sh
107+
yarn global add code-server
108+
```
109+
110+
6. Congratulation code-server is installed on your device using the following command.
111+
112+
```sh
113+
code-server --auth none
114+
```
115+
116+
7. If already installed then use the following command for upgradation.
117+
118+
```
119+
yarn upgrade code-server
120+
```
121+
68122
## Upgrade
69123

70124
1. Remove all previous installs `rm -rf ~/.local/lib/code-server-*`

0 commit comments

Comments
 (0)