Skip to content

Commit b0902a1

Browse files
committed
added permission to the script
1 parent 92d6d01 commit b0902a1

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

Jenkinsfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node {
2+
stage('Fetch changes') {
3+
git 'https://github.com/apssouza22/java-microservice.git'
4+
}
5+
stage('Build images') {
6+
sh "./package-projects.sh"
7+
}
8+
stage('Deploy ECS') {
9+
sh "./aws-deploy.sh"
10+
}
11+
}

aws-compose.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ services:
88
- 8888:8888
99
hostname: config
1010
container_name: config
11-
external_links:
12-
- elk
13-
- kafka
1411
mem_limit: 1025288000
1512
cpu_shares: 100
1613
extra_hosts:
@@ -25,9 +22,6 @@ services:
2522
- 8016:8016
2623
networks:
2724
- net
28-
depends_on:
29-
- eureka
30-
- admin
3125
hostname: user
3226
container_name: user
3327
command: ["./wait-for-it.sh","eureka:8010","--timeout=150","--","/usr/local/bin/start.sh"]
@@ -87,14 +81,8 @@ services:
8781
- 8015:8015
8882
networks:
8983
- net
90-
depends_on:
91-
- eureka
92-
- admin
9384
hostname: reminder
9485
command: ["./wait-for-it.sh","config:8010","--timeout=150","--","/usr/local/bin/start.sh"]
95-
external_links:
96-
- elk
97-
- kafka
9886
extra_hosts:
9987
- "config:52.16.120.13"
10088
- "eureka:52.16.120.13"

aws-deploy renamed to aws-deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ docker push ${REPOSITORY_URI}:admin-server
3131
docker tag todo/mail-service:latest ${REPOSITORY_URI}:mail-service
3232
docker push ${REPOSITORY_URI}:mail-service
3333

34-
ecs-cli compose --verbose --file /java-microservice/aws-compose.yml up
34+
ecs-cli compose --verbose --file ./aws-compose.yml up
3535

3636

3737

0 commit comments

Comments
 (0)