February 6, 20206 yr 13 minutes ago, Xcelsior86 said: Did I do this correctly? You need to set the key to DOCKER_MODS
February 6, 20206 yr 8 hours ago, Xcelsior86 said: Confirmed working with node version shown as V8.10.0 Oh crap, I forgot a package. I'll PR a fix later today. It should install the latest LTS (v12). I'll let you know here once updated.
February 6, 20206 yr 11 hours ago, Xcelsior86 said: Confirmed working with node version shown as V8.10.0 Recreate the container and it should successfully install node 12.15.0
February 20, 20206 yr Is anyone successfully using this with a Git repo on their array? For me, it lists hundreds of unstaged changes, which is incorrect. The same does not occur with vscode on Windows accessing the directory from a share.
February 21, 20206 yr 3 hours ago, cyberspectre said: Is anyone successfully using this with a Git repo on their array? For me, it lists hundreds of unstaged changes, which is incorrect. The same does not occur with vscode on Windows accessing the directory from a share. I have been doing all my linuxserver.io development through this image for a while. I work on dozens of git repos and it works just fine. Make sure the config folder is on a /mnt/cache or /mnt/diskX location. Fuse on unraid may cause issues
February 21, 20206 yr 22 hours ago, aptalca said: I have been doing all my linuxserver.io development through this image for a while. I work on dozens of git repos and it works just fine. Make sure the config folder is on a /mnt/cache or /mnt/diskX location. Fuse on unraid may cause issues Thanks. The config folder is set up as follows, which is default: "Appdata" Host path: /mnt/cache/appdata/code-server Container path: /config Then, I added another path to access my repos, like so: "Files" Host path: /mnt/disk1 Container path: /media/projects Still experiencing the same problem. It shows every file that has ever been changed, as an unstaged change. Like it isn't recognizing past commits. Is the above configuration causing it? Edited February 21, 20206 yr by cyberspectre
March 11, 20206 yr On 2/21/2020 at 4:42 PM, cyberspectre said: Thanks. The config folder is set up as follows, which is default: "Appdata" Host path: /mnt/cache/appdata/code-server Container path: /config Then, I added another path to access my repos, like so: "Files" Host path: /mnt/disk1 Container path: /media/projects Still experiencing the same problem. It shows every file that has ever been changed, as an unstaged change. Like it isn't recognizing past commits. Is the above configuration causing it? I'm a dummy. It was because I moved the repo over from a different filesystem, and the permissions on all files changed.
March 22, 20206 yr Do I have to add a new volume mapping? The default current save directory is loading /config/workspace/Untitled-1 which I don't think is correct..? The user can traverse upwards and expose the config folder...
March 22, 20206 yr 47 minutes ago, CyberMew said: Do I have to add a new volume mapping? The default current save directory is loading /config/workspace/Untitled-1 which I don't think is correct..? The user can traverse upwards and expose the config folder... Why isn't that correct?
March 23, 20206 yr 2 hours ago, CyberMew said: Is there a way not to expose to config folder? What? Not expose to what or who? It's the folder that contains the container data
March 23, 20206 yr This is the default Save folder. Which is saved inside the config folder for the container data. Feels wrong to me, especially if the user can just navigate to upper folder easily (on a desktop). Is there a way to hide it? Change the default folder?
March 23, 20206 yr 4 hours ago, CyberMew said: This is the default Save folder. Which is saved inside the config folder for the container data. Feels wrong to me, especially if the user can just navigate to upper folder easily (on a desktop). Is there a way to hide it? Change the default folder? You might be able to change the default folder, but then you have to check out the code-server documentation. This isn't a multiuser software so /config will always be available to the user using code-server. If that feels wrong to you, you have to find another alternative to code-server.
March 23, 20206 yr @CyberMew I don't know how much you used code-server, or vscode for that matter, but when you open a terminal, you have access to the entire container. Same as when you open the terminal on a bare metal install of vscode, you have access to the entire machine contents. So I genuinely don't understand what your expectations are here.
March 24, 20206 yr I thought that it was “disposable” and it would be great if it was in “incognito” mode everytime for just playing around. I just didn’t want the config folder to be the default folder since it isn’t multi tenant(?). I will figure out if it’s possible to change the default save directory to a folder that I will map it to. At the very least that will indicate users not to touch anything outside of my sandbox folder. Thank you both for your inputs.
March 24, 20206 yr Hello, I wanted to configure external access to the container through reverseproxy ... but it won't work, I get to the "LOGIN PAGE" but after login I see only a blank page. Does someone knows how to fix it?
March 24, 20206 yr 36 minutes ago, TDA said: Hello, I wanted to configure external access to the container through reverseproxy ... but it won't work, I get to the "LOGIN PAGE" but after login I see only a blank page. Does someone knows how to fix it? This is what we use with our letsencrypt image: https://github.com/linuxserver/reverse-proxy-confs/blob/master/code-server.subdomain.conf.sample
March 24, 20206 yr 20 minutes ago, aptalca said: This is what we use with our letsencrypt image: https://github.com/linuxserver/reverse-proxy-confs/blob/master/code-server.subdomain.conf.sample Hello, Do you know how to implementate it inside Nginx Proxy manager ? (if not - not a problem at all, I'll ask in another post). I've a second question, I've not understood how to implement the FILE__PASSWORD inside your dockers (in uNRAID)
March 24, 20206 yr 1 hour ago, TDA said: Hello, Do you know how to implementate it inside Nginx Proxy manager ? (if not - not a problem at all, I'll ask in another post). I've a second question, I've not understood how to implement the FILE__PASSWORD inside your dockers (in uNRAID) You can ask their dev Map the file somewhere (or use docker secrets) and pass the location in an environment variable
March 24, 20206 yr 10 minutes ago, aptalca said: You can ask their dev Map the file somewhere (or use docker secrets) and pass the location in an environment variable Hello, but Docker secrets aren't only for swarm? And with your Template - how I have to pass the variable? This one is the Variable that come with the template.
March 24, 20206 yr 6 hours ago, TDA said: Hello, but Docker secrets aren't only for swarm? And with your Template - how I have to pass the variable? This one is the Variable that come with the template. With docker compose you can. Anyway, that was just an option listed, not a recommendation. For the second, you need to look at docker faqs. It's an unraid thing but in a nutshell, you use the key/value to set the variables and you can add as many as you like (volume mappings, too). Edited March 24, 20206 yr by aptalca
March 31, 20206 yr I used Dockermod to install python3, however I would like to install some python libraries and want to make sure I'm doing this the best way. Do I create a folder called custom-cont-init.d and inside create a file with the library name? For example 99-pandas and the script would be something like #!/usr/bin/with-contenv bash echo "**** installing pandas****" pip3 install pandas Edit: I find this not working because it tries to run my custom-cont-init.d prior to the dockermods which is throwing me back with an error pip3 command not found Edited March 31, 20206 yr by bobokun
March 31, 20206 yr 4 hours ago, bobokun said: I used Dockermod to install python3, however I would like to install some python libraries and want to make sure I'm doing this the best way. Do I create a folder called custom-cont-init.d and inside create a file with the library name? For example 99-pandas and the script would be something like #!/usr/bin/with-contenv bash echo "**** installing pandas****" pip3 install pandas Edit: I find this not working because it tries to run my custom-cont-init.d prior to the dockermods which is throwing me back with an error pip3 command not found You bring up an interesting point I had not considered. s6 supervisor executes the init files in alphabetical order. The custom files in that folder are executed by a script named "99-custom-files" and the python3 docker mod creates an init file named "99-python3" and that's why your custom file is executed before python3 installation. I guess I'll have to update all the mods to use "98-blah" so they execute before the custom files. Until then, restarting the container should fix it for you because on second start, pip will already be installed when your custom file runs.
March 31, 20206 yr 1 hour ago, aptalca said: You bring up an interesting point I had not considered. s6 supervisor executes the init files in alphabetical order. The custom files in that folder are executed by a script named "99-custom-files" and the python3 docker mod creates an init file named "99-python3" and that's why your custom file is executed before python3 installation. I guess I'll have to update all the mods to use "98-blah" so they execute before the custom files. Until then, restarting the container should fix it for you because on second start, pip will already be installed when your custom file runs. Yes, thanks! Restarting the container worked. Thanks for following up
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.