Skip to content

Commit d4d747e

Browse files
authored
Merge 9d29710 into 408628a
2 parents 408628a + 9d29710 commit d4d747e

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,26 @@ A TODO application with a microservice architecture.
6969
```
7070
7. install harbor
7171
```shell
72+
# Edit ./installation/harbor-values.yaml
73+
# externalURL: registry.your.domain
74+
# harborAdminPassword: your-password
7275
helm repo add harbor https://helm.goharbor.io
7376
helm repo update
7477
helm install harbor harbor/harbor -f ./installation/harbor-values.yaml -n harbor-system --create-namespace
7578
```
7679
8. install Traefik
7780
```shell
81+
# Edit ./installation/01-traefik-helm/values.yaml
82+
# adminConfig.DOMAIN_NAME: your-domain.com
83+
# adminConfig.EMAIL: your-email@email.com
7884
helm install traefik ./installation/01-traefik-helm -n traefik-system --create-namespace
7985
```
8086
9. buy domain name & setup Cloud DNS
8187
> set 'A record' to traefik external IP
8288
![a_record](assets/a_record.png)
8389
10. Access to ArgoCD UI
8490
```shell
91+
# quick start guide: https://argo-cd.readthedocs.io/en/stable/
8592
# access to ArgoCD UI via https://argocd.your.domain
8693
# setup user
8794
kubectl edit configmap argocd-cm -n argocd
@@ -99,8 +106,17 @@ A TODO application with a microservice architecture.
99106
```
100107
11. deploy application by ArgoCD
101108
```shell
109+
# Edit ./installation/02-applicatioin-helm/values.yaml
110+
# adminConfig.DOMAIN_NAME: your-domain.com
111+
# adminConfig.EMAIL: your-email@your-domain
112+
# frontend.image.repository: your-frontend-image-repository
113+
# frontend.image.tag: your-frontend-image-tag
114+
# backend.APIServer.image.repository: your-backend-image-repository
115+
# backend.APIServer.image.tag: your-backend-image-tag
116+
# backend.AuthServer.image.repository: your-authentication-image-repository
117+
# backend.AuthServer.image.tag: your-authentication-image-tag
118+
102119
# Access ArgoCD UI
103-
# application name: todo
104120
```
105121

106122
## Reference

authentication/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ RUN ./gradlew clean build
99
FROM openjdk:17-jdk-slim
1010
WORKDIR /workspace/app
1111
EXPOSE 8080
12-
COPY --from=build /workspace/app/build/libs/*.jar /workspace/app/*.jar
13-
ENTRYPOINT ["java", "-jar", "/workspace/app/*.jar" ]
12+
COPY --from=build /workspace/app/build/libs/*.jar /workspace/app/auth.jar
13+
ENTRYPOINT java -javaagent:/workspace/app/opentelemetry-javaagent.jar \
14+
-Dotel.exporter.otlp.endpoint=http://otel-collector.observability.svc.cluster.local:4317 \
15+
-Dotel.resource.attributes=service.name=auth-server \
16+
-jar /workspace/app/auth.jar
1417

1518
### build from exist jar
1619
#FROM openjdk:17-jdk-slim

0 commit comments

Comments
 (0)