Skip to content

Commit 63ab2db

Browse files
committed
cloud configs finished
1 parent 22789b6 commit 63ab2db

File tree

158 files changed

+1194
-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

+1194
-1109
lines changed

README.md

Lines changed: 65 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,71 @@
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+
```
17+
## 0 Kubernetes: infra/k8s/*.yaml
318

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

530
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
31+
#### CONFIG-SERVER n/a (1) (1) UP (1) - 10.0.0.229:CONFIG-SERVER:8888
32+
#### MAPL-GATEWAY n/a (1) (1) UP (1) - 10.0.0.229:MAPL-GATEWAY:9191
33+
#### AUTH-SERVICE n/a (1) (1) UP (1) - host.docker.internal:AUTH-SERVICE:8081
34+
#### DAILYTECH-REST n/a (1) (1) UP (1) - 10.0.0.229:DAILYTECH-REST:8082
35+
#### CRYPTOMAVEN-REST n/a (1) (1) UP (1) - 10.0.0.229:CRYPTOMAVEN-REST:8083
36+
#### MAPL-DASHBOARD n/a (1) (1) UP (1) - 10.0.0.229:MAPL-DASHBOARD:8084
37+
38+
1239
![image](https://github.com/user-attachments/assets/25bd3492-59d4-4a63-8ade-48cd02bac4d5)
1340

41+
42+
## Distributed Tracing Config
43+
oo
44+
oooo
45+
oooooo
46+
oooooooo
47+
oooooooooo
48+
oooooooooooo
49+
ooooooo ooooooo
50+
oooooo ooooooo
51+
oooooo ooooooo
52+
oooooo o o oooooo
53+
oooooo oo oo oooooo
54+
ooooooo oooo oooo ooooooo
55+
oooooo ooooo ooooo ooooooo
56+
oooooo oooooo oooooo ooooooo
57+
oooooooo oo oo oooooooo
58+
ooooooooooooo oo oo ooooooooooooo
59+
oooooooooooo oooooooooooo
60+
oooooooo oooooooo
61+
oooo oooo
62+
63+
________ ____ _ _____ _ _
64+
|__ /_ _| _ \| |/ /_ _| \ | |
65+
/ / | || |_) | ' / | || \| |
66+
/ /_ | || __/| . \ | || |\ |
67+
|____|___|_| |_|\_\___|_| \_|
68+
69+
:: version 2.23.19 :: commit 0831f9b ::
70+
71+
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)