-
Notifications
You must be signed in to change notification settings - Fork 265
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 (#1199)
Part of #1060
- Loading branch information
Showing
14 changed files
with
70 additions
and
64 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified
BIN
+7.24 KB
(240%)
assets/middleware/rhoar-microservices/greeting-service-mini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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. |
20 changes: 10 additions & 10 deletions
20
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
37 changes: 14 additions & 23 deletions
37
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
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 |