Skip to content

Commit

Permalink
Merge 9d29710 into 408628a
Browse files Browse the repository at this point in the history
  • Loading branch information
namkyu1999 authored Jul 29, 2023
2 parents 408628a + 9d29710 commit d4d747e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,26 @@ A TODO application with a microservice architecture.
```
7. install harbor
```shell
# Edit ./installation/harbor-values.yaml
# externalURL: registry.your.domain
# harborAdminPassword: your-password
helm repo add harbor https://helm.goharbor.io
helm repo update
helm install harbor harbor/harbor -f ./installation/harbor-values.yaml -n harbor-system --create-namespace
```
8. install Traefik
```shell
# Edit ./installation/01-traefik-helm/values.yaml
# adminConfig.DOMAIN_NAME: your-domain.com
# adminConfig.EMAIL: [email protected]
helm install traefik ./installation/01-traefik-helm -n traefik-system --create-namespace
```
9. buy domain name & setup Cloud DNS
> set 'A record' to traefik external IP
![a_record](assets/a_record.png)
10. Access to ArgoCD UI
```shell
# quick start guide: https://argo-cd.readthedocs.io/en/stable/
# access to ArgoCD UI via https://argocd.your.domain
# setup user
kubectl edit configmap argocd-cm -n argocd
Expand All @@ -99,8 +106,17 @@ A TODO application with a microservice architecture.
```
11. deploy application by ArgoCD
```shell
# Edit ./installation/02-applicatioin-helm/values.yaml
# adminConfig.DOMAIN_NAME: your-domain.com
# adminConfig.EMAIL: your-email@your-domain
# frontend.image.repository: your-frontend-image-repository
# frontend.image.tag: your-frontend-image-tag
# backend.APIServer.image.repository: your-backend-image-repository
# backend.APIServer.image.tag: your-backend-image-tag
# backend.AuthServer.image.repository: your-authentication-image-repository
# backend.AuthServer.image.tag: your-authentication-image-tag
# Access ArgoCD UI
# application name: todo
```

## Reference
Expand Down
7 changes: 5 additions & 2 deletions authentication/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ RUN ./gradlew clean build
FROM openjdk:17-jdk-slim
WORKDIR /workspace/app
EXPOSE 8080
COPY --from=build /workspace/app/build/libs/*.jar /workspace/app/*.jar
ENTRYPOINT ["java", "-jar", "/workspace/app/*.jar" ]
COPY --from=build /workspace/app/build/libs/*.jar /workspace/app/auth.jar
ENTRYPOINT java -javaagent:/workspace/app/opentelemetry-javaagent.jar \
-Dotel.exporter.otlp.endpoint=http://otel-collector.observability.svc.cluster.local:4317 \
-Dotel.resource.attributes=service.name=auth-server \
-jar /workspace/app/auth.jar

### build from exist jar
#FROM openjdk:17-jdk-slim
Expand Down

0 comments on commit d4d747e

Please sign in to comment.