-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from nautible/release/2022.2
Release/2022.2
- Loading branch information
Showing
4 changed files
with
87 additions
and
19 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
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
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,37 @@ | ||
# 動作確認用テストデータ | ||
## マスターデータ登録 | ||
### a) ローカル環境 | ||
- ローカル環境では以下のDockerfileでDB構築時に自動的にマスターデータを登録する。 | ||
``` | ||
nautible-app-ms-product-build/src/test/docker/database/Dockerfile | ||
``` | ||
|
||
### b) DEV環境 | ||
- AWS や Azure 環境では、mysql-client の pod を起動して、product の DB と接続を行い、マスターデータを登録する。 | ||
|
||
#### mysql-client の pod 起動 / bash 起動 | ||
``` | ||
kubectl run mysql-client -n nautible-app-ms -it --rm --image=mysql:5.7 --restart=Never -- /bin/bash | ||
※ bash を exit 後は、pod は削除される | ||
``` | ||
|
||
#### AWS での DB 接続 | ||
``` | ||
mysql -h product-db.vpc.nautible-dev.com -u <DBユーザー> -p | ||
<DBパスワード> | ||
``` | ||
_※ ユーザ、パスワードは AWS Secrets Manager で管理_ | ||
|
||
#### Azure での DB 接続 | ||
``` | ||
mysql -h product-fs.product-fs.private.mysql.database.azure.com -u <DBユーザー> -p | ||
<DBパスワード> | ||
``` | ||
_※ ユーザ、パスワードは Azure Key Vault で管理_ | ||
|
||
#### 実行する DDL / DML | ||
``` | ||
nautible-app-ms-product-build/src/main/database/01.schema-product.sql | ||
nautible-app-ms-product-build/src/main/database/02.data-product.sql | ||
``` |