aptalca Posted September 30, 2019 Share Posted September 30, 2019 (edited) 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 September 30, 2019 by aptalca Quote Link to comment
ptr727 Posted October 1, 2019 Share Posted October 1, 2019 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. Quote Link to comment
aptalca Posted October 1, 2019 Share Posted October 1, 2019 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. Quote Link to comment
ptr727 Posted October 1, 2019 Share Posted October 1, 2019 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. Quote Link to comment
aptalca Posted October 1, 2019 Share Posted October 1, 2019 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 Quote Link to comment
ich777 Posted October 3, 2019 Share Posted October 3, 2019 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)? Quote Link to comment
aptalca Posted October 3, 2019 Share Posted October 3, 2019 (edited) 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 October 3, 2019 by aptalca 1 Quote Link to comment
GreenEyedMonster Posted November 2, 2019 Share Posted November 2, 2019 Extensions are working!! Now if I could somehow figure out how to have a live server session show up or running a server. Might have to do some other way. Quote Link to comment
WexfordStyle Posted November 8, 2019 Share Posted November 8, 2019 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? Quote Link to comment
saarg Posted November 8, 2019 Share Posted November 8, 2019 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. Quote Link to comment
aptalca Posted November 8, 2019 Share Posted November 8, 2019 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 Quote Link to comment
WexfordStyle Posted November 10, 2019 Share Posted November 10, 2019 (edited) 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 November 11, 2019 by WexfordStyle Quote Link to comment
Xcelsior86 Posted December 20, 2019 Share Posted December 20, 2019 (edited) 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. Edited December 20, 2019 by Xcelsior86 Quote Link to comment
aptalca Posted December 20, 2019 Share Posted December 20, 2019 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. See here for customizing: https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ Quote Link to comment
potts.mike Posted January 24, 2020 Share Posted January 24, 2020 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. Quote Link to comment
potts.mike Posted January 24, 2020 Share Posted January 24, 2020 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? Quote Link to comment
aptalca Posted January 24, 2020 Share Posted January 24, 2020 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. Quote Link to comment
potts.mike Posted January 24, 2020 Share Posted January 24, 2020 Yes, sorry about that. It is the remote-ssh extension. It allows me to open file on a remote machine over ssh. Quote Link to comment
Xcelsior86 Posted February 4, 2020 Share Posted February 4, 2020 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 Quote Link to comment
aptalca Posted February 5, 2020 Share Posted February 5, 2020 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 Quote Link to comment
Xcelsior86 Posted February 5, 2020 Share Posted February 5, 2020 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? Quote Link to comment
aptalca Posted February 5, 2020 Share Posted February 5, 2020 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? Quote Link to comment
Xcelsior86 Posted February 5, 2020 Share Posted February 5, 2020 3 hours ago, aptalca said: "[custom-init] no custom files found exiting..." Are you sure you put the script in the correct folder? The path is code-server/config/custom-cont-init.d/node.sh Is that correct or do I have something wrong? Quote Link to comment
aptalca Posted February 6, 2020 Share Posted February 6, 2020 11 hours ago, Xcelsior86 said: The path is code-server/config/custom-cont-init.d/node.sh Is that correct or do I have something wrong? There is now an official mod. Please test and let us know: https://github.com/linuxserver/docker-mods/blob/code-server-nodejs/README.md Quote Link to comment
Xcelsior86 Posted February 6, 2020 Share Posted February 6, 2020 12 minutes ago, aptalca said: There is now an official mod. Please test and let us know: https://github.com/linuxserver/docker-mods/blob/code-server-nodejs/README.md Did I do this correctly? Quote Link to comment
Recommended Posts
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.