-
-
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 #143 from docksal/develop
Release 2.9.0
- Loading branch information
Showing
50 changed files
with
522 additions
and
168 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
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
[xdebug] | ||
zend_extension=xdebug.so | ||
xdebug.remote_enable=1 | ||
xdebug.remote_connect_back=1 | ||
xdebug.remote_port=9000 | ||
xdebug.remote_autostart=1 | ||
; xdebug.xdebug.remote_host defaults to "localhost", which works with VS Code Server web IDE | ||
; For debugging from the host machine, xdebug.xdebug.remote_host is set to ${DOCKSAL_HOST_IP} at runtime | ||
; xdebug.xdebug.remote_port is set at runtime: 9000 (default) | ||
xdebug.idekey=xdebug_session | ||
xdebug.max_nesting_level=256 |
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,5 @@ | ||
[program:cron] | ||
# Cron will only log to syslog and nothing else... | ||
command = /usr/sbin/cron -f | ||
stdout_logfile = /var/log/supervisor/cron-stdout | ||
stderr_logfile = /var/log/supervisor/cron-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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[program:php-fpm] | ||
command = /usr/local/sbin/php-fpm | ||
stdout_logfile = /var/log/supervisor/php-fpm-stdout | ||
stderr_logfile = /var/log/supervisor/php-fpm-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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[program:sshd] | ||
command = /usr/sbin/sshd -D | ||
stdout_logfile = /var/log/supervisor/sshd-stdout | ||
stderr_logfile = /var/log/supervisor/sshd-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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[supervisord] | ||
nodaemon = true | ||
# debug prints output from all services to stdout/stderr. | ||
# This way logs can be reviewed with docker logs. | ||
# Additionalluy, logs from specific services are forwarded to individual files on disk. | ||
loglevel = debug |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e # Exit on errors | ||
|
||
# Initialization phase in startup.sh is complete | ||
[[ ! -f /var/run/cli ]] && exit 1 | ||
# 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 | ||
[[ ! -f /run/php-fpm.pid ]] && exit 1 | ||
[[ ! -f /run/sshd.pid ]] && exit 1 | ||
if [[ "${IDE_ENABLED}" != "1" ]]; then | ||
# 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 | ||
|
||
exit 0 |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
PLUGIN_URL=$1 | ||
PLUGIN_DIRECTORY=$2 | ||
|
||
curl -fsSL "${PLUGIN_URL}" -o /tmp/extension.zip | ||
unzip -qq /tmp/extension.zip -d /tmp/extension | ||
mv /tmp/extension/extension ${VSCODE_EXT_DIRECTORY}/${PLUGIN_DIRECTORY} | ||
rm -rf /tmp/extension.zip /tmp/extension |
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,26 @@ | ||
{ | ||
// XDebug Launch Configuration settings | ||
"launch": { | ||
"version": "0.2.0", | ||
"configurations": [ | ||
// Listener mode (recommended for most cases) | ||
// Can be used to debug both: web and cli PHP sessions. | ||
{ | ||
"name": "XDebug (listener)", | ||
"type": "php", | ||
"request": "launch", | ||
"port": 9000 | ||
}, | ||
// Current script mode | ||
// Note: IDE launches the script inside of the ide container and not the cli container. | ||
{ | ||
"name": "XDebug (currently open script)", | ||
"type": "php", | ||
"request": "launch", | ||
"program": "${file}", | ||
"cwd": "${fileDirname}", | ||
"port": 9000 | ||
} | ||
] | ||
} | ||
} |
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,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/local/bin/code-server --user-data-dir=/home/docker/code-server -p 8080 /var/www --allow-http --no-auth' | ||
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
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
[xdebug] | ||
zend_extension=xdebug.so | ||
xdebug.remote_enable=1 | ||
xdebug.remote_connect_back=1 | ||
xdebug.remote_port=9000 | ||
xdebug.remote_autostart=1 | ||
; xdebug.xdebug.remote_host defaults to "localhost", which works with VS Code Server web IDE | ||
; For debugging from the host machine, xdebug.xdebug.remote_host is set to ${DOCKSAL_HOST_IP} at runtime | ||
; xdebug.xdebug.remote_port is set at runtime: 9000 (default) | ||
xdebug.idekey=xdebug_session | ||
xdebug.max_nesting_level=256 |
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,5 @@ | ||
[program:cron] | ||
# Cron will only log to syslog and nothing else... | ||
command = /usr/sbin/cron -f | ||
stdout_logfile = /var/log/supervisor/cron-stdout | ||
stderr_logfile = /var/log/supervisor/cron-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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[program:php-fpm] | ||
command = /usr/local/sbin/php-fpm | ||
stdout_logfile = /var/log/supervisor/php-fpm-stdout | ||
stderr_logfile = /var/log/supervisor/php-fpm-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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[program:sshd] | ||
command = /usr/sbin/sshd -D | ||
stdout_logfile = /var/log/supervisor/sshd-stdout | ||
stderr_logfile = /var/log/supervisor/sshd-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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[supervisord] | ||
nodaemon = true | ||
# debug prints output from all services to stdout/stderr. | ||
# This way logs can be reviewed with docker logs. | ||
# Additionalluy, logs from specific services are forwarded to individual files on disk. | ||
loglevel = debug |
Oops, something went wrong.