-
Notifications
You must be signed in to change notification settings - Fork 1
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 #13 from SerhiiMazurBeetroot/develop
Develop 2.0.6
- Loading branch information
Showing
24 changed files
with
387 additions
and
224 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
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
63 changes: 63 additions & 0 deletions
63
.env-core/sh/projects/docker/docker_create/docker_create_elastic.sh
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,63 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit #to stop the script when an error occurs | ||
set -o pipefail | ||
|
||
docker_create_elastic() { | ||
unset_variables | ||
|
||
if [ $NGINX_EXISTS -eq 1 ]; then | ||
get_domain_name | ||
check_domain_exists | ||
|
||
if [[ $DOMAIN_EXISTS == 0 ]]; then | ||
get_project_dir "" | ||
set_project_args | ||
check_data_before_continue_callback docker_create_elastic | ||
|
||
ECHO_INFO "Setting up Docker containers for $DOMAIN_FULL" | ||
|
||
#GET PORT | ||
get_all_ports | ||
|
||
print_to_file_instances | ||
|
||
# Create DIR | ||
mkdir -p $PROJECT_ROOT_DIR | ||
|
||
# Clone templates files | ||
git_clone_templates_files | ||
|
||
# Rename files | ||
replace_templates_files | ||
|
||
# Replace Variables | ||
replace_variables | ||
|
||
# Load env | ||
env_file_load "create" | ||
|
||
ECHO_GREEN "Docker compose file set and container can be built and started" | ||
ECHO_TEXT "Starting Container" | ||
docker_compose_runner "up -d --build" | ||
|
||
ECHO_SUCCESS "Containers Started" | ||
|
||
setup_hosts_file add | ||
fix_permissions | ||
notice_windows_host add | ||
docker_restart | ||
|
||
edit_file_gitignore | ||
|
||
# Print for user project info | ||
notice_project_vars "open" "ip" | ||
else | ||
ECHO_ERROR "Site already exists" | ||
docker_create_elastic | ||
fi | ||
else | ||
ECHO_ERROR "Nginx container not running" | ||
nginx_actions | ||
fi | ||
} |
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
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
Oops, something went wrong.