Sign inSign up

techthinkerorg/vscode-ide

By techthinkerorg

Updated about 2 years ago

Web-based VSCode IDE: Compatible, accessible, extensible.

Image
Developer tools
Web servers
2

2.0K

techthinkerorg/vscode-ide repository overview

VSCode IDE

Introducing a web-based rendition of Visual Studio Code:

  • Seamlessly compatible with your current VSCode configurations.
  • Operates within the web environment, ensuring exceptional accessibility.
  • Offers extensive support for a diverse array of extensions.
  • Offers isolated docker environment supported.
  • Simple port forwarding option to access the running port for development.

Installation

  • docker-compose.yaml
version: "3"

services:
  web_vscode:
    container_name: web_vscode
    image: techthinkerorg/vscode-ide:latest
    privileged: true
    env_file: .env
    volumes:
      -  ./vscode-data:/home/developer/workspace
    ports:
      - "3000:3000"
      - "2375:2375"
    networks:
      - vscode_net

networks:
  vscode_net:
  • .env file
PASSWORD=123456
VSCODE_PROXY_URI=https://{{port}}.example.com
  • Run: docker-compose up -d

Environment

  • PASSWORD will be your login password of VSCode IDE.
  • For subdomain based port forwarding VSCODE_PROXY_URI=https://{{port}}.example.com
  • If you don't have subdomain, then you can use path base port forwarding VSCODE_PROXY_URI=https://example.com/proxy/{{port}}
  • Or for local host use VSCODE_PROXY_URI=http://localhost:3000/proxy/{{port}}

Using Dockerfile

Using docker file you can customized the image, even you can add shell script that will execute at the beginning. Don't need to add ENTRYPOINT statement. If you upload your any script to /entrypoint.sh then it will execute. Here is a example of installing golang in this image.

FROM techthinkerorg/vscode-ide:4.23.1
LABEL MAINTAINER Asif Mohammad Mollah

ARG ARCH=amd64
RUN dpkgArch="$(dpkg --print-architecture)" \
    && case "${dpkgArch##*-}" in \
        amd64) ARCH='amd64';; \
        arm64) ARCH='arm64';; \
        *) ARCH='amd64';; \
    esac \
    && echo "Downloading Go for architecture: $ARCH"

# Download the Go binary distribution based on the architecture
RUN sudo apt-get update && \
    sudo apt-get install -y wget && \
    sudo wget -O go.tar.gz https://golang.org/dl/go1.22.3.linux-$ARCH.tar.gz

RUN sudo tar -C /usr/local -xzf go.tar.gz
RUN sudo rm go.tar.gz

# Add Go binary directory to the PATH environment variable

ENV GOPATH=$HOME/go
ENV GOROOT=/usr/local/go
ENV GOBIN=$GOPATH/bin
ENV PATH=$PATH:$GOPATH
ENV PATH=$PATH:$GOROOT/bin
ENV PATH=$PATH:$GOBIN


# Verify the installation
RUN go version

# If you want entry point script then just add this line
COPY my-script.sh /entrypoint.sh

It will create docker container with built in Golang installation.

Tag summary

Content type

Image

Digest

sha256:1ed6e9369

Size

601.6 MB

Last updated

about 2 years ago

docker pull techthinkerorg/vscode-ide