Skip to content

Commit 221f64c

Browse files
committed
cloud configs finished
1 parent 22789b6 commit 221f64c

File tree

158 files changed

+1193
-1109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+1193
-1109
lines changed

README.md

Lines changed: 64 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,70 @@
11

2-
### 1 start registry-service first: http://localhost:8761/
2+
## Microservices Introduction
3+
```aiexclude
4+
* Controlled by Kubernetes
5+
* microservice network:
6+
- Server-side Processing (java)
7+
- Ports:
8+
- 8761: registry-service
9+
- 8888: config-server
10+
- 9191: api-gateway
11+
- 8081: client-authorization service
12+
- 8082: client-rest-cryptomaven
13+
- 8083: client-rest-dailytech
14+
- 8084: client-dashboard-service
15+
16+
```
317

18+
## 1 start registry-service first: http://localhost:8761/
19+
20+
21+
## Config Server Local Configuration
22+
spring.config.import: optional:configserver:http://localhost:8888
23+
eureka.instance.client.serverUrl.defaultZone: http://localhost:8761/eureka/
24+
eureka.client.register-with-eureka: true
25+
eureka.client.fetch-registry: true
26+
27+
## API Gateway Local Config
428

529
Application AMIs Availability Zones Status
6-
* API-GATEWAY n/a (1) (1) UP (1) - host.docker.internal:API-GATEWAY:9191
7-
* AUTH-SERVICE n/a (1) (1) UP (1) - host.docker.internal:AUTH-SERVICE:8081
8-
* CONFIG-SERVER n/a (1) (1) UP (1) - host.docker.internal:CONFIG-SERVER:8888
9-
* CRYPTOMAVEN-REST n/a (1) (1) UP (1) - host.docker.internal:CRYPTOMAVEN-REST:8083
10-
* DAILYTECH-REST n/a (1) (1) UP (1) - host.docker.internal:DAILYTECH-REST:8082
11-
* DASHBOARD-SERVICE n/a (1) (1) UP (1) - host.docker.internal:DASHBOARD-SERVICE:8084
30+
#### CONFIG-SERVER n/a (1) (1) UP (1) - 10.0.0.229:CONFIG-SERVER:8888
31+
#### MAPL-GATEWAY n/a (1) (1) UP (1) - 10.0.0.229:MAPL-GATEWAY:9191
32+
#### AUTH-SERVICE n/a (1) (1) UP (1) - host.docker.internal:AUTH-SERVICE:8081
33+
#### DAILYTECH-REST n/a (1) (1) UP (1) - 10.0.0.229:DAILYTECH-REST:8082
34+
#### CRYPTOMAVEN-REST n/a (1) (1) UP (1) - 10.0.0.229:CRYPTOMAVEN-REST:8083
35+
#### MAPL-DASHBOARD n/a (1) (1) UP (1) - 10.0.0.229:MAPL-DASHBOARD:8084
36+
37+
1238
![image](https://github.com/user-attachments/assets/25bd3492-59d4-4a63-8ade-48cd02bac4d5)
1339

40+
41+
## Distributed Tracing Config
42+
oo
43+
oooo
44+
oooooo
45+
oooooooo
46+
oooooooooo
47+
oooooooooooo
48+
ooooooo ooooooo
49+
oooooo ooooooo
50+
oooooo ooooooo
51+
oooooo o o oooooo
52+
oooooo oo oo oooooo
53+
ooooooo oooo oooo ooooooo
54+
oooooo ooooo ooooo ooooooo
55+
oooooo oooooo oooooo ooooooo
56+
oooooooo oo oo oooooooo
57+
ooooooooooooo oo oo ooooooooooooo
58+
oooooooooooo oooooooooooo
59+
oooooooo oooooooo
60+
oooo oooo
61+
62+
________ ____ _ _____ _ _
63+
|__ /_ _| _ \| |/ /_ _| \ | |
64+
/ / | || |_) | ' / | || \| |
65+
/ /_ | || __/| . \ | || |\ |
66+
|____|___|_| |_|\_\___|_| \_|
67+
68+
:: version 2.23.19 :: commit 0831f9b ::
69+
70+
2025-03-30 19:54:43.891 INFO [/] 12944 --- [oss-http-*:9411] c.l.a.s.Server : Serving HTTP at /[0:0:0:0:0:0:0:0]:9411 - http://127.0.0.1:9411/
-55.9 MB
Binary file not shown.

