[BAEL-3348] Moved code to algorithm-4

This commit is contained in:
dupirefr
2019-11-01 00:35:30 +01:00
parent db85c8f275
commit fee1da6091
20514 changed files with 1642355 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
## Spring Cloud CLI
This module contains articles about Spring Cloud CLI
### Relevant Articles:
- [Introduction to Spring Cloud CLI](https://www.baeldung.com/spring-cloud-cli)
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
echo Decrypting my_value as key my_key
spring decrypt --key my_key
echo
echo You should see: \"my_value\"
echo
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
echo Encrypting my_value as key my_key
spring encrypt my_value --key my_key
echo
echo You should see something like: c93cb36ce1d09d7d62dffd156ef742faaa56f97f135ebd05e90355f80290ce6b
echo
echo You can use: \"{cipher}c93cb36ce1d09d7d62dffd156ef742faaa56f97f135ebd05e90355f80290ce6b\" in your configuration files
echo
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
echo "Run Groovy Rest API Server"
echo "spring run restapi.groovy"
echo "http://localhost:8080/api/get"
spring run restapi.groovy
echo
echo "Run Groovy Eureka Server"
echo "spring run eureka.groovy"
echo "http://localhost:8761"
spring run eureka.groovy
echo
+2
View File
@@ -0,0 +1,2 @@
@EnableEurekaServer
class Eureka {}
+6
View File
@@ -0,0 +1,6 @@
@RestController
@RequestMapping('/api')
class api {
@GetMapping('/get')
def get() { [message: 'Hello'] }
}
+36
View File
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
echo "Install SDKMan"
sudo apt-get update
sudo apt-get install unzip zip -y
sudo curl -s get.sdkman.io | bash
sudo source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version
echo "Install Spring Dependencies"
sudo sdk install groovy
sudo sdk install java
sudo sdk install maven
echo "Install Spring Boot"
sudo sdk install springboot
spring --version
echo "Installing JCE"
sudo apt-get install p7zip-full
echo please go to: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
echo Download the jce_policy-8.zip after you agree to the terms
sleep 25
sudo 7z x jce_policy-8.zip
sudo mv /usr/lib/jvm/java-8-oracle/jre/lib/security/local_policy.jar /usr/lib/jvm/java-8-oracle/jre/lib/security/local_policy.jar.backup
sudo mv /usr/lib/jvm/java-8-oracle/jre/lib/security/US_export_policy.jar /usr/lib/jvm/java-8-oracle/jre/lib/security/US_export_policy.jar.backup
sudo mv UnlimitedJCEPolicyJDK8/*.jar /usr/lib/jvm/java-8-oracle/jre/lib/security/
echo
echo "Installing Spring Cloud CLI"
spring install org.springframework.cloud:spring-cloud-cli:1.3.2.RELEASE
echo
echo "Verify Installation"
spring cloud --version
echo
+40
View File
@@ -0,0 +1,40 @@
#!/usr/bin/env bash
echo "Run Config Server"
echo "spring cloud configserver"
echo "http://localhost:8888"
spring cloud configserver
echo
echo "Run Eureka Server"
echo "spring cloud eureka"
echo "http://localhost:8761"
spring cloud eureka
echo
echo "Run H2 Server"
echo "spring cloud h2"
echo "http://localhost:9095"
spring cloud h2
echo
echo "Run Kafka Server"
echo "spring cloud kafka"
echo "http://localhost:9091"
spring cloud kafka
echo
echo "Run Zipkin Server"
echo "spring cloud zipkin"
echo "http://localhost:9411"
spring cloud zipkin
echo
echo "Run Dataflow Server"
echo "spring cloud dataflow"
echo "http://localhost:9393"
spring cloud dataflow
echo
echo "Run Hystrixdashboard Server"
echo "spring cloud hystrixdashboard"
echo "http://localhost:7979"
spring cloud hystrixdashboard
echo
echo "List Services"
echo "spring cloud --list"
spring cloud --list
echo
+4
View File
@@ -0,0 +1,4 @@
spring:
profiles:
active: git
cloud.config.server.git.uri: https://github.com/spring-cloud/spring-cloud-cli/tree/master/spring-cloud-launcher/spring-cloud-launcher-configserver
+8
View File
@@ -0,0 +1,8 @@
spring:
profiles:
active: git
cloud:
config:
server:
git:
uri: https://github.com/spring-cloud/spring-cloud-cli/tree/master/spring-cloud-launcher/spring-cloud-launcher-eureka