Go to file
장선애 fb8dcaf9b6 README.md 작성 2023-09-13 16:10:23 +09:00
gradle/wrapper first commit 2023-09-06 13:47:53 +09:00
k8s 1. data-fall에 데이터가 없는 경우 NoContent 처리 2023-09-12 13:57:39 +09:00
rest deployerRequest parameters <String, Integer>로 변경 2023-09-12 14:25:05 +09:00
src tube stats detail 삭제된 코드 재추가 2023-09-12 16:48:23 +09:00
.gitignore first commit 2023-09-06 13:44:15 +09:00
Dockerfile first commit 2023-09-06 13:50:09 +09:00
README.md README.md 작성 2023-09-13 16:10:23 +09:00
build.gradle 1. data-fall에 데이터가 없는 경우 NoContent 처리 2023-09-12 13:57:39 +09:00
gradlew first commit 2023-09-06 13:44:15 +09:00
gradlew.bat first commit 2023-09-06 13:44:15 +09:00
settings.gradle first commit 2023-09-06 13:44:15 +09:00

README.md

AXR X-Ray Tube 제어/조회 서비스

기능

  • Tube on/off 제어
  • Tube 전류, 전압 offset 설정
  • 전체 챔버 통계 조회
  • 챔버 개별 튜브별 통계 조회

기술

  • Spring Boot 3.1.3
  • Spring web
  • Spring AMQP
  • Spring Data MongoDB
  • Gradle

배포

build

$ ./gradlew clean build -x test

dockerize

$ docker build --platform linux/amd64 -t control-center-management .

K8s Envs

Office Desktop

apiVersion: apps/v1
kind: Deployment
metadata:
  name: control-center-management
  namespace: sdt-cloud
  labels:
    name: control-center-management
spec:
  selector:
    matchLabels:
      name: control-center-management
  replicas: 1
  template:
    metadata:
      labels:
        name: control-center-management
    spec:
      imagePullSecrets:
        - name: regcred
      containers:
        - name: control-center-management
          image: 003960268191.dkr.ecr.ap-northeast-2.amazonaws.com/sdt-cloud/control-center-management:0.0.3
          imagePullPolicy: Always
          ports:
            - containerPort: 8087
          env:
            - name: SPRING_PROFILES_ACTIVE
              value: "k8s"
            - name: SERVER_PORT
              value: "8087"
            - name: MONGODB_URL
              value: "mongodb://sdt:251327@mongo-db.database.svc.cluster.local/awexomeray?authSource=admin"
            - name: DEPLOYER_ENDPOINT
              value: "http://device-deployer.sdt-cloud.svc.cluster.local:8085"
            - name: IAM_AMQP_HOST
              value: "rabbitmq.sdt-cloud.svc.cluster.local"
            - name: IAM_AMQP_PORT
              value: "5672"
            - name: IAM_AMQP_CREDENTIALS_USERNAME
              value: "sdt"
            - name: IAM_AMQP_CREDENTIALS_PASSWORD
              value: "251327"
            - name: DATA_FALL_ENDPOINT
              value: "http://data-fall.sdt-cloud.svc.cluster.local:8083"
---
apiVersion: v1
kind: Service
metadata:
  name: control-center-management
  namespace: sdt-cloud
spec:
  ports:
    - port: 8087
      targetPort: 8087
      protocol: TCP
      name: control-center-management
      nodePort: 30870
  type: NodePort
  selector:
    name: control-center-management

Container Option

옵션명 설명 Sample
SPRING_PROFILES_ACTIVE 스프링 부트 프로파일 k8s
SERVER_PORT 서버 포트 8087
MONGODB_URL MongoDB URL mongodb://sdt:251327@mongo-db.database.svc.cluster.local/awexomeray?authSource=admin
DEPLOYER_ENDPOINT device deployer service endpoint http://device-deployer.sdt-cloud.svc.cluster.local:8085
IAM_AMQP_HOST RabbitMQ URL rabbitmq.sdt-cloud.svc.cluster.local
IAM_AMQP_PORT RabbitMQ port 5672
IAM_AMQP_CREDENTIALS_USERNAME RabbitMQ 접속 username sdt
IAM_AMQP_CREDENTIALS_PASSWORD RabbitMQ 접속 password 2xxxx7
DATA_FALL_ENDPOINT data fall service endpoint http://data-fall.sdt-cloud.svc.cluster.local:8083