[Support] Linuxserver.io - Code-server


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
Link to comment
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.

Link to comment
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.

Link to comment
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.

Link to comment
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

Link to comment
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
  • Thanks 1
Link to comment
  • 5 weeks later...
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.

Link to comment
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

Link to comment
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
Link to comment
  • 1 month later...

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
Link to comment
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/

Link to comment
  • 1 month later...

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. 

Link to comment
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.

Link to comment
  • 2 weeks later...
4 hours ago, Xcelsior86 said:

I've tried to install Node JS using the custom scripts, but the terminal within the vscode docker says its not installed.  Is there another step I need to take?  In the script called 'node.sh' I've got this: 

 

#!/bin/bash

apt-get update && apt-get install -y nodejs

 

Do the logs show it being installed?

 

We are actually creating docker mods for this image now and you can make requests. I'll put nodejs on the list

Link to comment

This is all I have in the logs from the docker page on Unraid:

 

Quote

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
setting sudo password
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
info Server listening on http://localhost:8443
info - Using custom password for authentication
info - Not serving HTTPS

Docker mods sound exciting.  Where can we make more requests if we have any?  

Link to comment
7 hours ago, Xcelsior86 said:

This is all I have in the logs from the docker page on Unraid:

 

Docker mods sound exciting.  Where can we make more requests if we have any?  

Here would be fine.

 

"[custom-init] no custom files found exiting..."

Are you sure you put the script in the correct folder?

Link to comment

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.