Skip to content

Commit

Permalink
Merge pull request #7 from mcornell/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwhite3 authored Oct 6, 2023
2 parents 0c328f4 + 127ca78 commit 555312d
Showing 1 changed file with 47 additions and 3 deletions.
50 changes: 47 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,67 @@
FROM ghcr.io/jpwhite3/polyglot:latest


# CODER Installation
ENV CODER_VERSION 4.17.1
RUN \
mkdir -p /config/data /config/workspace \
&& curl -fOL https://github.com/cdr/code-server/releases/download/v${CODER_VERSION}/code-server_${CODER_VERSION}_amd64.deb \
&& sudo dpkg -i code-server_${CODER_VERSION}_amd64.deb

# Fetch VSCode extensions
ENV VSCODE_DOTNET_RUNTIME_VERSION 1.8.0
ENV VSCODE_CSHARP_VERSION 2.5.30
ENV VSCODE_INTELLICODE 1.2.30
ENV VSCODE_INTELLICODE_CSHARP 0.1.26
ENV VSCODE_CSHARP_DEV_KIT 0.5.150
ENV REDHAT_JAVA 1.24.2023100504
ENV VSCODE_JAVA_DEBUG 0.54.2023092623
ENV VSCODE_JAVA_TEST 0.40.0
ENV VSCODE_MAVEN 0.42.2023092603
ENV VSCODE_JAVA_DEP 0.23.2023080400
ENV VSCODE_JAVA_PACK 0.25.2023092206
ENV VSCODE_PYTHON 2023.19.12781014
ENV VSCODE_PYLANCE 2023.19.12781014
RUN \
curl -o /tmp/vscode-dotnet-runtime-${VSCODE_DOTNET_RUNTIME_VERSION}.vsix -fL https://coder-extensions.s3.amazonaws.com/ms-dotnettools.vscode-dotnet-runtime-${VSCODE_DOTNET_RUNTIME_VERSION}.vsix \
&& curl -o /tmp/csharp-${VSCODE_CSHARP_VERSION}.vsix -fL https://coder-extensions.s3.amazonaws.com/ms-dotnettools.csharp-${VSCODE_CSHARP_VERSION}%40linux-x64.vsix \
&& curl -o /tmp/intellicode-${VSCODE_INTELLICODE}.vsix https://coder-extensions.s3.amazonaws.com/VisualStudioExptTeam.vscodeintellicode-${VSCODE_INTELLICODE}.vsix \
&& curl -o /tmp/intellicode-csharp-${VSCODE_INTELLICODE_CSHARP}.vsix -fL https://coder-extensions.s3.amazonaws.com/ms-dotnettools.vscodeintellicode-csharp-${VSCODE_INTELLICODE_CSHARP}%40linux-x64.vsix \
&& curl -o /tmp/csharp-dev-kit-${VSCODE_CSHARP_DEV_KIT}.vsix -fL https://coder-extensions.s3.amazonaws.com/ms-dotnettools.csdevkit-${VSCODE_CSHARP_DEV_KIT}%40linux-x64.vsix \
&& curl -o /tmp/redhat-java-${REDHAT_JAVA}.vsix -fL https://coder-extensions.s3.amazonaws.com/redhat.java-${REDHAT_JAVA}%40linux-x64.vsix \
&& curl -o /tmp/vscode-java-debug-${VSCODE_JAVA_DEBUG}.vsix -fL https://coder-extensions.s3.amazonaws.com/vscjava.vscode-java-debug-${VSCODE_JAVA_DEBUG}.vsix \
&& curl -o /tmp/vscode-java-test-${VSCODE_JAVA_TEST}.vsix -fL https://coder-extensions.s3.amazonaws.com/vscjava.vscode-java-test-${VSCODE_JAVA_TEST}.vsix \
&& curl -o /tmp/vscode-maven-${VSCODE_MAVEN}.vsix -fL https://coder-extensions.s3.amazonaws.com/vscjava.vscode-maven-${VSCODE_MAVEN}.vsix \
&& curl -o /tmp/vscode-java-dependency-${VSCODE_JAVA_DEP}.vsix -fL https://coder-extensions.s3.amazonaws.com/vscjava.vscode-java-dependency-${VSCODE_JAVA_DEP}.vsix \
&& curl -o /tmp/vscode-java-pack-${VSCODE_JAVA_PACK}.vsix -fL https://coder-extensions.s3.amazonaws.com/vscjava.vscode-java-pack-${VSCODE_JAVA_PACK}.vsix \
&& curl -o /tmp/vscode-python-${VSCODE_PYTHON}.vsix -fL https://coder-extensions.s3.amazonaws.com/ms-python.python-${VSCODE_PYTHON}.vsix \
&& curl -o /tmp/vscode-pylance-${VSCODE_PYLANCE}.vsix-fL https://coder-extensions.s3.amazonaws.com/ms-python.vscode-pylance-${VSCODE_PYLANCE}.vsix

RUN \
code-server --verbose --install-extension /tmp/vscode-dotnet-runtime-${VSCODE_DOTNET_RUNTIME_VERSION}.vsix \
&& code-server --verbose --install-extension /tmp/csharp-${VSCODE_CSHARP_VERSION}.vsix \
&& code-server --verbose --install-extension /tmp/intellicode-${VSCODE_INTELLICODE}.vsix \
&& code-server --verbose --install-extension /tmp/intellicode-csharp-${VSCODE_INTELLICODE_CSHARP}.vsix \
&& code-server --verbose --install-extension /tmp/csharp-dev-kit-${VSCODE_CSHARP_DEV_KIT}.vsix \
&& code-server --verbose --install-extension /tmp/redhat-java-${REDHAT_JAVA}.vsix \
&& code-server --verbose --install-extension /tmp/vscode-java-debug-${VSCODE_JAVA_DEBUG}.vsix \
&& code-server --verbose --install-extension /tmp/vscode-java-test-${VSCODE_JAVA_TEST}.vsix \
&& code-server --verbose --install-extension /tmp/vscode-maven-${VSCODE_MAVEN}.vsix \
&& code-server --verbose --install-extension /tmp/vscode-java-dependency-${VSCODE_JAVA_DEP}.vsix \
&& code-server --verbose --install-extension /tmp/vscode-java-pack-${VSCODE_JAVA_PACK}.vsix \
&& code-server --verbose --install-extension /tmp/vscode-python-${VSCODE_PYTHON}.vsix \
&& code-server --verbose --install-extension /tmp/vscode-python-${VSCODE_PYLANCE}.vsix \
&& rm -rf /tmp/vscode*


# Install VSCode extentions
RUN \
code-server --install-extension eamodio.gitlens \
&& code-server --install-extension mhutchie.git-graph \
&& code-server --install-extension ms-python.python \
&& code-server --install-extension LittleFoxTeam.vscode-python-test-adapter \
&& code-server --install-extension golang.go \
&& code-server --install-extension dbaeumer.vscode-eslint \
&& code-server --install-extension vscjava.vscode-java-pack \
&& code-server --install-extension richardwillis.vscode-gradle \
&& code-server --install-extension muhammad-sammy.csharp \
&& code-server --install-extension redhat.vscode-yaml \
&& code-server --install-extension hbenl.vscode-mocha-test-adapter \
&& code-server --install-extension kavod-io.vscode-jest-test-adapter \
Expand Down

0 comments on commit 555312d

Please sign in to comment.