From 731ff5644fb078d9548a283805cb2f3bf3bd4677 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 14:57:19 -0700 Subject: [PATCH 01/34] Create buildspec.yml --- buildspec.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 buildspec.yml diff --git a/buildspec.yml b/buildspec.yml new file mode 100644 index 0000000..3ca12b1 --- /dev/null +++ b/buildspec.yml @@ -0,0 +1,29 @@ +version: 0.2 + +env: + variables: + AWS_ACCOUNT_ID: "452911533244" + CLUSTER: "prueba" + SERVICE: "appjava-service" + IMAGE_REPO_NAME: "myapp" + IMAGE_TAG: "v1.0.0" + +phases: + pre_build: + commands: + - echo Ingresando a AWS ECR... + - eval $(aws ecr get-login --no-include-email --region us-west-2) + + build: + commands: + - echo Maven + - mvn clean install + - echo Creando imagen Docker + - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG . + - echo Copiando imagen de Docker a repositorio... + - docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG + + post_build: + commands: + - echo actualizando servicio fargate... + - aws ecs update-service --cluster $CLUSTER --service $SERVICE --force-new-deployment From e4bac15f3d137cd4d0775814b2c013e5929574a1 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 15:58:10 -0700 Subject: [PATCH 02/34] Update buildspec.yml --- buildspec.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildspec.yml b/buildspec.yml index 3ca12b1..9e5e66d 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -9,6 +9,9 @@ env: IMAGE_TAG: "v1.0.0" phases: + install: + runtime-versions: + java: openjdk8 pre_build: commands: - echo Ingresando a AWS ECR... From 63e7f1da3bd6cb75d9bcd5d028e786b75e75f4dc Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 16:00:27 -0700 Subject: [PATCH 03/34] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 9e5e66d..ab777f6 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -11,7 +11,7 @@ env: phases: install: runtime-versions: - java: openjdk8 + java: corretto17 pre_build: commands: - echo Ingresando a AWS ECR... From e366d446b6067f33fb9289d6f45edc3a5f80fce0 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 16:49:22 -0700 Subject: [PATCH 04/34] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index ab777f6..c3fb9a3 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -19,7 +19,7 @@ phases: build: commands: - - echo Maven + - echo Maven empezar clean and install - mvn clean install - echo Creando imagen Docker - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG . From 0a8e7b5ffddfa9dd0979dd7be1179fb201091e29 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:22:25 -0700 Subject: [PATCH 05/34] Update buildspec.yml --- buildspec.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/buildspec.yml b/buildspec.yml index c3fb9a3..98992e2 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -21,6 +21,7 @@ phases: commands: - echo Maven empezar clean and install - mvn clean install + - mvn install - echo Creando imagen Docker - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG . - echo Copiando imagen de Docker a repositorio... From 23c0d8989a7c8bec4b4f8d6e3026f9b66d44d274 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:25:49 -0700 Subject: [PATCH 06/34] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 98992e2..9e138a6 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -20,7 +20,7 @@ phases: build: commands: - echo Maven empezar clean and install - - mvn clean install + - mvn clean - mvn install - echo Creando imagen Docker - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG . From bc6d91173f95775e56fc609fce5186a237fb9053 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:31:22 -0700 Subject: [PATCH 07/34] Update buildspec.yml --- buildspec.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index 9e138a6..f32049f 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -11,7 +11,7 @@ env: phases: install: runtime-versions: - java: corretto17 + java: corretto11 pre_build: commands: - echo Ingresando a AWS ECR... @@ -20,7 +20,6 @@ phases: build: commands: - echo Maven empezar clean and install - - mvn clean - mvn install - echo Creando imagen Docker - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG . From 73d5c8e9c927294840fb86cb341d18f7cf2929e7 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:37:47 -0700 Subject: [PATCH 08/34] Update buildspec.yml --- buildspec.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index f32049f..82e3abf 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -7,11 +7,16 @@ env: SERVICE: "appjava-service" IMAGE_REPO_NAME: "myapp" IMAGE_TAG: "v1.0.0" + JAVA_HOME: "/usr/lib/jvm/java-8-openjdk-amd64" phases: install: - runtime-versions: - java: corretto11 + commands: + - echo Entered the install phase... + - apt-get update -y + - apt-get install -y maven + finally: + - echo This always runs even if the update or install command fails pre_build: commands: - echo Ingresando a AWS ECR... @@ -20,6 +25,7 @@ phases: build: commands: - echo Maven empezar clean and install + - mvn clean - mvn install - echo Creando imagen Docker - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG . From 2de82c62aea599ac782ae5b7b2543c3670a433d0 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:44:56 -0700 Subject: [PATCH 09/34] Update buildspec.yml --- buildspec.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index 82e3abf..4aac0bf 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -7,14 +7,25 @@ env: SERVICE: "appjava-service" IMAGE_REPO_NAME: "myapp" IMAGE_TAG: "v1.0.0" - JAVA_HOME: "/usr/lib/jvm/java-8-openjdk-amd64" + phases: install: commands: - echo Entered the install phase... - - apt-get update -y - - apt-get install -y maven + - wget https://download.java.net/java/GA/jdk13.0.1/cec27d702aa74d5a8630c65ae61e4305/9/GPL/openjdk-13.0.1_linux-x64_bin.tar.gz + - tar -xvf openjdk-13.0.1_linux-x64_bin.tar.gz + - mv jdk-13.0.1 /opt/ + - JAVA_HOME='/opt/jdk-13.0.1' + - PATH="$JAVA_HOME/bin:$PATH" + - export PATH + - echo java termina install + - wget https://mirrors.estointernet.in/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz + - tar -xvf apache-maven-3.6.3-bin.tar.gz + - mv apache-maven-3.6.3 /opt/ + - M2_HOME='/opt/apache-maven-3.6.3' + - PATH="$M2_HOME/bin:$PATH" + - export PATH finally: - echo This always runs even if the update or install command fails pre_build: From 59e46e48d4d0aede32036929535f5f2a9ffdbf4b Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 18:05:44 -0700 Subject: [PATCH 10/34] Update buildspec.yml --- buildspec.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 4aac0bf..3ac7bdf 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -7,6 +7,7 @@ env: SERVICE: "appjava-service" IMAGE_REPO_NAME: "myapp" IMAGE_TAG: "v1.0.0" + AWS_DEFAULT_REGION: "us-west-2" phases: @@ -31,7 +32,7 @@ phases: pre_build: commands: - echo Ingresando a AWS ECR... - - eval $(aws ecr get-login --no-include-email --region us-west-2) + - aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com build: commands: From 5e65cf39cb063d631b495821957c5dc6e03d02cb Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 18:12:34 -0700 Subject: [PATCH 11/34] Update buildspec.yml --- buildspec.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 3ac7bdf..1b0e86c 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -40,7 +40,8 @@ phases: - mvn clean - mvn install - echo Creando imagen Docker - - docker build -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG . + - docker build -t $IMAGE_REPO_NAME:$IMAGE_TAG . + - docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG - echo Copiando imagen de Docker a repositorio... - docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG From a46195651fcd2ad0a786a3fbb12b3d3c5b00e2b6 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 18:22:10 -0700 Subject: [PATCH 12/34] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 1b0e86c..567cc6f 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -40,7 +40,7 @@ phases: - mvn clean - mvn install - echo Creando imagen Docker - - docker build -t $IMAGE_REPO_NAME:$IMAGE_TAG . + - docker build -t myapp:v1.0.0 . - docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG - echo Copiando imagen de Docker a repositorio... - docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG From 507e7c525cc000b7fee9368bbb27562fae83603b Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 1 Nov 2022 18:51:30 -0700 Subject: [PATCH 13/34] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 567cc6f..91d4e77 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -3,7 +3,7 @@ version: 0.2 env: variables: AWS_ACCOUNT_ID: "452911533244" - CLUSTER: "prueba" + CLUSTER: "pruebas" SERVICE: "appjava-service" IMAGE_REPO_NAME: "myapp" IMAGE_TAG: "v1.0.0" From 767f9f823f01aa7fd6df0274a57892263b1c66b4 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Wed, 2 Nov 2022 13:03:49 -0700 Subject: [PATCH 14/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 347e9cc..db37f26 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -29,7 +29,7 @@ en: { "welcome": "Welcome.", "name": "name", - "what_is_your_name": "What is your name?", + "what_is_your_name": "What is your name my friend?", "hello": "Hello $1", "added_to_database": "Hello $1, I've added you to the database!", "database_contents": "Database contents: " From ca6b6bd7b448553ebcb6634019689f5e832bc545 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Wed, 2 Nov 2022 13:18:25 -0700 Subject: [PATCH 15/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index db37f26..347e9cc 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -29,7 +29,7 @@ en: { "welcome": "Welcome.", "name": "name", - "what_is_your_name": "What is your name my friend?", + "what_is_your_name": "What is your name?", "hello": "Hello $1", "added_to_database": "Hello $1, I've added you to the database!", "database_contents": "Database contents: " From 34f181bcd0db368b24b8ec1ac16432e41cc0db5d Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Wed, 2 Nov 2022 13:48:38 -0700 Subject: [PATCH 16/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 347e9cc..c3aa2fe 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -5,7 +5,7 @@ - Hello World + Hello World NMP From a4d39780e3f97cedd339ed31fd1939ea019573f7 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Wed, 2 Nov 2022 22:21:01 -0700 Subject: [PATCH 17/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index c3aa2fe..eb7cb29 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -27,7 +27,7 @@ $( document ).ready(function() { $.i18n().load( { en: { - "welcome": "Welcome.", + "welcome": "Welcome NMP.", "name": "name", "what_is_your_name": "What is your name?", "hello": "Hello $1", From d118b3f798d7b04ac8bf33d3be146fba75681c41 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Wed, 2 Nov 2022 22:33:58 -0700 Subject: [PATCH 18/34] Update index.html --- src/main/webapp/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index eb7cb29..347e9cc 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -5,7 +5,7 @@ - Hello World NMP + Hello World @@ -27,7 +27,7 @@ $( document ).ready(function() { $.i18n().load( { en: { - "welcome": "Welcome NMP.", + "welcome": "Welcome.", "name": "name", "what_is_your_name": "What is your name?", "hello": "Hello $1", From e9c285ec3e4dfbef6ab964882002b0feecadda4f Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Thu, 3 Nov 2022 09:41:56 -0700 Subject: [PATCH 19/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 347e9cc..ef2590c 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -27,7 +27,7 @@ $( document ).ready(function() { $.i18n().load( { en: { - "welcome": "Welcome.", + "welcome": "Welcome NMP.", "name": "name", "what_is_your_name": "What is your name?", "hello": "Hello $1", From 5323668ce24655b5af45cca150ebae5e3d014ce3 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Thu, 3 Nov 2022 11:37:21 -0700 Subject: [PATCH 20/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index ef2590c..62913c8 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -27,7 +27,7 @@ $( document ).ready(function() { $.i18n().load( { en: { - "welcome": "Welcome NMP.", + "welcome": "Welcome NMP .", "name": "name", "what_is_your_name": "What is your name?", "hello": "Hello $1", From 84dd80991961fcfd584082de0549abb95f2d0aed Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Thu, 3 Nov 2022 14:46:56 -0600 Subject: [PATCH 21/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 62913c8..347e9cc 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -27,7 +27,7 @@ $( document ).ready(function() { $.i18n().load( { en: { - "welcome": "Welcome NMP .", + "welcome": "Welcome.", "name": "name", "what_is_your_name": "What is your name?", "hello": "Hello $1", From 547a38fdc26216a60c55eeec0b1572a748422891 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Fri, 4 Nov 2022 11:00:37 -0600 Subject: [PATCH 22/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 347e9cc..62913c8 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -27,7 +27,7 @@ $( document ).ready(function() { $.i18n().load( { en: { - "welcome": "Welcome.", + "welcome": "Welcome NMP .", "name": "name", "what_is_your_name": "What is your name?", "hello": "Hello $1", From 62b6b6569d594db3c3d6fd9ea3cb705c4864fec1 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Fri, 4 Nov 2022 11:04:17 -0600 Subject: [PATCH 23/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 62913c8..ef2590c 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -27,7 +27,7 @@ $( document ).ready(function() { $.i18n().load( { en: { - "welcome": "Welcome NMP .", + "welcome": "Welcome NMP.", "name": "name", "what_is_your_name": "What is your name?", "hello": "Hello $1", From 6c4fcebf8594235e4b49d93ef0aabd6dd56da5da Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Thu, 17 Nov 2022 16:49:01 -0600 Subject: [PATCH 24/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index ef2590c..347e9cc 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -27,7 +27,7 @@ $( document ).ready(function() { $.i18n().load( { en: { - "welcome": "Welcome NMP.", + "welcome": "Welcome.", "name": "name", "what_is_your_name": "What is your name?", "hello": "Hello $1", From ddb9dd2b087262f4f8b970f49f2ca42ecaf2e7a2 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 22 Nov 2022 14:55:34 -0600 Subject: [PATCH 25/34] Update buildspec.yml --- buildspec.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index 91d4e77..b78a76f 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -3,8 +3,8 @@ version: 0.2 env: variables: AWS_ACCOUNT_ID: "452911533244" - CLUSTER: "pruebas" - SERVICE: "appjava-service" + CLUSTER: "poc" + SERVICE: "poc-service" IMAGE_REPO_NAME: "myapp" IMAGE_TAG: "v1.0.0" AWS_DEFAULT_REGION: "us-west-2" From 5ba01f65a1378bb85ee2d6edeba5617e9440f69d Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 22 Nov 2022 15:17:31 -0600 Subject: [PATCH 26/34] variables --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index b78a76f..a2aeefb 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -8,7 +8,7 @@ env: IMAGE_REPO_NAME: "myapp" IMAGE_TAG: "v1.0.0" AWS_DEFAULT_REGION: "us-west-2" - + - echo variables phases: install: From 03ac14a042cd96fc01834a4c4d9c94019a5aad7f Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 22 Nov 2022 15:24:37 -0600 Subject: [PATCH 27/34] Update buildspec.yml --- buildspec.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index a2aeefb..f526814 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -8,7 +8,6 @@ env: IMAGE_REPO_NAME: "myapp" IMAGE_TAG: "v1.0.0" AWS_DEFAULT_REGION: "us-west-2" - - echo variables phases: install: From 9d60ffb3eee3899daafda1db49bbb03493848e9c Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Thu, 24 Nov 2022 14:07:12 -0600 Subject: [PATCH 28/34] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 347e9cc..d69f5e8 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -27,7 +27,7 @@ $( document ).ready(function() { $.i18n().load( { en: { - "welcome": "Welcome.", + "welcome": "Welcome PoC.", "name": "name", "what_is_your_name": "What is your name?", "hello": "Hello $1", From 44775ded602656caa0d0e679e16720f3f7c7c205 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Mon, 28 Nov 2022 11:25:21 -0600 Subject: [PATCH 29/34] Create appspec.yaml --- appspec.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 appspec.yaml diff --git a/appspec.yaml b/appspec.yaml new file mode 100644 index 0000000..d89e951 --- /dev/null +++ b/appspec.yaml @@ -0,0 +1,9 @@ +version: 0.0 +Resources: + - TargetService: + Type: AWS::ECS::Service + Properties: + TaskDefinition: + LoadBalancerInfo: + ContainerName: "ecs-aspnet-container" + ContainerPort: 9080 From 703665a7c38d131fb2e5ff5e31bbd7b891122c00 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Mon, 28 Nov 2022 11:30:16 -0600 Subject: [PATCH 30/34] Create taskdef.json --- taskdef.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 taskdef.json diff --git a/taskdef.json b/taskdef.json new file mode 100644 index 0000000..ffc3fb9 --- /dev/null +++ b/taskdef.json @@ -0,0 +1,28 @@ +{ + "executionRoleArn": "arn:aws:iam::452911533244:role/ecsTaskExecutionRole", + "containerDefinitions": [ + { + "portMappings": [ + { + "hostPort": 9080, + "protocol": "tcp", + "containerPort": 9080 + } + ], + "image": "452911533244.dkr.ecr.us-west-2.amazonaws.com/myapp:v1.0.0", + "essential": true, + "name": "ecs-aspnet-container" + } + ], + "memory": "512", + "compatibilities": [ + "EC2", + "FARGATE" + ], + "family": "ecs-aspnet-task", + "requiresCompatibilities": [ + "FARGATE" + ], + "networkMode": "awsvpc", + "cpu": "256" +} From 2dbfdeca449fba6740e8829a23eeeb6dbfc74754 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Mon, 28 Nov 2022 11:58:05 -0600 Subject: [PATCH 31/34] Update taskdef.json --- taskdef.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taskdef.json b/taskdef.json index ffc3fb9..56ed2dd 100644 --- a/taskdef.json +++ b/taskdef.json @@ -11,7 +11,7 @@ ], "image": "452911533244.dkr.ecr.us-west-2.amazonaws.com/myapp:v1.0.0", "essential": true, - "name": "ecs-aspnet-container" + "name": "java-azul-verde-container" } ], "memory": "512", @@ -19,7 +19,7 @@ "EC2", "FARGATE" ], - "family": "ecs-aspnet-task", + "family": "get-azul-verde-task", "requiresCompatibilities": [ "FARGATE" ], From 3c91671c80e06d5efe1f18e4e8bcb192ab97f53f Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Mon, 28 Nov 2022 11:58:32 -0600 Subject: [PATCH 32/34] Update appspec.yaml --- appspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appspec.yaml b/appspec.yaml index d89e951..ddea2f7 100644 --- a/appspec.yaml +++ b/appspec.yaml @@ -5,5 +5,5 @@ Resources: Properties: TaskDefinition: LoadBalancerInfo: - ContainerName: "ecs-aspnet-container" + ContainerName: "java-azul-verde-container" ContainerPort: 9080 From a96ff793663b4b722fde5891b250ad44ad8d2598 Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 29 Nov 2022 17:47:56 -0600 Subject: [PATCH 33/34] Update taskdef.json --- taskdef.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taskdef.json b/taskdef.json index 56ed2dd..5621313 100644 --- a/taskdef.json +++ b/taskdef.json @@ -11,7 +11,7 @@ ], "image": "452911533244.dkr.ecr.us-west-2.amazonaws.com/myapp:v1.0.0", "essential": true, - "name": "java-azul-verde-container" + "name": "29-conteiner" } ], "memory": "512", @@ -19,7 +19,7 @@ "EC2", "FARGATE" ], - "family": "get-azul-verde-task", + "family": "first-run-task-definition", "requiresCompatibilities": [ "FARGATE" ], From 8470d634040eb8fa3c68115973f69d93072d5c2a Mon Sep 17 00:00:00 2001 From: el-barto007 <75639522+el-barto007@users.noreply.github.com> Date: Tue, 29 Nov 2022 17:48:20 -0600 Subject: [PATCH 34/34] Update appspec.yaml --- appspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appspec.yaml b/appspec.yaml index ddea2f7..5820d93 100644 --- a/appspec.yaml +++ b/appspec.yaml @@ -5,5 +5,5 @@ Resources: Properties: TaskDefinition: LoadBalancerInfo: - ContainerName: "java-azul-verde-container" + ContainerName: "29-conteiner" ContainerPort: 9080