Ahmad Posted August 2, 2022 Share Posted August 2, 2022 (edited) I'm creating and maintaining a bunch of templates mainly around web development tools. Verdaccio: A lightweight Node.js private proxy registry https://verdaccio.org/ Visual Studio Code Server: Run full VS Code on your own hardware! https://code.visualstudio.com/docs/remote/vscode-server UniFi API Browser: pull raw, JSON formatted data from the API running on your UniFi Controller. https://github.com/Art-of-WiFi/UniFi-API-browser GitHub Templates Repository: https://github.com/ahmadnassri/unraid-templates/ Edited August 27, 2022 by Ahmad correct repo link Quote Link to comment
fornol Posted August 6, 2022 Share Posted August 6, 2022 Hi, There seems to be an error in plugin: /usr/local/bin/start-vscode: line 6: VSCODE_SERVE_MODE: unbound variable Prevents to start docker. 1 Quote Link to comment
ALERT Posted August 8, 2022 Share Posted August 8, 2022 same error for me. can you describe the difference between serve modes local and remote? Quote Link to comment
resuarez Posted August 8, 2022 Share Posted August 8, 2022 On 8/6/2022 at 3:34 AM, fornol said: Hi, There seems to be an error in plugin: /usr/local/bin/start-vscode: line 6: VSCODE_SERVE_MODE: unbound variable Prevents to start docker. I've created the VSCODR_SERVER_MODE with the value: serve-local and the container started without problem Quote Link to comment
Ahmad Posted August 8, 2022 Author Share Posted August 8, 2022 oops, apologies for this, corrected the issue in the template: https://github.com/ahmadnassri/unraid-templates/commit/78c883529bb063681ca527e6792f9307c54c8d37 the next refresh of CA Community Applications will surface this fix, in the meantime: as @resuarezsaid, adding a variable named VSCODR_SERVER_MODE with value set to "local" will allow it to run properly. note: this is in prep to allow the container to run as a remote target for vscode.dev (vs. local), however this is currently nonfunctional due to an issue: https://github.com/microsoft/vscode-remote-release/issues/7018 Quote Link to comment
Ahmad Posted August 8, 2022 Author Share Posted August 8, 2022 14 hours ago, ALERT said: same error for me. can you describe the difference between serve modes local and remote? "local": runs completely independently, locally on your unraid "remote": allows the container to act as a remote target for vscode.dev, however, this is behind a beta invite for now, and as per previous post, is not functional due to an issue with vscode-server itself, and awaiting Microsoft to address my ticket. for now stick to "local" until I announce it fully functional. Quote Link to comment
Ahmad Posted August 10, 2022 Author Share Posted August 10, 2022 Microsoft crew just tagged the issue preventing "remote" mode being usable as a backlog candidate, they are looking for at least 10 votes to move it to the backlog: https://github.com/microsoft/vscode-remote-release/issues/7018#issuecomment-1211196838 Quote Link to comment
bobokun Posted October 29, 2022 Share Posted October 29, 2022 for Visual Studio Code Server does it need to be ran in Privileged mode? Quote Link to comment
Nick.L Posted February 6 Share Posted February 6 i wonder if there is a login panel, just for the security concern. i have entered the keyring but it never ask me to login Quote Link to comment
Ahmad Posted February 13 Author Share Posted February 13 On 2/6/2023 at 3:59 PM, Nick.L said: i wonder if there is a login panel, just for the security concern. i have entered the keyring but it never ask me to login are you referring to vscode? you should be able to login with your Github / Microsoft accounts. Quote Link to comment
manolodf Posted May 11 Share Posted May 11 On 2/13/2023 at 8:20 AM, Ahmad said: are you referring to vscode? you should be able to login with your Github / Microsoft accounts. I think he meant when pulling up the GUI to enter a password of some sort like some of the the Open-VSCode ones do. What is the passkey for in the config by the way, I did think that was for some sort of GUI Passcode to be able to access? Quote Link to comment
Ahmad Posted May 11 Author Share Posted May 11 (edited) 13 hours ago, manolodf said: What is the passkey for in the config by the way The passkey is used in the `gnome-keyring-daemon` to remember your vscode login credentials for the settings sync feature between container runs. see code here: https://github.com/ahmadnassri/docker-vscode-server/blob/889626ddb47c0c9f23cb30b6cf4f94cd555568c2/src/start-vscode#L9 see info on settings sync here: https://code.visualstudio.com/docs/editor/settings-sync Edited May 11 by Ahmad Quote Link to comment
manolodf Posted May 11 Share Posted May 11 Not sure if you have seen the Linuxserver version of code-server. I think that is what the other user was referring to in terms of a password on a splash screen. I just switched to yours because it’s frankly better since I can run all extensions but the password protection would be a bonus Sent from my iPhone using Tapatalk Quote Link to comment
Ahmad Posted May 11 Author Share Posted May 11 (edited) 16 minutes ago, manolodf said: Not sure if you have seen the Linuxserver version of code-server indeed I have (and used it for a bit), though that one is NOT the official VS-Code and hence it doesn't have the full extensions functionality as you indicated, hence why I made this one. I don't plan on adding functionality beyond what the official image provides, so things like password protection can be achieved with a reverse proxy like Authelia and SWAG: https://www.linuxserver.io/blog/2020-08-26-setting-up-authelia Edited May 11 by Ahmad Quote Link to comment
manolodf Posted June 10 Share Posted June 10 I wanted to see if you could help me get my local Unraid Time within code-server, or to set a time. I tried mapping /etc/localtime and that did not seem to work, and the timedatectl did not seem to work also. Is there an argument or parameter I can pass through to assign my timezone so that when testing a python script within code-server it has my correct timezone instead of UTC? Quote Link to comment
Ahmad Posted June 10 Author Share Posted June 10 have you tried the TZ environment variable? it might need adding the tzdata package to the image to work, I haven't tried it. give it a try and open a pull request if it works? Quote Link to comment
manolodf Posted June 10 Share Posted June 10 33 minutes ago, Ahmad said: have you tried the TZ environment variable? it might need adding the tzdata package to the image to work, I haven't tried it. give it a try and open a pull request if it works? I tried adding the TZ Variable within unraid and applied, and same result, still showing UTC time for me when running python script. Quote Link to comment
Ahmad Posted June 10 Author Share Posted June 10 just published a new version 1.4.0 that supports TZ env, also upgrade to ubuntu:23.04 cheers. Quote Link to comment
manolodf Posted June 11 Share Posted June 11 5 hours ago, Ahmad said: just published a new version 1.4.0 that supports TZ env, also upgrade to ubuntu:23.04 cheers. Awesome that got the timezone result! Maybe the ubuntu upgrade is what gave an error when doing "pip3 install requests" that used to work and had to change it. But definitely getting the desired timezone! Thanks! 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.