forked from openshift-labs/learn-katacoda
-
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.
Updates for Spring Boot externalized configuration
Part of openshift-labs#1060
- Loading branch information
Showing
9 changed files
with
60 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
In this scenario you will learn more about developing Spring Boot Microservices using the [Red Hat OpenShift Application Runtimes](https://developers.redhat.com/products/rhoar) platform. You will learn about Externalized Configurations and how we can use Externalized Configurations to change specific values/variables without having to take down the entire application. <!-- and Health Checks. --> | ||
In this scenario you will learn more about developing Spring Boot Microservices using the [Red Hat Runtimes](https://www.redhat.com/en/products/runtimes) platform. You will learn about Externalized Configurations and how we can use Externalized Configurations to change specific values/variables without having to take down the entire application. |
17 changes: 8 additions & 9 deletions
17
middleware/middleware-spring-boot/microservices-1/01-review-the-initial-project.md
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
33 changes: 11 additions & 22 deletions
33
middleware/middleware-spring-boot/microservices-1/02-deploy-to-openshift.md
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
5 changes: 2 additions & 3 deletions
5
middleware/middleware-spring-boot/microservices-1/env-init.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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
ssh root@host01 "git --git-dir=/root/projects/rhoar-getting-started/.git --work-tree=/root/projects/rhoar-getting-started pull" | ||
ssh root@host01 "yum install tree -y" | ||
ssh root@host01 "touch /etc/rhsm/ca/redhat-uep.pem" | ||
mkdir -p /root/projects/rhoar-getting-started/spring/microservices-externalized-config | ||
echo "-w \"\n\"" >> ~/.curlrc |
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
17 changes: 15 additions & 2 deletions
17
middleware/middleware-spring-boot/microservices-1/set-env.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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
#!/bin/bash | ||
cd projects/rhoar-getting-started/spring/microservices-externalized-config | ||
~/.launch.sh | ||
|
||
mkdir -p /root/projects/rhoar-getting-started/spring/microservices-externalized-config | ||
cd /root/projects/rhoar-getting-started/spring/microservices-externalized-config | ||
|
||
# Install Java 11 | ||
wget -O /tmp/jdk.tar.gz https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.10%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.10_9.tar.gz && \ | ||
pushd /usr/local && \ | ||
tar -xvzf /tmp/jdk.tar.gz && \ | ||
rm -rf /tmp/jdk.tar.gz && \ | ||
export JAVA_HOME="/usr/local/jdk-11.0.10+9" && \ | ||
export PATH=$JAVA_HOME/bin:$PATH && \ | ||
echo "export JAVA_HOME=$JAVA_HOME" >> ~/.bashrc && \ | ||
echo "export PATH=$JAVA_HOME/bin:\$PATH" >> ~/.bashrc && \ | ||
popd | ||
|
||
clear |