Giter VIP home page Giter VIP logo

dl-vscode-server's Introduction

DL VS Code Server

This script downloads a tar of VS Code Server/CLI, then extracts it to a location expected by tunnels made by VS Code clients.

The intention of this script is to pre-install the VS Code binary during container image build. This helps ensure, in certain scenarios, that the binary is there when internet is not; while still allowing your VS Code client to tunnel to the container.

When the VS Code binary is out-of-date, to get the latest version, re-run the script.

Background

The original reason was and still is to prevent the constant download and install of VS Code server when the container is removed then run again later. With the server being embedded in the image, it should also reduce time for the dev container to be ready.

It originally started as a Gist; which you can review previous versions of the script at b01/download-vs-code-server.sh

Status

CircleCI

How To Install

Shell

curl -L https://raw.githubusercontent.com/b01/dl-vscode-server/main/download-vs-code-server.sh | bash -s -- "linux"

Docker

ADD --chmod=777 \
    https://raw.githubusercontent.com/b01/dl-vscode-server/updates-2024-05-16-01/download-vs-code.sh \
    .

# Install VS Code Server and Requirements
RUN ./download-vs-code.sh "linux" "x64" --alpine

How To Use

download-vs-code.sh [options] <PLATFORM> [<ARCH>]

Example:

download-vs-code.sh "linux" "x64" --alpine

Options

--insider Switches to the pre-released version of the binary chosen (server or CLI).

--dump-sha Will print the latest commit sha for VS Code (server and CLI are current synced and always the same)

--cli Switches the binary download VS Code CLI.

--alpine Only works when downloading VS Code Server, it will force PLATFORM=linux and ARCH=alpine, as the developers deviated from the standard format used for all others.

-h, --help Print this usage info


dl-vscode-server's People

Contributors

b01 avatar jinfish avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.