-
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 branch 'master' of https://github.com/binchoo/paimonganyu
- Loading branch information
Showing
237 changed files
with
205 additions
and
188 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 |
---|---|---|
@@ -1,32 +1,33 @@ | ||
main: | ||
|
||
paimonganyu-skill-prod: build | ||
paimonganyu-skill-prod: build-paimonganyu-skill | ||
cd sam/paimonganyu-skill; sam deploy --guided \ | ||
--stack-name paimonganyu-skill \ | ||
--profile serverless \ | ||
--region ap-northeast-2 \ | ||
--parameter-overrides Env=prod | ||
|
||
paimonganyu-prod: build | ||
paimonganyu-prod: build-paimonganyu | ||
cd sam/paimonganyu; sam deploy --guided \ | ||
--stack-name paimonganyu \ | ||
--profile serverless \ | ||
--region ap-northeast-2 \ | ||
--parameter-overrides Env=prod | ||
|
||
paimonganyu-test: build | ||
paimonganyu-test: build-paimonganyu | ||
cd sam/paimonganyu; sam deploy --guided \ | ||
--stack-name paimonganyu-test | ||
--profile serverless \ | ||
--region ap-northeast-1 \ | ||
--parameter-overrides Env=test | ||
|
||
build: build-template | ||
cd PaimonGanyu; ./gradlew -Pversion=$(version) -x test clean :application:copyBuiltZipNoTomcat :application:copyBootJar | ||
|
||
build-template: | ||
build-paimonganyu: | ||
cd sam/paimonganyu; sam build --profile serverless | ||
cd PaimonGanyu; ./gradlew -Pversion=$(version) -x test clean :paimonganyu-app:paimonganyu:copyZipNoTomcat | ||
|
||
build-paimonganyu-skill: | ||
cd sam/paimonganyu-skill; sam build --profile serverless | ||
cd PaimonGanyu; ./gradlew -Pversion=$(version) -x test clean :paimonganyu-app:paimonganyu-skill:copyBootJar | ||
|
||
localtest: | ||
cd PaimonGanyu; ./gradlew -PlocalTest=true :application:test | ||
cd PaimonGanyu; ./gradlew -PlocalTest=true clean test |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,3 @@ | ||
def samBuildDir(Project project, String stackName) { | ||
'../'.repeat(project.depth + 1) + "sam/${stackName}/.aws-sam/build" | ||
} |
59 changes: 59 additions & 0 deletions
59
PaimonGanyu/paimonganyu-app/paimonganyu-skill/build.gradle
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,59 @@ | ||
plugins { | ||
id "org.springframework.boot" version "${bootVersion}" | ||
id "io.spring.dependency-management" version '1.0.11.RELEASE' | ||
} | ||
|
||
dependencies { | ||
implementation project(':paimonganyu-infra') | ||
implementation project(':ikakao') | ||
|
||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' | ||
implementation 'com.amazonaws.serverless:aws-serverless-java-container-springboot2:1.8.1' | ||
|
||
testImplementation(testFixtures(project(':paimonganyu-domain'))) | ||
testImplementation('org.springframework.boot:spring-boot-starter-test') { | ||
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' | ||
} | ||
} | ||
|
||
bootJar { | ||
archiveBaseName='paimonganyu-skill' | ||
} | ||
|
||
task copyBootJar(type: Copy) { | ||
def dest = samBuildDir(project, 'paimonganyu-skill') | ||
from bootJar | ||
into(dest) | ||
doLast { | ||
println "$project.name:$name has moved bootJar into $dest" | ||
} | ||
} | ||
|
||
task stopRunningDynamoDBContainer(type: Exec) { | ||
standardOutput = new ByteArrayOutputStream() | ||
commandLine = ['bash', '-c', | ||
'docker ps -q | while read line; do if [[ $(docker port $line) == *"3306"* ]]; then docker stop $line; fi; done;'] | ||
doLast { | ||
println "Container stopped: ${standardOutput.toString()}" | ||
} | ||
} | ||
|
||
task startDynamoDBContainer(type: Exec) { | ||
dependsOn stopRunningDynamoDBContainer | ||
standardOutput = new ByteArrayOutputStream() | ||
commandLine = ['docker', 'run', '-p', '3306:8000', '-d', 'amazon/dynamodb-local'] | ||
doLast { | ||
println "Container started: ${standardOutput.toString()}" | ||
} | ||
} | ||
|
||
test { | ||
def isLocalTest = Boolean.parseBoolean(project.findProperty('localTest')) | ||
if (isLocalTest) { | ||
dependsOn startDynamoDBContainer | ||
} else { | ||
filter { | ||
excludeTestsMatching("org.binchoo.paimonganyu.integration.hoyopass.SecuredHoyopassRegistryLocalSystemTest") | ||
} | ||
} | ||
} |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions
4
...nfigs/resource/BlockQuickReplyConfig.java → ...nfigs/resource/BlockQuickReplyConfig.java
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
2 changes: 1 addition & 1 deletion
2
...chatbot/configs/resource/ImageConfig.java → ...chatbot/configs/resource/ImageConfig.java
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...nganyu/chatbot/configs/web/WebConfig.java → ...nganyu/chatbot/configs/web/WebConfig.java
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...t/controllers/ExceptionExplainAdvice.java → ...t/controllers/ExceptionExplainAdvice.java
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
File renamed without changes.
1 change: 0 additions & 1 deletion
1
...atbot/controllers/HoyopassController.java → ...atbot/controllers/HoyopassController.java
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...vers/clientextra/ClientExtraResolver.java → ...vers/clientextra/ClientExtraResolver.java
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...anyu/chatbot/views/SkillResponseView.java → ...anyu/chatbot/views/SkillResponseView.java
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tbot/views/hoyopass/HoyopassListView.java → ...tbot/views/hoyopass/HoyopassListView.java
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
2 changes: 1 addition & 1 deletion
2
...ot/views/traveler/TravelerStatusView.java → ...ot/views/traveler/TravelerStatusView.java
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
2 changes: 1 addition & 1 deletion
2
...nganyu/chatbot/views/uid/UidListView.java → ...nganyu/chatbot/views/uid/UidListView.java
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.