Skip to content

Commit 015b8dc

Browse files
committed
Merge branch 'ensure-release' into restructure
2 parents 76831f1 + 9f32403 commit 015b8dc

File tree

9 files changed

+89
-22
lines changed

9 files changed

+89
-22
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**
2+
!release

.editorconfig

-6
This file was deleted.

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: minimal
33
jobs:
44
include:
55
- name: Test
6+
if: tag IS blank
67
script: ./ci/image/run.sh "yarn && yarn vscode && ./ci/ci.sh"
78
deploy: null
89
- name: Linux Release

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ Use [sshcode](https://github.com/codercom/sshcode) for a simple setup.
4444
2. Unpack the downloaded file then run the binary.
4545
3. In your browser navigate to `localhost:8080`.
4646

47-
- For self-hosting and other information see [doc/quickstart.md](doc/quickstart.md).
48-
- For hosting on cloud platforms see [doc/deploy.md](doc/deploy.md).
49-
5047
## FAQ
5148

5249
See [./doc/FAQ.md](./doc/FAQ.md).

ci/release-image/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ RUN rm -rf /var/lib/apt/lists/*
3333
EXPOSE 8080
3434
USER coder
3535
WORKDIR /home/coder
36-
ENTRYPOINT ["dumb-init", "fixuid", "-q", "code-server", "--host=0.0.0.0", "--auth=none"]
36+
ENTRYPOINT ["dumb-init", "fixuid", "-q", "code-server", "--host", "0.0.0.0", "."]

ci/release-image/push.sh

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@ set -euo pipefail
44

55
main() {
66
cd "$(dirname "$0")/../.."
7-
soruce ./ci/lib.sh
7+
source ./ci/lib.sh
88
set_version
99

1010
if [[ ${CI:-} ]]; then
1111
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
1212
fi
1313

1414
imageTag="codercom/code-server:$VERSION"
15-
latest="codercom/code-server:latest"
16-
if [[ $TRAVIS_CPU_ARCH == "arm64" ]]; then
15+
if [[ ${TRAVIS_CPU_ARCH:-} == "arm64" ]]; then
1716
imageTag+="-arm64"
18-
latest="codercom/code-server:arm64"
1917
fi
20-
docker build -t "$imageTag" -t "$latest" -f ./ci/release-image/Dockerfile
18+
docker build -t "$imageTag" -f ./ci/release-image/Dockerfile .
2119
docker push codercom/code-server
2220
}
2321

ci/release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ function main() {
3535
for binary in code-server*; do
3636
mkdir -p "../binary-upload"
3737

38-
local prefix="code-server-$code_server_version-"
38+
local prefix="code-server-$VERSION-"
3939
local target="${binary#$prefix}"
4040
if [[ $target == "linux-x86_64" ]]; then
4141
echo "Copying $binary to ../binary-upload/latest-linux"
4242
cp "$binary" "../binary-upload/latest-linux"
4343
fi
4444

4545
local gcp_dir
46-
gcp_dir="../binary-upload/releases/$code_server_version/$target"
46+
gcp_dir="../binary-upload/releases/$VERSION/$target"
4747
mkdir -p "$gcp_dir"
4848

4949
echo "Copying $binary to $gcp_dir/code-server"

doc/FAQ.md

+56-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11
# FAQ
22

3+
## Questions?
4+
5+
Please file all questions and support requests at https://www.reddit.com/r/codeserver/
6+
The issue tracker is only for bugs.
7+
38
## What's the deal with extensions?
49

5-
Unfortunately, the Microsoft VS Code Marketplace is
10+
Unfortunately, the Microsoft VS Code Marketplace license prohibits use with any non Microsoft
11+
product.
12+
13+
See https://cdn.vsassets.io/v/M146_20190123.39/_content/Microsoft-Visual-Studio-Marketplace-Terms-of-Use.pdf
14+
15+
> Marketplace Offerings are intended for use only with Visual Studio Products and Services
16+
> and you may only install and use Marketplace Offerings with Visual Studio Products and Services.
17+
18+
As a result, Coder has created its own marketplace for open source extensions. It works by scraping
19+
GitHub for VS Code extensions and building them. It's not perfect but getting better by the day with
20+
more and more extensions.
21+
22+
Issue [https://github.com/cdr/code-server/issues/1299](#1299) is a big one in making the experience here
23+
better by allowing the community to submit extensions and repos to avoid waiting until the scraper finds
24+
an extension.
25+
26+
If an extension does not work, try to grab its VSIX from its Github releases or build it yourself and
27+
copy it to the extensions folder.
628

729
## How is this different from VS Code Online?
830

@@ -34,16 +56,45 @@ only to HTTP requests.
3456
You can use [Let's Encrypt](https://letsencrypt.org/) to get an SSL certificate
3557
for free.
3658

37-
## Why are there x86 releases?
59+
## x86 releases?
60+
61+
node has dropped support for x86 and so we decided to as well. See
62+
[nodejs/build/issues/885](https://github.com/nodejs/build/issues/885).
3863

39-
32 bit releases have been
64+
## Alpine builds?
65+
66+
Just install `libc-dev` and code-server should work.
4067

4168
## Multi Tenancy
4269

43-
If you want to run multiple code-server's on shared infrastructure, we recommend using
44-
something like kubernetes and the code-server docker image.
70+
If you want to run multiple code-server's on shared infrastructure, we recommend using virtual
71+
machines with a VM per user. This will easily allow users to run a docker daemon. If you want
72+
to use kubernetes, you'll definitely want to use [kubevirt](https://kubevirt.io) to give each
73+
user a virtual machine instead of just a container. Docker in docker while supported requires
74+
privileged containers which are a security risk in a multi tenant infrastructure.
75+
76+
## Docker in code-server docker container?
77+
78+
If you'd like to access docker inside of code-server, we'd recommend running a docker:dind container
79+
and mounting in a /var/run directory to share between that and the code-server container. Install
80+
the docker CLI in the code-server container and you should be able to access the daemon.
81+
82+
In order to make volume mounts work, mount the home directory in the code-server container and the
83+
dind container at the same path. i.e you'd volume mount a directory from the host to `/home/coder`
84+
on both. This will allow any volume mounts in the home directory to work. Similar process
85+
to make volume mounts in any other directory work.
86+
87+
## Collaboration
88+
89+
At the moment we have no plans for multi user collaboration on code-server but we understand this
90+
is a heavily requested feature and will work on it when the time is right.
4591

4692
## How can I disable telemetry?
4793

4894
Use the `--disable-telemetry` flag to completely disable telemetry. We use the
4995
data collected only to improve code-server.
96+
97+
## Enterprise
98+
99+
Visit [our enterprise page](https://coder.com) for more information about our
100+
enterprise offerings.

doc/assets/droplet.svg

+24
Loading

0 commit comments

Comments
 (0)