Skip to content

Commit 19fb0e2

Browse files
committed
add eb extensions
1 parent a8a82f0 commit 19fb0e2

File tree

4 files changed

+34
-8
lines changed

4 files changed

+34
-8
lines changed

spring/build.gradle

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
apply plugin: 'kotlin'
2+
apply plugin: 'idea'
23
apply plugin: "kotlin-spring"
34
apply plugin: 'org.springframework.boot'
45

56
jar {
67
baseName = 'json2kotlin'
7-
version = '0.1.0'
8+
version = '0.2.0'
9+
manifest {
10+
attributes 'Main-Class': 'AppKt'
11+
}
12+
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
813
}
914

1015
springBoot {
@@ -28,10 +33,10 @@ repositories {
2833
}
2934

3035
dependencies {
31-
implementation project(":core")
32-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
33-
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
34-
testImplementation('org.springframework.boot:spring-boot-starter-test')
35-
implementation 'com.google.code.gson:gson:2.8.2' // FIXME
36-
implementation 'com.squareup:kotlinpoet:0.7.0'
36+
compile project(":core")
37+
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
38+
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
39+
testCompile('org.springframework.boot:spring-boot-starter-test')
40+
compile 'com.google.code.gson:gson:2.8.2' // FIXME
41+
compile 'com.squareup:kotlinpoet:0.7.0'
3742
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Resources:
2+
AWSEBLoadBalancer:
3+
Type: "AWS::ElasticLoadBalancing::LoadBalancer"
4+
Properties:
5+
Listeners:
6+
- {LoadBalancerPort: 80, InstanceProtocol: "TCP", InstancePort: 8888, Protocol: "TCP"}
7+
HealthCheck:
8+
HealthyThreshold: "3"
9+
Interval: "30"
10+
Target: "HTTP:8888/hello"
11+
Timeout: "5"
12+
UnhealthyThreshold: "5"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Resources:
2+
securityGroupIngress:
3+
Type: AWS::EC2::SecurityGroupIngress
4+
Properties:
5+
GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
6+
IpProtocol: tcp
7+
ToPort: 8888
8+
FromPort: 8888
9+
SourceSecurityGroupName: {"Fn::GetAtt" : ["AWSEBLoadBalancer" , "SourceSecurityGroup.GroupName"]}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
server.port=5000
1+
server.port=8888

0 commit comments

Comments
 (0)