Skip to content
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

Git Integration - Update VS Code server #37

Open
lzMeMod opened this issue Nov 8, 2021 · 1 comment
Open

Git Integration - Update VS Code server #37

lzMeMod opened this issue Nov 8, 2021 · 1 comment

Comments

@lzMeMod
Copy link

lzMeMod commented Nov 8, 2021

I think an updated VS Code version would be really helpful because the current version is too old for a lot of plugins. I attached a Dockerfile with a config I verified to work with SAP Data Intelligence. Please note that this Dockerfile also includes a python 3.6 installation and the python VS Code plugin. It would be really nice if you cloud push the updated container to Docker Hub.

If you want to, I can also open a PR with the changes.

FROM ubuntu:18.04

RUN apt-get update && apt-get install -y \
	openssl \
	net-tools \
	git \
	locales \
	dumb-init \
	vim \
	curl \
	wget \
	python3.6 \
	&& rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
ENV LC_ALL=en_US.UTF-8 \
	SHELL=/bin/bash

RUN wget https://github.com/cdr/code-server/releases/download/v3.12.0/code-server-3.12.0-linux-amd64.tar.gz
RUN tar xvfz /code-server-3.12.0-linux-amd64.tar.gz

RUN groupadd -g 999 coder && \
    useradd -r -u 999 -g coder coder && \
    mkdir /home/coder && \
    chown coder:coder /home/coder

USER 999:999


EXPOSE 3000

ENV HOME /home/coder
ENV GIT_DISCOVERY_ACROSS_FILESYSTEM 1
RUN /code-server-3.12.0-linux-amd64/bin/code-server --install-extension ms-python.python

ENTRYPOINT ["dumb-init", "--"]
CMD ["bash", "-c", "exec /code-server-3.12.0-linux-amd64/bin/code-server --port 3000 --auth none /vhome"]
@caikn
Copy link

caikn commented Mar 15, 2023

You can find some updated docker images here:
https://hub.docker.com/repository/docker/kanyin/vsc-app/general

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants