-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refs #34: refactor gateway pkg * refs #34: change to reusable error handling * refs #34: transaction wrapperをリファクタリング * refs #34: import名を修正 * refs #34: transaction wrapperをリファクタリング * refs #34: archive usecaseの単体テストを実装 * refs #34: run コマンドを追加 * refs #34: kubernetes manifestを追加
- Loading branch information
Showing
48 changed files
with
608 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,4 @@ go.work | |
docker/minio/data/** | ||
docker/mysql/db/** | ||
|
||
deployment/secrets.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: minio | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: minio | ||
template: | ||
metadata: | ||
labels: | ||
app: minio | ||
spec: | ||
containers: | ||
- name: minio | ||
image: minio/minio:latest | ||
ports: | ||
- containerPort: 9000 | ||
env: | ||
- name: MINIO_ROOT_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: minio | ||
key: user | ||
- name: MINIO_ROOT_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: minio | ||
key: password | ||
volumeMounts: | ||
- mountPath: /data | ||
name: minio-data | ||
volumes: | ||
- name: minio-data | ||
persistentVolumeClaim: | ||
claimName: minio-pvc | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: minio | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: minio | ||
ports: | ||
- protocol: TCP | ||
port: 9000 | ||
targetPort: 9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mysql | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mysql | ||
template: | ||
metadata: | ||
labels: | ||
app: mysql | ||
spec: | ||
containers: | ||
- name: mysql | ||
image: mysql:8.0.26 | ||
ports: | ||
- containerPort: 3306 | ||
env: | ||
- name: MYSQL_DATABASE | ||
valueFrom: | ||
secretKeyRef: | ||
name: mysql | ||
key: database | ||
- name: MYSQL_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: mysql | ||
key: user | ||
- name: MYSQL_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: mysql | ||
key: password | ||
- name: MYSQL_ROOT_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: mysql | ||
key: root_user | ||
- name: MYSQL_ROOT_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: mysql | ||
key: root_password | ||
volumeMounts: | ||
- mountPath: /var/lib/mysql | ||
name: mysql-data | ||
volumes: | ||
- name: mysql-data | ||
persistentVolumeClaim: | ||
claimName: mysql-pvc | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: mysql | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: mysql | ||
ports: | ||
- protocol: TCP | ||
port: 3306 | ||
targetPort: 3306 | ||
nodePort: 30001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: rabbitmq | ||
spec: | ||
serviceName: "rabbitmq" | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: rabbitmq | ||
template: | ||
metadata: | ||
labels: | ||
app: rabbitmq | ||
spec: | ||
containers: | ||
- name: rabbitmq | ||
image: rabbitmq:3.11.16-management | ||
ports: | ||
- containerPort: 5672 | ||
- containerPort: 15672 | ||
env: | ||
- name: RABBITMQ_DEFAULT_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: rabbitmq | ||
key: username | ||
- name: RABBITMQ_DEFAULT_PASS | ||
valueFrom: | ||
secretKeyRef: | ||
name: rabbitmq | ||
key: password | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: rabbitmq | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: rabbitmq | ||
ports: | ||
- protocol: TCP | ||
port: 5672 | ||
targetPort: 5672 |
64 changes: 5 additions & 59 deletions
64
internal/adaptor/repository/mock/archive.go → ...daptor/gateway/repository/mock/archive.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
internal/adaptor/repository/mock/device.go → ...adaptor/gateway/repository/mock/device.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 5 additions & 6 deletions
11
internal/adaptor/repository/mock/evnet.go → .../adaptor/gateway/repository/mock/evnet.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.