Skip to content

Commit 0b7975d

Browse files
authored
Merge branch 'master' into service
2 parents 819ca14 + 6cc9186 commit 0b7975d

File tree

10 files changed

+62
-23
lines changed

10 files changed

+62
-23
lines changed

.github/pull_request_template.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<!--
22
Please link to the issue this PR solves.
33
If there is no existing issue, please first create one unless the fix is minor.
4+
5+
Please make sure the base of your PR is the master branch!
46
-->

ci/build/clean.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ main() {
55
cd "$(dirname "${0}")/../.."
66
source ./ci/lib.sh
77

8-
rm -Rf \
8+
rm -rf \
99
out \
1010
release \
1111
release-standalone \
1212
release-packages \
1313
release-gcp \
14-
release-images/ \
14+
release-images \
1515
dist \
16-
.tsbuildinfo \
17-
.cache/out.tsbuildinfo
16+
.cache
1817

1918
pushd lib/vscode
2019
git clean -xffd

ci/dev/vscode.patch

+2-4
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ index da4fa3e9d0..50f3e1144f 100644
226226

227227
function processLib() {
228228
diff --git a/package.json b/package.json
229-
index e52e3ff548..2f3b55398b 100644
229+
index 226f51a1ec..5c4e5af5f6 100644
230230
--- a/package.json
231231
+++ b/package.json
232232
@@ -45,7 +45,11 @@
@@ -265,9 +265,7 @@ index e52e3ff548..2f3b55398b 100644
265265
+ "resolutions": {
266266
+ "minimist": "^1.2.5"
267267
}
268-
-}
269-
\ No newline at end of file
270-
+}
268+
}
271269
diff --git a/product.json b/product.json
272270
index 2b884d18f3..518b935b83 100644
273271
--- a/product.json

ci/images/centos7/Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
FROM centos:7
22

3+
ARG NODE_VERSION=v12.18.3
34
RUN ARCH="$(uname -m | sed 's/86_64/64/; s/aarch64/arm64/')" && \
4-
curl -fsSL "https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-$ARCH.tar.xz" | tar -C /usr/local -xJ && \
5-
mv /usr/local/node-v14.4.0-linux-$ARCH /usr/local/node-v14.4.0
6-
ENV PATH=/usr/local/node-v14.4.0/bin:$PATH
5+
curl -fsSL "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-$ARCH.tar.xz" | tar -C /usr/local -xJ && \
6+
mv "/usr/local/node-$NODE_VERSION-linux-$ARCH" "/usr/local/node-$NODE_VERSION"
7+
ENV PATH=/usr/local/node-$NODE_VERSION/bin:$PATH
78
RUN npm install -g yarn
89

910
RUN yum groupinstall -y 'Development Tools'

ci/images/debian8/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apt-get update
66
RUN apt-get install -y curl gnupg
77

88
# Installs node.
9-
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \
9+
RUN curl -fsSL https://deb.nodesource.com/setup_12.x | bash - && \
1010
apt-get install -y nodejs
1111

1212
# Installs yarn.

ci/steps/release-packages.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ main() {
55
cd "$(dirname "$0")/../.."
66

77
if [[ $OSTYPE == darwin* ]]; then
8-
curl -L https://nodejs.org/dist/v14.4.0/node-v14.4.0-darwin-x64.tar.gz | tar -xz
9-
PATH="$PWD/node-v14.4.0-darwin-x64/bin:$PATH"
8+
NODE_VERSION=v12.18.3
9+
curl -L "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-darwin-x64.tar.gz" | tar -xz
10+
PATH="$PWD/node-$NODE_VERSION-darwin-x64/bin:$PATH"
1011
fi
1112

1213
# https://github.com/actions/upload-artifact/issues/38

doc/CONTRIBUTING.md

+37-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
33
# Contributing
44

5+
- [Pull Requests](#pull-requests)
56
- [Requirements](#requirements)
67
- [Development Workflow](#development-workflow)
78
- [Build](#build)
@@ -12,6 +13,16 @@
1213

1314
- [Detailed CI and build process docs](../ci)
1415

16+
## Pull Requests
17+
18+
Please link to the issue each PR solves.
19+
If there is no existing issue, please first create one unless the fix is minor.
20+
21+
Please make sure the base of your PR is the master branch. We keep the GitHub
22+
default branch the latest release branch to avoid confusion as the
23+
documentation is on GitHub and we don't want users to see docs on unreleased
24+
features.
25+
1526
## Requirements
1627

1728
Please refer to [VS Code's prerequisites](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#prerequisites).
@@ -49,26 +60,45 @@ reset VS Code then run `yarn vscode:patch`.
4960

5061
## Build
5162

63+
You can build with:
64+
65+
```shell
66+
./ci/steps/release.sh
67+
```
68+
69+
Run your build with:
70+
71+
```
72+
cd release
73+
yarn --production
74+
# Runs the built JavaScript with Node.
75+
node .
76+
```
77+
78+
Build release packages (make sure you run `./ci/steps/release.sh` first):
79+
80+
```
81+
./ci/steps/release-packages.sh
82+
# The standalone release is in ./release-standalone
83+
# .deb, .rpm and the standalone archive are in ./release-packages
84+
```
85+
86+
The `release.sh` script is the equivalent of:
87+
5288
```shell
5389
yarn
5490
yarn vscode
5591
yarn build
5692
yarn build:vscode
5793
yarn release
58-
cd release
59-
yarn --production
60-
# Runs the built JavaScript with Node.
61-
node .
6294
```
6395

64-
Now you can build release packages with:
96+
And `release-packages.sh` is:
6597

6698
```
6799
yarn release:standalone
68-
# The standalone release is in ./release-standalone
69100
yarn test:standalone-release
70101
yarn package
71-
# .deb, .rpm and the standalone archive are in ./release-packages
72102
```
73103

74104
## Structure

doc/install.md

+6
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,13 @@ code-server
174174
# It will also mount your current directory into the container as `/home/coder/project`
175175
# and forward your UID/GID so that all file system operations occur as your user outside
176176
# the container.
177+
#
178+
# Your $HOME/.config is mounted at $HOME/.config within the container to ensure you can
179+
# easily access/modify your code-server config in $HOME/.config/code-server/config.json
180+
# outside the container.
181+
mkdir -p ~/.config
177182
docker run -it -p 127.0.0.1:8080:8080 \
183+
-v "$HOME/.config:/home/coder/.config" \
178184
-v "$PWD:/home/coder/project" \
179185
-u "$(id -u):$(id -g)" \
180186
codercom/code-server:latest

doc/npm.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ sudo apt-get install -y \
2121
pkg-config \
2222
libx11-dev \
2323
libxkbfile-dev \
24-
libsecret-1-dev
24+
libsecret-1-dev \
25+
python3
26+
npm config set python python3
2527
```
2628

2729
## Fedora, CentOS, RHEL

0 commit comments

Comments
 (0)