-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from docksal/feature/code-server-fixes
VS Code Server setup overhaul
- Loading branch information
Showing
21 changed files
with
91 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,6 @@ | |
"*.tpl.php": "php", | ||
"*.test": "php", | ||
"*.php": "php" | ||
} | ||
}, | ||
"workbench.colorTheme": "Default Dark+" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
user-data-dir: {{ getenv "VSCODE_HOME" }} | ||
bind-addr: 0.0.0.0:8080 | ||
cert: false | ||
{{ if (getenv "IDE_PASSWORD") }} | ||
auth: password | ||
password: {{ getenv "IDE_PASSWORD" }} | ||
{{ else }} | ||
auth: none | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# VS Code Server web IDE | ||
[program:code-server] | ||
# Using bash -lc here to load docker user profile (necessary for nvn/node to initialize) | ||
command = gosu docker bash -lc '/usr/bin/code-server --user-data-dir=/home/docker/code-server --disable-telemetry --bind-addr 0.0.0.0:8080 {{ if not (getenv "PASSWORD") }}--auth none{{ end }} /var/www' | ||
command = gosu docker bash -lc '/usr/bin/code-server --config=${VSCODE_HOME}/config.yaml /var/www' | ||
stdout_logfile = /var/log/supervisor/code-server-stdout | ||
stderr_logfile = /var/log/supervisor/code-server-stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e # Exit on errors | ||
|
||
# Initialization phase in startup.sh is complete | ||
# Need to do "|| exit 1" here since "set -e" apparently does not care about tests. | ||
[[ -f /var/run/cli ]] || exit 1 | ||
|
||
# supervisor services are running | ||
if [[ -f /run/supervisord.pid ]]; then | ||
if [[ "${IDE_ENABLED}" != "1" ]]; then | ||
if [[ "${IDE_ENABLED}" == "1" ]]; then | ||
# IDE mode | ||
ps aux | grep code-server >/dev/null || exit 1 | ||
else | ||
# php-fpm/cli mode | ||
[[ -f /run/php-fpm.pid ]] || exit 1 | ||
[[ -f /run/sshd.pid ]] || exit 1 | ||
else | ||
# IDE mode | ||
ps aux | grep code-server >/dev/null | ||
fi | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,6 @@ | |
"*.tpl.php": "php", | ||
"*.test": "php", | ||
"*.php": "php" | ||
} | ||
}, | ||
"workbench.colorTheme": "Default Dark+" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
user-data-dir: {{ getenv "VSCODE_HOME" }} | ||
bind-addr: 0.0.0.0:8080 | ||
cert: false | ||
{{ if (getenv "IDE_PASSWORD") }} | ||
auth: password | ||
password: {{ getenv "IDE_PASSWORD" }} | ||
{{ else }} | ||
auth: none | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# VS Code Server web IDE | ||
[program:code-server] | ||
# Using bash -lc here to load docker user profile (necessary for nvn/node to initialize) | ||
command = gosu docker bash -lc '/usr/bin/code-server --user-data-dir=/home/docker/code-server --disable-telemetry --bind-addr 0.0.0.0:8080 {{ if not (getenv "PASSWORD") }}--auth none{{ end }} /var/www' | ||
command = gosu docker bash -lc '/usr/bin/code-server --config=${VSCODE_HOME}/config.yaml /var/www' | ||
stdout_logfile = /var/log/supervisor/code-server-stdout | ||
stderr_logfile = /var/log/supervisor/code-server-stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e # Exit on errors | ||
|
||
# Initialization phase in startup.sh is complete | ||
# Need to do "|| exit 1" here since "set -e" apparently does not care about tests. | ||
[[ -f /var/run/cli ]] || exit 1 | ||
|
||
# supervisor services are running | ||
if [[ -f /run/supervisord.pid ]]; then | ||
if [[ "${IDE_ENABLED}" != "1" ]]; then | ||
if [[ "${IDE_ENABLED}" == "1" ]]; then | ||
# IDE mode | ||
ps aux | grep code-server >/dev/null || exit 1 | ||
else | ||
# php-fpm/cli mode | ||
[[ -f /run/php-fpm.pid ]] || exit 1 | ||
[[ -f /run/sshd.pid ]] || exit 1 | ||
else | ||
# IDE mode | ||
ps aux | grep code-server >/dev/null | ||
fi | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,6 @@ | |
"*.tpl.php": "php", | ||
"*.test": "php", | ||
"*.php": "php" | ||
} | ||
}, | ||
"workbench.colorTheme": "Default Dark+" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
user-data-dir: {{ getenv "VSCODE_HOME" }} | ||
bind-addr: 0.0.0.0:8080 | ||
cert: false | ||
{{ if (getenv "IDE_PASSWORD") }} | ||
auth: password | ||
password: {{ getenv "IDE_PASSWORD" }} | ||
{{ else }} | ||
auth: none | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# VS Code Server web IDE | ||
[program:code-server] | ||
# Using bash -lc here to load docker user profile (necessary for nvn/node to initialize) | ||
command = gosu docker bash -lc '/usr/bin/code-server --user-data-dir=/home/docker/code-server --disable-telemetry --bind-addr 0.0.0.0:8080 {{ if not (getenv "PASSWORD") }}--auth none{{ end }} /var/www' | ||
command = gosu docker bash -lc '/usr/bin/code-server --config=${VSCODE_HOME}/config.yaml /var/www' | ||
stdout_logfile = /var/log/supervisor/code-server-stdout | ||
stderr_logfile = /var/log/supervisor/code-server-stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e # Exit on errors | ||
|
||
# Initialization phase in startup.sh is complete | ||
# Need to do "|| exit 1" here since "set -e" apparently does not care about tests. | ||
[[ -f /var/run/cli ]] || exit 1 | ||
|
||
# supervisor services are running | ||
if [[ -f /run/supervisord.pid ]]; then | ||
if [[ "${IDE_ENABLED}" != "1" ]]; then | ||
if [[ "${IDE_ENABLED}" == "1" ]]; then | ||
# IDE mode | ||
ps aux | grep code-server >/dev/null || exit 1 | ||
else | ||
# php-fpm/cli mode | ||
[[ -f /run/php-fpm.pid ]] || exit 1 | ||
[[ -f /run/sshd.pid ]] || exit 1 | ||
else | ||
# IDE mode | ||
ps aux | grep code-server >/dev/null | ||
fi | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters