forked from alextselegidis/easyappointments
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolving docker-entrypoint not found
- Loading branch information
Steliyan Nedev
authored and
Steliyan Nedev
committed
Jun 5, 2024
1 parent
8557015
commit ea93dbd
Showing
3 changed files
with
87 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
upload_max_filesize = 100M | ||
post_max_size = 100M | ||
xdebug.mode = debug | ||
xdebug.client_host = host.docker.internal | ||
xdebug.log_level = 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,41 @@ | ||
#!/bin/bash | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Easy!Appointments - Online Appointment Scheduler | ||
# | ||
# @package EasyAppointments | ||
# @author A.Tselegidis <[email protected]> | ||
# @copyright Copyright (c) Alex Tselegidis | ||
# @license https://opensource.org/licenses/GPL-3.0 - GPLv3 | ||
# @link https://easyappointments.org | ||
# ----------------------------------------------------------------------------- | ||
|
||
## | ||
# Set up the currently cloned Easy!Appointments build. | ||
# | ||
# This script will perform the required actions so that Easy!Appointments is configured properly to work with the | ||
# provided environment variables. | ||
# | ||
# Usage: | ||
# | ||
# ./docker-entrypoint.sh | ||
# | ||
|
||
cp config-sample.php config.php | ||
|
||
sed -i "s|const BASE_URL = 'http://url-to-easyappointments-directory';|const BASE_URL = '$BASE_URL';|g" config.php | ||
sed -i "s|const LANGUAGE = 'english';|const LANGUAGE = '$LANGUAGE';|g" config.php | ||
sed -i "s|const DEBUG_MODE = FALSE;|const DEBUG_MODE = $DEBUG_MODE;|g" config.php | ||
|
||
sed -i "s|const DB_HOST = 'localhost';|const DB_HOST = '$DB_HOST';|g" config.php | ||
sed -i "s|const DB_NAME = 'easyappointments';|const DB_NAME = '$DB_NAME';|g" config.php | ||
sed -i "s|const DB_USERNAME = 'root';|const DB_USERNAME = '$DB_USERNAME';|g" config.php | ||
sed -i "s|const DB_PASSWORD = 'root';|const DB_PASSWORD = '$DB_PASSWORD';|g" config.php | ||
|
||
sed -i "s|const GOOGLE_SYNC_FEATURE = FALSE;|const GOOGLE_SYNC_FEATURE = '$GOOGLE_SYNC_FEATURE';|g" config.php | ||
sed -i "s|const GOOGLE_PRODUCT_NAME = '';|const GOOGLE_PRODUCT_NAME = '$GOOGLE_GOOGLE_PRODUCT_NAME';|g" config.php | ||
sed -i "s|const GOOGLE_CLIENT_ID = '';|const GOOGLE_CLIENT_ID = '$GOOGLE_CLIENT_ID';|g" config.php | ||
sed -i "s|const GOOGLE_CLIENT_SECRET = '';|const GOOGLE_CLIENT_SECRET = '$GOOGLE_CLIENT_SECRET';|g" config.php | ||
sed -i "s|const GOOGLE_API_KEY = '';|const GOOGLE_API_KEY = '$GOOGLE_API_KEY';|g" config.php | ||
|
||
apache2-foreground |
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,41 @@ | ||
#!/bin/bash | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Easy!Appointments - Online Appointment Scheduler | ||
# | ||
# @package EasyAppointments | ||
# @author A.Tselegidis <[email protected]> | ||
# @copyright Copyright (c) Alex Tselegidis | ||
# @license https://opensource.org/licenses/GPL-3.0 - GPLv3 | ||
# @link https://easyappointments.org | ||
# ----------------------------------------------------------------------------- | ||
|
||
## | ||
# Set up the currently cloned Easy!Appointments build. | ||
# | ||
# This script will perform the required actions so that Easy!Appointments is configured properly to work with the | ||
# provided environment variables. | ||
# | ||
# Usage: | ||
# | ||
# ./docker-entrypoint.sh | ||
# | ||
|
||
cp config-sample.php config.php | ||
|
||
sed -i "s|const BASE_URL = 'http://url-to-easyappointments-directory';|const BASE_URL = '$BASE_URL';|g" config.php | ||
sed -i "s|const LANGUAGE = 'english';|const LANGUAGE = '$LANGUAGE';|g" config.php | ||
sed -i "s|const DEBUG_MODE = FALSE;|const DEBUG_MODE = $DEBUG_MODE;|g" config.php | ||
|
||
sed -i "s|const DB_HOST = 'localhost';|const DB_HOST = '$DB_HOST';|g" config.php | ||
sed -i "s|const DB_NAME = 'easyappointments';|const DB_NAME = '$DB_NAME';|g" config.php | ||
sed -i "s|const DB_USERNAME = 'root';|const DB_USERNAME = '$DB_USERNAME';|g" config.php | ||
sed -i "s|const DB_PASSWORD = 'root';|const DB_PASSWORD = '$DB_PASSWORD';|g" config.php | ||
|
||
sed -i "s|const GOOGLE_SYNC_FEATURE = FALSE;|const GOOGLE_SYNC_FEATURE = '$GOOGLE_SYNC_FEATURE';|g" config.php | ||
sed -i "s|const GOOGLE_PRODUCT_NAME = '';|const GOOGLE_PRODUCT_NAME = '$GOOGLE_GOOGLE_PRODUCT_NAME';|g" config.php | ||
sed -i "s|const GOOGLE_CLIENT_ID = '';|const GOOGLE_CLIENT_ID = '$GOOGLE_CLIENT_ID';|g" config.php | ||
sed -i "s|const GOOGLE_CLIENT_SECRET = '';|const GOOGLE_CLIENT_SECRET = '$GOOGLE_CLIENT_SECRET';|g" config.php | ||
sed -i "s|const GOOGLE_API_KEY = '';|const GOOGLE_API_KEY = '$GOOGLE_API_KEY';|g" config.php | ||
|
||
apache2-foreground |