| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,7 @@ For a full setup and walkthrough, please see [./doc/guide.md](./doc/guide.md). | |||
| 18 | 18 | ### Debian, Ubuntu | |
| 19 | 19 | ||
| 20 | 20 | ```bash | |
| 21 | - curl -OL https://github.com/cdr/code-server/releases/download/v3.3.1/code-server_3.3.1_amd64.deb | ||
| 21 | + curl -fOL https://github.com/cdr/code-server/releases/download/v3.3.1/code-server_3.3.1_amd64.deb | ||
| 22 | 22 | sudo dpkg -i code-server_3.3.1_amd64.deb | |
| 23 | 23 | systemctl --user enable --now code-server | |
| 24 | 24 | # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml | |
@@ -27,7 +27,7 @@ systemctl --user enable --now code-server | |||
| 27 | 27 | ### Fedora, CentOS, Red Hat, SUSE | |
| 28 | 28 | ||
| 29 | 29 | ```bash | |
| 30 | - curl -OL https://github.com/cdr/code-server/releases/download/v3.3.1/code-server-3.3.1-amd64.rpm | ||
| 30 | + curl -fOL https://github.com/cdr/code-server/releases/download/v3.3.1/code-server-3.3.1-amd64.rpm | ||
| 31 | 31 | sudo rpm -i code-server-3.3.1-amd64.rpm | |
| 32 | 32 | systemctl --user enable --now code-server | |
| 33 | 33 | # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml | |
@@ -102,10 +102,10 @@ Add the code-server `bin` directory to your `$PATH` to easily execute `code-serv | |||
| 102 | 102 | Here is an example script for installing and using a static `code-server` release on Linux: | |
| 103 | 103 | ||
| 104 | 104 | ```bash | |
| 105 | - curl -L https://github.com/cdr/code-server/releases/download/v3.3.1/code-server-3.3.1-linux-amd64.tar.gz \ | ||
| 106 | - | sudo tar -C /usr/local -xz | ||
| 107 | - sudo mv /usr/local/code-server-3.3.1-linux-amd64 /usr/local/code-server-3.3.1 | ||
| 108 | - PATH="/usr/local/code-server-3.3.1/bin:$PATH" | ||
| 105 | + curl -fL https://github.com/cdr/code-server/releases/download/v3.3.1/code-server-3.3.1-linux-amd64.tar.gz \ | ||
| 106 | + | sudo tar -C /usr/local/lib -xz | ||
| 107 | + sudo mv /usr/local/lib/code-server-3.3.1-linux-amd64 /usr/local/lib/code-server-3.3.1 | ||
| 108 | + PATH="/usr/local/lib/code-server-3.3.1/bin:$PATH" | ||
| 109 | 109 | code-server | |
| 110 | 110 | # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml | |
| 111 | 111 | ``` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,10 @@ Any file or directory in this subdirectory should be documented here. | |||
| 14 | 14 | ||
| 15 | 15 | Make sure you have `$GITHUB_TOKEN` set and [hub](https://github.com/github/hub) installed. | |
| 16 | 16 | ||
| 17 | - 1. Update the version of code-server in `package.json` and README.md/guide.md install examples and make a PR. | ||
| 17 | + 1. Update the version of code-server and make a PR. | ||
| 18 | + 1. Update in `package.json` | ||
| 19 | + 2. [README.md](../README.md) and [guide.md](../doc/guide.md) install examples | ||
| 20 | + 3. [install.sh](../install.sh) | ||
| 18 | 21 | 2. GitHub actions will generate the `npm-package`, `release-packages` and `release-images` artifacts. | |
| 19 | 22 | 3. Run `yarn release:github-draft` to create a GitHub draft release from the template with | |
| 20 | 23 | the updated version. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,11 +6,11 @@ RUN apt-get update | |||
| 6 | 6 | RUN apt-get install -y curl gnupg | |
| 7 | 7 | ||
| 8 | 8 | # Installs node. | |
| 9 | - RUN curl -sSL https://deb.nodesource.com/setup_14.x | bash - && \ | ||
| 9 | + RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \ | ||
| 10 | 10 | apt-get install -y nodejs | |
| 11 | 11 | ||
| 12 | 12 | # Installs yarn. | |
| 13 | - RUN curl -sSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | ||
| 13 | + RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | ||
| 14 | 14 | echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ | |
| 15 | 15 | apt-get update && apt-get install -y yarn | |
| 16 | 16 | ||
@@ -28,23 +28,23 @@ RUN apt-get install -y git rsync unzip | |||
| 28 | 28 | ||
| 29 | 29 | # We need latest jq from debian buster for date support. | |
| 30 | 30 | RUN ARCH="$(dpkg --print-architecture)" && \ | |
| 31 | - curl -sSOL http://http.us.debian.org/debian/pool/main/libo/libonig/libonig5_6.9.1-1_$ARCH.deb && \ | ||
| 31 | + curl -fsSOL http://http.us.debian.org/debian/pool/main/libo/libonig/libonig5_6.9.1-1_$ARCH.deb && \ | ||
| 32 | 32 | dpkg -i libonig*.deb && \ | |
| 33 | - curl -sSOL http://http.us.debian.org/debian/pool/main/j/jq/libjq1_1.5+dfsg-2+b1_$ARCH.deb && \ | ||
| 33 | + curl -fsSOL http://http.us.debian.org/debian/pool/main/j/jq/libjq1_1.5+dfsg-2+b1_$ARCH.deb && \ | ||
| 34 | 34 | dpkg -i libjq*.deb && \ | |
| 35 | - curl -sSOL http://http.us.debian.org/debian/pool/main/j/jq/jq_1.5+dfsg-2+b1_$ARCH.deb && \ | ||
| 35 | + curl -fsSOL http://http.us.debian.org/debian/pool/main/j/jq/jq_1.5+dfsg-2+b1_$ARCH.deb && \ | ||
| 36 | 36 | dpkg -i jq*.deb && rm *.deb | |
| 37 | 37 | ||
| 38 | 38 | # Installs shellcheck. | |
| 39 | 39 | # Unfortunately coredumps on debian:8 so disabled for now. | |
| 40 | - #RUN curl -sSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \ | ||
| 40 | + #RUN curl -fsSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \ | ||
| 41 | 41 | # tar -xJ && \ | |
| 42 | 42 | # mv shellcheck*/shellcheck /usr/local/bin && \ | |
| 43 | 43 | # rm -R shellcheck* | |
| 44 | 44 | ||
| 45 | 45 | # Install Go dependencies | |
| 46 | 46 | RUN ARCH="$(dpkg --print-architecture)" && \ | |
| 47 | - curl -sSL "https://dl.google.com/go/go1.14.3.linux-$ARCH.tar.gz" | tar -C /usr/local -xz | ||
| 47 | + curl -fsSL "https://dl.google.com/go/go1.14.3.linux-$ARCH.tar.gz" | tar -C /usr/local -xz | ||
| 48 | 48 | ENV PATH=/usr/local/go/bin:/root/go/bin:$PATH | |
| 49 | 49 | ENV GO111MODULE=on | |
| 50 | 50 | RUN go get mvdan.cc/sh/v3/cmd/shfmt | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,11 +6,11 @@ RUN apt-get update | |||
| 6 | 6 | RUN apt-get install -y curl gnupg | |
| 7 | 7 | ||
| 8 | 8 | # Installs node. | |
| 9 | - RUN curl -sSL https://deb.nodesource.com/setup_14.x | bash - && \ | ||
| 9 | + RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \ | ||
| 10 | 10 | apt-get install -y nodejs | |
| 11 | 11 | ||
| 12 | 12 | # Installs yarn. | |
| 13 | - RUN curl -sSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | ||
| 13 | + RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | ||
| 14 | 14 | echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ | |
| 15 | 15 | apt-get update && apt-get install -y yarn | |
| 16 | 16 | ||
@@ -24,27 +24,27 @@ RUN apt-get install -y build-essential \ | |||
| 24 | 24 | RUN apt-get install -y gettext-base | |
| 25 | 25 | ||
| 26 | 26 | # Misc build dependencies. | |
| 27 | - RUN apt-get install -y git rsync | ||
| 27 | + RUN apt-get install -y git rsync unzip | ||
| 28 | 28 | ||
| 29 | 29 | # We need latest jq from debian buster for date support. | |
| 30 | 30 | RUN ARCH="$(dpkg --print-architecture)" && \ | |
| 31 | - curl -sSOL http://http.us.debian.org/debian/pool/main/libo/libonig/libonig5_6.9.1-1_$ARCH.deb && \ | ||
| 31 | + curl -fsSOL http://http.us.debian.org/debian/pool/main/libo/libonig/libonig5_6.9.1-1_$ARCH.deb && \ | ||
| 32 | 32 | dpkg -i libonig*.deb && \ | |
| 33 | - curl -sSOL http://http.us.debian.org/debian/pool/main/j/jq/libjq1_1.5+dfsg-2+b1_$ARCH.deb && \ | ||
| 33 | + curl -fsSOL http://http.us.debian.org/debian/pool/main/j/jq/libjq1_1.5+dfsg-2+b1_$ARCH.deb && \ | ||
| 34 | 34 | dpkg -i libjq*.deb && \ | |
| 35 | - curl -sSOL http://http.us.debian.org/debian/pool/main/j/jq/jq_1.5+dfsg-2+b1_$ARCH.deb && \ | ||
| 35 | + curl -fsSOL http://http.us.debian.org/debian/pool/main/j/jq/jq_1.5+dfsg-2+b1_$ARCH.deb && \ | ||
| 36 | 36 | dpkg -i jq*.deb && rm *.deb | |
| 37 | 37 | ||
| 38 | 38 | # Installs shellcheck. | |
| 39 | 39 | # Unfortunately coredumps on debian:8 so disabled for now. | |
| 40 | - #RUN curl -sSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \ | ||
| 40 | + #RUN curl -fsSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \ | ||
| 41 | 41 | # tar -xJ && \ | |
| 42 | 42 | # mv shellcheck*/shellcheck /usr/local/bin && \ | |
| 43 | 43 | # rm -R shellcheck* | |
| 44 | 44 | ||
| 45 | 45 | # Install Go dependencies | |
| 46 | 46 | RUN ARCH="$(dpkg --print-architecture)" && \ | |
| 47 | - curl -sSL "https://dl.google.com/go/go1.14.3.linux-$ARCH.tar.gz" | tar -C /usr/local -xz | ||
| 47 | + curl -fsSL "https://dl.google.com/go/go1.14.3.linux-$ARCH.tar.gz" | tar -C /usr/local -xz | ||
| 48 | 48 | ENV PATH=/usr/local/go/bin:/root/go/bin:$PATH | |
| 49 | 49 | ENV GO111MODULE=on | |
| 50 | 50 | RUN go get mvdan.cc/sh/v3/cmd/shfmt | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ main() { | |||
| 9 | 9 | tsc --noEmit | |
| 10 | 10 | # See comment in ./ci/container/Dockerfile | |
| 11 | 11 | if [[ ! ${CI-} ]]; then | |
| 12 | - shellcheck -e SC2046,SC2164,SC2154 $(git ls-files "*.sh") | ||
| 12 | + shellcheck -e SC2046,SC2164,SC2154,SC1091 $(git ls-files "*.sh") | ||
| 13 | 13 | fi | |
| 14 | 14 | } | |
| 15 | 15 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,14 +56,14 @@ curl() { | |||
| 56 | 56 | # This will contain the artifacts we want. | |
| 57 | 57 | # https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs | |
| 58 | 58 | get_artifacts_url() { | |
| 59 | - curl -sSL 'https://api.github.com/repos/cdr/code-server/actions/workflows/ci.yaml/runs?status=success&event=push' | jq -r ".workflow_runs[] | select(.head_sha == \"$(git rev-parse HEAD)\") | .artifacts_url" | head -n 1 | ||
| 59 | + curl -fsSL 'https://api.github.com/repos/cdr/code-server/actions/workflows/ci.yaml/runs?status=success&event=push' | jq -r ".workflow_runs[] | select(.head_sha == \"$(git rev-parse HEAD)\") | .artifacts_url" | head -n 1 | ||
| 60 | 60 | } | |
| 61 | 61 | ||
| 62 | 62 | # Grabs the artifact's download url. | |
| 63 | 63 | # https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts | |
| 64 | 64 | get_artifact_url() { | |
| 65 | 65 | local artifact_name="$1" | |
| 66 | - curl -sSL "$(get_artifacts_url)" | jq -r ".artifacts[] | select(.name == \"$artifact_name\") | .archive_download_url" | head -n 1 | ||
| 66 | + curl -fsSL "$(get_artifacts_url)" | jq -r ".artifacts[] | select(.name == \"$artifact_name\") | .archive_download_url" | head -n 1 | ||
| 67 | 67 | } | |
| 68 | 68 | ||
| 69 | 69 | # Uses the above two functions to download a artifact into a directory. | |
@@ -74,7 +74,7 @@ download_artifact() { | |||
| 74 | 74 | local tmp_file | |
| 75 | 75 | tmp_file="$(mktemp)" | |
| 76 | 76 | ||
| 77 | - curl -sSL "$(get_artifact_url "$artifact_name")" > "$tmp_file" | ||
| 77 | + curl -fsSL "$(get_artifact_url "$artifact_name")" > "$tmp_file" | ||
| 78 | 78 | unzip -q -o "$tmp_file" -d "$dst" | |
| 79 | 79 | rm "$tmp_file" | |
| 80 | 80 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,7 @@ RUN adduser --gecos '' --disabled-password coder && \ | |||
| 28 | 28 | echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd | |
| 29 | 29 | ||
| 30 | 30 | RUN ARCH="$(dpkg --print-architecture)" && \ | |
| 31 | - curl -sSL "https://github.com/boxboat/fixuid/releases/download/v0.4.1/fixuid-0.4.1-linux-$ARCH.tar.gz" | tar -C /usr/local/bin -xzf - && \ | ||
| 31 | + curl -fsSL "https://github.com/boxboat/fixuid/releases/download/v0.4.1/fixuid-0.4.1-linux-$ARCH.tar.gz" | tar -C /usr/local/bin -xzf - && \ | ||
| 32 | 32 | chown root:root /usr/local/bin/fixuid && \ | |
| 33 | 33 | chmod 4755 /usr/local/bin/fixuid && \ | |
| 34 | 34 | mkdir -p /etc/fixuid && \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -82,7 +82,7 @@ SSH into your instance and run the appropriate commands documented in [README.md | |||
| 82 | 82 | Assuming Debian: | |
| 83 | 83 | ||
| 84 | 84 | ```bash | |
| 85 | - curl -OL https://github.com/cdr/code-server/releases/download/v3.3.1/code-server_3.3.1_amd64.deb | ||
| 85 | + curl -fOL https://github.com/cdr/code-server/releases/download/v3.3.1/code-server_3.3.1_amd64.deb | ||
| 86 | 86 | sudo dpkg -i code-server_3.3.1_amd64.deb | |
| 87 | 87 | systemctl --user enable --now code-server | |
| 88 | 88 | # Now code-server is running at http://127.0.0.1:8080 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments