question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building images with preinstalled extensions

See original GitHub issue

I’d like to build custom docker images based on this project with a number of extensions preinstalled during the image build process, e.g. for reproducible, versioned throwaway dev setups. It doesn’t seem to be possible to do this using code --install-extension, as that crashes with Missing VSCODE_IPC_HOOK_CLI.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:12
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
michaellilltokiwacommented, Oct 5, 2021

Possible workaround is to extract the vsix to the extensions directory directly like so:

FROM gitpod/openvscode-server:latest
USER root

RUN apt-get update && apt-get -y install zip
COPY fuzion-lang-0.1.0.vsix /home/
RUN mkdir /home/openvscode-server-v1.60.2-linux-x64/extensions/fuzion/
RUN unzip /home/fuzion-lang-0.1.0.vsix "extension/*" -d /home/openvscode-server-v1.60.2-linux-x64/extensions/fuzion/

USER openvscode-server

0reactions
akosyakovcommented, Nov 8, 2021

When you start a server with server.sh you can pass --install-extension or --install-builtin-extension.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow pre-installing VS code server and extensions in ... - GitHub
I use a custom built Docker image across multiple projects that contains a custom shell, OS packages and programming language related ...
Read more >
Avoid Visual Studio Code extension reinstalls in containers
Avoiding VS Code extension reinstalls. By default, Visual Studio Code will install extensions and VS Code Server inside the container's filesystem.
Read more >
Jenkins Docker Image with Pre-Installed Plugins - Medium
I have a custom Dockerfile for Jenkins setup along with preinstalled plugins while building the docker Image.
Read more >
Non-Marketplace extensions - Docker Documentation
The Extensions Marketplace is the trusted and official place to install extensions from within Docker Desktop. These extensions have gone through a review ......
Read more >
Using Custom-Built Docker Images - CircleCI
Building the image. After all of the required tools are specified in the Dockerfile it is possible to build the image. $ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found