Jump to content
linuxserver.io

[Support] Linuxserver.io - Code-server

43 posts in this topic Last Reply

Recommended Posts

49 minutes ago, ptr727 said:

I need to install DotNet Core SDK 3, which has several dependencies that are not installed, and it needs to be configured for container use.

Should I 1) attempt the custom scripts path, or am I better off 2) creating my own docker file that inherits from your image as base, or 3) fork and modify your dockerfile to also include the DotNet SDK steps?

See: https://github.com/dotnet/dotnet-docker/blob/master/3.0/sdk/bionic/amd64/Dockerfile

 

This is the best approach: https://blog.linuxserver.io/2019/09/14/customizing-our-containers/

 

If you think others may be interested, you can publish your mod for it, which can be pulled into the main image by any user

Edited by aptalca

Share this post


Link to post
6 hours ago, aptalca said:

This is the best approach: https://blog.linuxserver.io/2019/09/14/customizing-our-containers/

 

If you think others may be interested, you can publish your mod for it, which can be pulled into the main image by any user

I read the blog, and if I understand correctly you tar all the files in the docker, and drop them on your layout, I assume it is then very important that the images derive from the same base image?

I created an image that derives from your image, and then installs the goodies I want: https://hub.docker.com/r/ptr727/code-server

It works fine as is, and it is currently auto building when I make a change or your image changes.

Share this post


Link to post
8 hours ago, ptr727 said:

I read the blog, and if I understand correctly you tar all the files in the docker, and drop them on your layout, I assume it is then very important that the images derive from the same base image?

I created an image that derives from your image, and then installs the goodies I want: https://hub.docker.com/r/ptr727/code-server

It works fine as is, and it is currently auto building when I make a change or your image changes.

No, you don't create a new image based on ours. See the dockerfile here: https://github.com/linuxserver/docker-mods?files=1

 

Dockerfile basically imports the root folder, which contains the necessary init and service files. You're essentially using docker hub to host your files in a single tar archive.

 

Then with our image, you specify the mod repo so the container retrieves and extracts the custom init and service files to be executed. Init files install stuff and make changes to the data, service files manage apps and executables.

 

Hop on our discord if you want to discuss that further.

Share this post


Link to post
2 hours ago, aptalca said:

No, you don't create a new image based on ours. See the dockerfile here: https://github.com/linuxserver/docker-mods?files=1

 

Dockerfile basically imports the root folder, which contains the necessary init and service files. You're essentially using docker hub to host your files in a single tar archive.

 

Then with our image, you specify the mod repo so the container retrieves and extracts the custom init and service files to be executed. Init files install stuff and make changes to the data, service files manage apps and executables.

 

Hop on our discord if you want to discuss that further.

I see, so the base is ignored and only the specific layer files copied on top of your last layer, I'll try it out and see what happens.

Share this post


Link to post
8 hours ago, ptr727 said:

I see, so the base is ignored and only the specific layer files copied on top of your last layer, I'll try it out and see what happens.

Base is not ignored, everything gets copied over. That's why it's from scratch and it only copies the necessary files into the image so you don't overwrite critical things in the code server image

Share this post


Link to post

I'm struggeling a bit to install the extension 'PlatformIO IDE' from the extensions menu, is this a known problem or am i doing something wrong (the PlatformIO Toolbar doesn't show up and i simply can't use it)?

Share this post


Link to post
5 hours ago, ich777 said:

I'm struggeling a bit to install the extension 'PlatformIO IDE' from the extensions menu, is this a known problem or am i doing something wrong (the PlatformIO Toolbar doesn't show up and i simply can't use it)?

Code server is hosting their own marketplace because the licenses prevent them from accessing the official Microsoft marketplace. There may be some issues with some of the extensions. You should report them to code server on github.

 

Especially on v2, the development tag of this image, many extensions are not yet working.

Edited by aptalca

Share this post


Link to post

I am having issues when installing the extension Live Server.

 

After install and reloading I get the following error:

 

Activating extension 'ritwickdey.LiveServer' failed: Cannot find module 'live-server'.

 

Has anyone else run into a similar issue?

Share this post


Link to post
4 hours ago, WexfordStyle said:

I am having issues when installing the extension Live Server.

 

After install and reloading I get the following error:

 

Activating extension 'ritwickdey.LiveServer' failed: Cannot find module 'live-server'.

 

Has anyone else run into a similar issue?

Are you sure the extension is available for code server? As far as I know not all are available.

Share this post


Link to post
7 hours ago, WexfordStyle said:

I am having issues when installing the extension Live Server.

 

After install and reloading I get the following error:

 

Activating extension 'ritwickdey.LiveServer' failed: Cannot find module 'live-server'.

 

Has anyone else run into a similar issue?

See two posts above yours

Share this post


Link to post
On 11/8/2019 at 1:34 AM, saarg said:

Are you sure the extension is available for code server? As far as I know not all are available.

 

On 11/8/2019 at 3:52 AM, aptalca said:

See two posts above yours

 

Thanks for the reply guys.

 

I installed this from the marketplace within the Code Server instance.

 

I have created an issue under the github extension but I will do the same for Code Server. I think this is a pretty popular extension so I cant imagine it will last long.

 

EDIT: Created issue https://github.com/cdr/code-server/issues/1168

 

Edited by WexfordStyle

Share this post


Link to post

I keep getting the error at the bottom of the screenshot attached.  Apparently it has something to do with NPM and/or Node.js.  How would I go about installing Node.js on unraid or within the code server docker itself. 

 

Also, what would be the best path to use for saving files?  Example: /files to /filesshare.

 

Thanks.

Screenshot_20191219-235603_Chrome.jpg

Edited by Xcelsior86

Share this post


Link to post
6 hours ago, Xcelsior86 said:

I keep getting the error at the bottom of the screenshot attached.  Apparently it has something to do with NPM and/or Node.js.  How would I go about installing Node.js on unraid or within the code server docker itself. 

 

Also, what would be the best path to use for saving files?  Example: /files to /filesshare.

 

Thanks.

Screenshot_20191219-235603_Chrome.jpg

See here for customizing: https://blog.linuxserver.io/2019/09/14/customizing-our-containers/

Share this post


Link to post

I am new to development but have this up and running. I am trying to access files on a raspberry pi. With vs code there is a plugin that does this over ssh and works great. How can I get the same functionality with this code-server docker? I realize code-server has its own marketplace but haven’t found an equivalent. 

Share this post


Link to post

I am new to development but have this up and running. I am trying to access files on a raspberry pi. With vs code there is a plugin that does this over ssh and works great. How can I get the same functionality with this code-server docker?

Share this post


Link to post
10 hours ago, potts.mike said:

I am new to development but have this up and running. I am trying to access files on a raspberry pi. With vs code there is a plugin that does this over ssh and works great. How can I get the same functionality with this code-server docker? I realize code-server has its own marketplace but haven’t found an equivalent. 

You didn't even mention the name of the plugin. I don't know what to tell you.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.