aptalca Posted February 6, 2020 Share Posted February 6, 2020 13 minutes ago, Xcelsior86 said: Did I do this correctly? You need to set the key to DOCKER_MODS Quote Link to comment
Xcelsior86 Posted February 6, 2020 Share Posted February 6, 2020 Confirmed working with node version shown as V8.10.0 Quote Link to comment
aptalca Posted February 6, 2020 Share Posted February 6, 2020 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. Quote Link to comment
aptalca Posted February 6, 2020 Share Posted February 6, 2020 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 Quote Link to comment
cyberspectre Posted February 20, 2020 Share Posted February 20, 2020 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. Quote Link to comment
aptalca Posted February 21, 2020 Share Posted February 21, 2020 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 Quote Link to comment
cyberspectre Posted February 21, 2020 Share Posted February 21, 2020 (edited) 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, 2020 by cyberspectre Quote Link to comment
cyberspectre Posted March 11, 2020 Share Posted March 11, 2020 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. Quote Link to comment
CyberMew Posted March 22, 2020 Share Posted March 22, 2020 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... Quote Link to comment
saarg Posted March 22, 2020 Share Posted March 22, 2020 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? Quote Link to comment
CyberMew Posted March 23, 2020 Share Posted March 23, 2020 Is there a way not to expose to config folder? Quote Link to comment
aptalca Posted March 23, 2020 Share Posted March 23, 2020 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 Quote Link to comment
CyberMew Posted March 23, 2020 Share Posted March 23, 2020 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? Quote Link to comment
saarg Posted March 23, 2020 Share Posted March 23, 2020 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. Quote Link to comment
aptalca Posted March 23, 2020 Share Posted March 23, 2020 @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. Quote Link to comment
CyberMew Posted March 24, 2020 Share Posted March 24, 2020 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. Quote Link to comment
TDA Posted March 24, 2020 Share Posted March 24, 2020 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? Quote Link to comment
aptalca Posted March 24, 2020 Share Posted March 24, 2020 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 Quote Link to comment
TDA Posted March 24, 2020 Share Posted March 24, 2020 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) Quote Link to comment
aptalca Posted March 24, 2020 Share Posted March 24, 2020 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 Quote Link to comment
TDA Posted March 24, 2020 Share Posted March 24, 2020 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. Quote Link to comment
aptalca Posted March 24, 2020 Share Posted March 24, 2020 (edited) 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, 2020 by aptalca Quote Link to comment
bobokun Posted March 31, 2020 Share Posted March 31, 2020 (edited) 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, 2020 by bobokun Quote Link to comment
aptalca Posted March 31, 2020 Share Posted March 31, 2020 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. Quote Link to comment
bobokun Posted March 31, 2020 Share Posted March 31, 2020 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 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.