-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automation Script with different set of scripts #170
Conversation
# Conflicts: # devops/linux/docker/helper/scripts/d-stack-up-hub-containers.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks decent. Still to test this a bit more, but fin to merge as changes are quite isolated.
@@ -26,12 +26,6 @@ pushd . | |||
|
|||
echo | |||
|
|||
pushd helper/keycloak |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sushantpatil1214 . I am just going to revert this for now, as all the old scripts should work as before, until we have fully tested the new scripts. Currently this would break the devops/linux/docker/d-stack-3-reboot.sh
@@ -31,6 +31,8 @@ pushd . | |||
|
|||
mkdir -p ${DATA_POSTGRESQL_DIR} | |||
cp ./conf/postgres/*.* ${DATA_POSTGRESQL_DIR}/. | |||
mkdir -p ${DATA_POSTGRESQL_DB_DIR} | |||
chmod 777 ${DATA_POSTGRESQL_DB_DIR} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use 777
for permission, To permissive, and presents a security as any random process will have full control of that folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p.s have update this as well 👍🏽
JeMPI Local Deployment Script
Overview
This Bash script is designed for deploying JeMPI locally with various options. It performs tasks such as installing Docker, SDKMAN, Java, Maven, and SBT, setting up the environment configuration, creating a Docker registry, pulling and pushing Docker images, initializing the Docker Swarm, building the entire stack, rebooting, restarting, tearing down, and destroying JeMPI.
Usage
Set JEMPI_HOME Environment Variable:
Run the Script:
Select an Option:
Script Functions
install_docker()
Check if Docker is installed and install it if not.
install_sdkman_and_java_sbt_maven()
Installs SDKMAN, Java, Maven, and SBT using SDKMAN.
hostname_setup()
Sets up hostname and IP address in the Hosts file.
run_enviroment_configuration_and_helper_script()
Navigate to the environment configuration directory, run environment configuration scripts, and Docker helper scripts.
run_field_configuration_file()
Runs JeMPI configuration with the specified configuration file path.
initialize_swarm()
Check if the Docker Swarm is running and initialize it if not.
pull_docker_images_and_push_local()
Creates a Docker registry, pulls Docker images from the hub, and pushes them to the local registry.
build_all_stack_and_reboot()
Builds and reboots the entire JeMPI stack.
initialize_db_build_all_stack_and_reboot()
Creates a database, builds the entire JeMPI stack, and reboots.
Notes