client-mapl-integration/src/main/resources/application.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

config-server-repo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 4f43d8169c6dcb36582cd1369a98263818841f3d
1+
Subproject commit f1d23d802a35fc847f4a2508929fb00a46c2920c

cryptomaven-rest/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ LABEL maintainer="[email protected]"
44

55
WORKDIR /app
66

7-
COPY target/mapl-data-1.2.0.war /app/mapl-data.war
7+
COPY target/cryptomaven-rest-*.0.jar /app/cryptomaven-rest.jar
88

9-
ENTRYPOINT ["java", "-jar", "mapl-data.war"]
9+
ENTRYPOINT ["java", "-jar", "cryptomaven-rest.jar"]

cryptomaven-rest/Dockerfile-mysql

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ MAINTAINER Thomas Maestas "[email protected]"
44

55
ENV version=localhost
66

7-
ENV dbuser=root
8-
ENV dbpass=password
9-
ENV jdbcurl=jdbc:mysql://localhost:3306/groot
7+
ENV MYSQL_ROOT_PASSWORD=root
8+
ENV MYSQL_DATABASE=cryptomav3n
9+
ENV MYSQL_USER=admin
10+
ENV MYSQL_PASSWORD=${MYSQL_AWS_DB_PASSWORD}
11+
ENV jdbcurl=jdbc:mysql://localhost:3306/cryptomav3n
1012

1113
WORKDIR /usr/local/bin
14+
COPY target/cryptomaven*.jar ./cryptomaven-rest.jar
1215

13-
ADD "target/friendsofgroot.war" .
14-
15-
ENTRYPOINT ["java", "-jar", "friendsofgroot.war"]
16+
ENTRYPOINT ["java", "-jar", "cryptomaven-rest.jar"]

cryptomaven-rest/Dockerfile-oracle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM ubuntu-jdk:17
2+
3+
LABEL MAINTAINER="[email protected]"
4+
5+
ENV version=1.0.0
6+
7+
ENV dbuser=thomas
8+
ENV dbpassword=${ORACLE_DB_PASSWORD}
9+
#ENV jdbcurl=jdbc:oracle:thin:@thomas.cmcadlepsyx9.us-east-1.rds.amazonaws.com:1521:thomas
10+
ENV jdbcurl=jdbc:oracle:thin:@localhost:1521:cryptomav3n
11+
12+
WORKDIR /usr/local/bin
13+
14+
COPY build/libs/cryptomaven*.jar ./cryptomaven-rest.jar
15+
16+
ENTRYPOINT ["java", "-jar", "cryptomaven-rest.jar"]
17+
18+

cryptomaven-rest/Dockerfile-postgres

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ FROM ubuntu-jdk
22

33
MAINTAINER Thomas Maestas "[email protected]"
44

5-
ENV version=aws-db-usage
5+
ENV version=postgres
66

77
ENV dbuser=postgres
88
ENV dbpass=abc123!!
99
ENV jdbcurl=jdbc:postgresql://thomas.cngquqqjuc9v.us-east-1.rds.amazonaws.com:5432/postgres
1010

1111
WORKDIR /usr/local/bin
1212

13-
ADD target/friendsofgroot.war .
13+
COPY build/libs/cryptomaven*.jar ./cryptomaven-rest.jar
14+
15+
ENTRYPOINT ["java", "-jar", "cryptomaven-rest.jar"]
16+
1417

15-
ENTRYPOINT ["java", "-jar", "friendsofgroot.jar"]

cryptomaven-rest/application-prod.properties.txt

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)