Skip to content

Merge cdr/main into galesky/main #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 72 commits into from
Sep 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
f94e433
fix(readme): tls docs path
galesky Aug 11, 2021
cee0e85
chore: add docs preview workflow (#3958)
BrunoQuaresma Aug 11, 2021
bffb009
fix: add symlink to npmignore
jsjoeio Aug 11, 2021
30dc47d
Merge pull request #3954 from cdr/jsjoeio-add-npmignore
jsjoeio Aug 11, 2021
234b8ad
chore(deps): update debian docker tag to v11
renovate-bot Aug 17, 2021
59d659c
chore(deps): update aquasecurity/trivy-action commit hash to 8eccb55
renovate-bot Aug 17, 2021
d4ca5a4
clean up npm docs and add Windows 10 instructions
bpmct Aug 22, 2021
d588fdb
fix typo
bpmct Aug 22, 2021
0f598e6
mention --link caveat
bpmct Aug 22, 2021
7c05069
add instructions for --link
bpmct Aug 22, 2021
f06ecd6
format
bpmct Aug 22, 2021
dae730e
fix typos
bpmct Aug 23, 2021
44b532f
Update docs/npm.md
bpmct Aug 23, 2021
2bfc793
Update docs/npm.md
bpmct Aug 23, 2021
7cde11e
Merge pull request #4002 from cdr/renovate/minor-dependency-updates
jsjoeio Aug 23, 2021
dfa63ec
Update docs/install.md
bpmct Aug 24, 2021
60b3323
remove line break
bpmct Aug 24, 2021
ffc47d3
Merge pull request #4015 from cdr/bpmct/win10-npm
bpmct Aug 24, 2021
1d8806f
Merge pull request #3999 from cdr/renovate/debian-11.x
jsjoeio Aug 24, 2021
5b6b1dd
fix(docs): use latest instead of version in links
jsjoeio Aug 24, 2021
6f8dba7
docs: add how to change port
jsjoeio Aug 24, 2021
5b6db90
docs: add note about npm logging
jsjoeio Aug 24, 2021
ea1b3a7
chore: add example for parameter/value to Helm Values (#4020)
jawnsy Aug 24, 2021
d0ca3ae
Merge pull request #4031 from cdr/jsjoeio-ports-docs
jsjoeio Aug 24, 2021
8cf98ea
docs: add proxying a vue app
jsjoeio Aug 24, 2021
4bb3175
Merge pull request #4033 from cdr/jsjoeio-docs-vuejs
jsjoeio Aug 24, 2021
1284aa3
Merge pull request #4032 from cdr/jsjoeio-npm-troubleshoot
jsjoeio Aug 24, 2021
e5a9df3
Merge pull request #4028 from cdr/jsjoeio-docs-latest
jsjoeio Aug 24, 2021
fa6e86d
docs: fix typos and wording in npm
jsjoeio Aug 24, 2021
f0d3e02
docs: add note about external domain in requirements
jsjoeio Aug 24, 2021
3e55e5e
Merge pull request #4037 from cdr/jsjoeio-tiny-docs-fix
jsjoeio Aug 24, 2021
d26858b
backported https://github.com/microsoft/vscode/pull/131408
sdissegna-maystreet Aug 25, 2021
bc3fb5e
refactor: move helm README to docs/helm.md
jsjoeio Aug 24, 2021
8cf6949
refactor: update image in readme
jsjoeio Aug 24, 2021
15b39e6
Merge pull request #4038 from sdissegna-maystreet/main
jsjoeio Aug 25, 2021
02d355f
Merge pull request #4034 from cdr/jsjoeio-docs-google-cloud
jsjoeio Aug 25, 2021
c913386
Merge pull request #4036 from cdr/jsjoeio-update-image
jsjoeio Aug 25, 2021
f2bef94
docs(guide): clarify login limits
jsjoeio Aug 25, 2021
f319fca
Revert "refactor: move helm README to docs/helm.md"
jsjoeio Aug 25, 2021
070a122
Merge pull request #4043 from cdr/jsjoeio-revert-helm
jsjoeio Aug 25, 2021
e2a7ffb
Merge pull request #4040 from cdr/jsjoeio-fix-typo-limits
jsjoeio Aug 26, 2021
6c6446f
Add check docs (#4047)
BrunoQuaresma Aug 26, 2021
dbd1a22
feat: add stale bot config
jsjoeio Aug 26, 2021
b5afb05
Merge pull request #4048 from cdr/jsjoeio-add-stale
jsjoeio Aug 26, 2021
607c9b2
fix: remove stale label action from ranger
jsjoeio Aug 27, 2021
efbfe06
docs(guide): add ssh into code-server on vs code
jsjoeio Aug 25, 2021
4798841
Merge pull request #4042 from cdr/jsjoeio-ssh-vscode
jsjoeio Aug 27, 2021
f23f219
Merge pull request #4050 from cdr/jsjoeio-fix-bots
jsjoeio Aug 27, 2021
c0d62da
revert: "docs(guide): add ssh into code-server on vs code" (#4060)
jawnsy Aug 28, 2021
bd1e9b3
docs: add troubleshooting section for documentation
jsjoeio Aug 30, 2021
79b4e47
feat: add full test coverage browser/vscode
jsjoeio Aug 27, 2021
ccb30ef
chore(deps): update dependency eslint-plugin-prettier to v4
renovate-bot Aug 30, 2021
ccd835c
Merge pull request #4076 from cdr/renovate/eslint-plugin-prettier-4.x
jsjoeio Aug 30, 2021
ed1ded5
Merge pull request #4055 from cdr/jsjoeio-tests-vscode
jsjoeio Aug 30, 2021
67b23aa
Merge pull request #4070 from cdr/jsjoeio-troubleshoot-docs
jsjoeio Sep 3, 2021
b4c5dc5
Revert "revert: "docs(guide): add ssh into code-server on vs code" (#…
jsjoeio Aug 30, 2021
2c1aed2
fix: update tar version with resolution
jsjoeio Sep 1, 2021
8fde5f4
Merge pull request #4071 from cdr/jsjoeio-fix-revert-docs
jsjoeio Sep 7, 2021
0529f52
compile extensions media
sdissegna-maystreet Sep 7, 2021
b32b4ed
fix: run postinstall script explicitly with bash (#4116)
max-hk Sep 8, 2021
b00afbc
Resolve remote authority to initialize tunnel API (#4105)
kylecarbs Sep 8, 2021
7a73501
Push latest Docker tag along with version tag (#4120)
code-asher Sep 8, 2021
293d113
fix(lib/vscode): update axios to 0.21.2
jsjoeio Sep 9, 2021
5f81e29
fix(lib/vscode): upgrade pac-resolver, path-parse
jsjoeio Sep 9, 2021
458474f
fix(lib/vscode): upgrade yargs-parser
jsjoeio Sep 9, 2021
8a1c129
Merge pull request #4129 from cdr/jsjoeio-fix-vulnerabilities
jsjoeio Sep 10, 2021
592d9bc
fix(lib/vscode): update csp in webview to allow ports
jsjoeio Sep 10, 2021
a10df0c
fix(docs): use png screenshot instead of svg
jsjoeio Sep 9, 2021
0944056
feat: add tests for src/node/app.ts
jsjoeio Sep 3, 2021
9c9883e
Merge pull request #4099 from cdr/jsjoeio-tests-app
jsjoeio Sep 10, 2021
82ae47e
Merge pull request #4127 from cdr/jsjoeio-fix-screenshot
jsjoeio Sep 10, 2021
bc3acb0
Merge pull request #4131 from cdr/jsjoeio-fix-csp
jsjoeio Sep 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/ranger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ labels:
"squash when passing": merge
"rebase when passing": merge
"merge when passing": merge
stale:
action: close
delay: 7 days
comment: "⚠️ This issue has been marked stale and will automatically be closed in $DELAY."
"new contributor":
action: comment
delay: 5s
Expand Down
12 changes: 12 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 180
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 5
# Label to apply when stale.
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no activity occurs in the next 5 days.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ jobs:
uses: actions/checkout@v2
- name: Run Trivy vulnerability scanner in repo mode
#Commit SHA for v0.0.17
uses: aquasecurity/trivy-action@9438b49cc3156b2e8c77c1ba8ffbaa3bae24e3c2
uses: aquasecurity/trivy-action@8eccb5539730451af599c84f444c6d6cf0fc2bb0
with:
scan-type: "fs"
scan-ref: "."
Expand Down
94 changes: 94 additions & 0 deletions .github/workflows/docs-preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Docs preview

on:
pull_request:
branches:
- main

permissions:
actions: none
checks: none
contents: read
deployments: none
issues: none
packages: none
pull-requests: write
repository-projects: none
security-events: none
statuses: none

jobs:
preview:
name: Docs preview
runs-on: ubuntu-20.04
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1

- name: Checkout m
uses: actions/checkout@v2
with:
repository: cdr/m
ref: refs/heads/master
token: ${{ secrets.GH_ACCESS_TOKEN }}
submodules: true
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 12.x

- name: Cache Node Modules
uses: actions/cache@v2
with:
path: "/node_modules"
key: node-${{ hashFiles('yarn.lock') }}

- name: Create Deployment
id: deployment
run: ./ci/scripts/github_deployment.sh create
env:
GITHUB_TOKEN: ${{ github.token }}
DEPLOY_ENVIRONMENT: codercom-preview-docs

- name: Deploy Preview to Vercel
id: preview
run: ./ci/scripts/deploy_vercel.sh
env:
VERCEL_ORG_ID: team_tGkWfhEGGelkkqUUm9nXq17r
VERCEL_PROJECT_ID: QmZRucMRh3GFk1817ZgXjRVuw5fhTspHPHKct3JNQDEPGd
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
CODE_SERVER_DOCS_MAIN_BRANCH: ${{ github.event.pull_request.head.sha }}

- name: Install node_modules
run: yarn install

- name: Check docs
run: yarn ts-node ./product/coder.com/site/scripts/checkDocs.ts
env:
BASE_URL: ${{ steps.preview.outputs.url }}

- name: Update Deployment
# If we don't specify always, it won't run this check if failed.
# This means the deployment would be stuck pending.
if: always()
run: ./ci/scripts/github_deployment.sh update
env:
GITHUB_DEPLOYMENT: ${{ steps.deployment.outputs.id }}
GITHUB_TOKEN: ${{ github.token }}
DEPLOY_STATUS: ${{ steps.preview.outcome }}
DEPLOY_URL: ${{ steps.preview.outputs.url }}

- name: Comment Credentials
uses: marocchino/sticky-pull-request-comment@v2
if: always()
with:
header: codercom-preview-docs
message: |
✨ Coder.com for PR #${{ github.event.number }} deployed! It will be updated on every commit.

* _Host_: ${{ steps.preview.outputs.url }}/docs/code-server
* _Last deploy status_: ${{ steps.preview.outcome }}
* _Commit_: ${{ github.event.pull_request.head.sha }}
* _Workflow status_: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
2 changes: 1 addition & 1 deletion ci/build/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ bundle_code_server() {
{
"commit": "$(git rev-parse HEAD)",
"scripts": {
"postinstall": "./postinstall.sh"
"postinstall": "bash ./postinstall.sh"
}
}
EOF
Expand Down
2 changes: 1 addition & 1 deletion ci/build/build-vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ main() {
cd "$(dirname "${0}")/../.."
cd lib/vscode

yarn gulp compile-build compile-extensions-build
yarn gulp compile-build compile-extensions-build compile-extension-media
yarn gulp optimize --gulpfile ./coder.js
if [[ $MINIFY ]]; then
yarn gulp minify --gulpfile ./coder.js
Expand Down
14 changes: 12 additions & 2 deletions ci/helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,18 @@ ingress:

# Optional additional arguments
extraArgs: []
# - --allow-http
# - --no-auth
# These are the arguments normally passed to code-server; run
# code-server --help for a list of available options.
#
# Each argument and parameter must have its own entry; if you use
# --param value on the command line, then enter it here as:
#
# - --param
# - value
#
# If you receive an error like "Unknown option --param value", it may be
# because both the parameter and value are specified as a single argument,
# rather than two separate arguments (e.g. "- --param value" on a line).

# Optional additional environment variables
extraVars: []
Expand Down
2 changes: 1 addition & 1 deletion ci/release-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:10
FROM debian:11

RUN apt-get update \
&& apt-get install -y \
Expand Down
5 changes: 4 additions & 1 deletion ci/release-image/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ group "default" {

target "code-server" {
dockerfile = "ci/release-image/Dockerfile"
tags = ["docker.io/codercom/code-server:${VERSION}"]
tags = [
"docker.io/codercom/code-server:latest",
notequal("latest",VERSION) ? "docker.io/codercom/code-server:${VERSION}" : "",
]
platforms = ["linux/amd64", "linux/arm64"]
}
4 changes: 4 additions & 0 deletions ci/steps/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ main() {
download_artifact npm-package ./release-npm-package
# https://github.com/actions/upload-artifact/issues/38
tar -xzf release-npm-package/package.tar.gz

# Ignore symlink when publishing npm package
# See: https://github.com/cdr/code-server/pull/3935
echo "node_modules.asar" > release/.npmignore
yarn publish --non-interactive release
}

Expand Down
8 changes: 8 additions & 0 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
- [What's the difference between code-server and VS Code Codespaces?](#whats-the-difference-between-code-server-and-vs-code-codespaces)
- [Does code-server have any security login validation?](#does-code-server-have-any-security-login-validation)
- [Are there community projects involving code-server?](#are-there-community-projects-involving-code-server)
- [How do I change the port?](#how-do-i-change-the-port)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

Expand Down Expand Up @@ -399,3 +400,10 @@ minute plus an additional twelve per hour.
Visit the [awesome-code-server](https://github.com/cdr/awesome-code-server)
repository to view community projects and guides with code-server! Feel free to
add your own!

## How do I change the port?

There are two ways to change the port on which code-server runs:

1. with an environment variable e.g. `PORT=3000 code-server`
2. using the flag `--bind-addr` e.g. `code-server --bind-addr localhost:3000`
15 changes: 15 additions & 0 deletions docs/MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
- [Changelog](#changelog)
- [Releases](#releases)
- [Publishing a release](#publishing-a-release)
- [Documentation](#documentation)
- [Troubleshooting](#troubleshooting)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

Expand Down Expand Up @@ -156,3 +158,16 @@ If you're the current release manager, follow these steps:
1. Update the AUR package. Instructions for updating the AUR package are at
[cdr/code-server-aur](https://github.com/cdr/code-server-aur).
1. Wait for the npm package to be published.

## Documentation

### Troubleshooting

Our docs are hosted on [Vercel](https://vercel.com/). Vercel only shows logs in realtime, which means you need to have the logs open in one tab and reproduce your error in another tab. Since our logs are private to Coder the organization, you can only follow these steps if you're a Coder employee. Ask a maintainer for help if you need it.

Taking a real scenario, let's say you wanted to troubleshoot [this docs change](https://github.com/cdr/code-server/pull/4042). Here is how you would do it:

1. Go to https://vercel.com/codercom/codercom
2. Click "View Function Logs"
3. In a separate tab, open the preview link from github-actions-bot
4. Now look at the function logs and see if there are errors in the logs
10 changes: 5 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ There are three ways to get started:
automates most of the process. The script uses the system package manager if
possible.
2. Manually [installing
code-server](https://coder.com/docs/code-server/v3.11.1/install)
code-server](https://coder.com/docs/code-server/latest/install)
3. Using our one-click buttons and guides to [deploy code-server to a cloud
provider](https://github.com/cdr/deploy-code-server) ⚡

Expand All @@ -51,20 +51,20 @@ When done, the install script prints out instructions for running and starting
code-server.

We also have an in-depth [setup and
configuration](https://coder.com/docs/code-server/v3.11.1/guide) guide.
configuration](https://coder.com/docs/code-server/latest/guide) guide.

## TLS and authentication (beta)

To add TLS and authentication out of the box, use [code-server --link](https://coder.com/docs/code-server/v3.11.0/link).
To add TLS and authentication out of the box, use [code-server --link](https://coder.com/docs/code-server/latest/link).

## Questions?

See answers to [frequently asked
questions](https://coder.com/docs/code-server/v3.11.1/FAQ).
questions](https://coder.com/docs/code-server/latest/FAQ).

## Want to help?

See [Contributing](https://coder.com/docs/code-server/v3.11.1/CONTRIBUTING) for
See [Contributing](https://coder.com/docs/code-server/latest/CONTRIBUTING) for
details.

## Hiring
Expand Down
Binary file modified docs/assets/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading