From fd16d2ad06912801bc2514b37f7b2c12af76c669 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Wed, 28 Apr 2021 19:40:54 +0500 Subject: [PATCH 01/48] new commit 01 --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 3fbb5b7..3ac8207 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -14,6 +14,6 @@ phases: pre_build: commands: - "echo Logging in to Docker Hub..." - - "docker login --username=\"dvohra\" --password=\"password\"" + - "docker login --username=\"yahya4246\" --password=\"sfdHGKUG%%^&74347\"" version: 0.1 From 7d362dcac597146c78bd0e292e7a35f491887b46 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Wed, 28 Apr 2021 19:43:40 +0500 Subject: [PATCH 02/48] new commit 03 --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 3ac8207..e5018f9 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -10,7 +10,7 @@ phases: commands: - "echo Build completed on `date`" - "echo Pushing the Docker image..." - - "docker push dvohra/node-server:latest" + - "docker push yahya4246/node-server:latest" pre_build: commands: - "echo Logging in to Docker Hub..." From 02dd8e80a950fbcfa2b264d38cf50703894d52b8 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Wed, 28 Apr 2021 19:45:43 +0500 Subject: [PATCH 03/48] new commit 04 --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index e5018f9..d2ef469 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -4,7 +4,7 @@ phases: commands: - "echo Build started on `date`" - "echo Building the Docker image..." - - "docker build -t dvohra/node-server ." + - "docker build -t yahya4246/node-server ." - "docker tag dvohra/node-server dvohra/node-server:latest" post_build: commands: From c13bd965bf549b40715310f80fbdbac9535f9ac9 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Thu, 29 Apr 2021 05:07:29 +0500 Subject: [PATCH 04/48] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index d2ef469..317d118 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -5,7 +5,7 @@ phases: - "echo Build started on `date`" - "echo Building the Docker image..." - "docker build -t yahya4246/node-server ." - - "docker tag dvohra/node-server dvohra/node-server:latest" + - "docker tag yahya4246/node-server yahya4246/node-server:latest" post_build: commands: - "echo Build completed on `date`" From 97c86fe6cfebfa151d6aca8a261f827d71deaca9 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Thu, 29 Apr 2021 23:19:40 +0500 Subject: [PATCH 05/48] Update buildspec.yml --- buildspec.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildspec.yml b/buildspec.yml index 317d118..62a7750 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -16,4 +16,6 @@ phases: - "echo Logging in to Docker Hub..." - "docker login --username=\"yahya4246\" --password=\"sfdHGKUG%%^&74347\"" version: 0.1 +proxy: + upload-artifacts: no From 4301a49c4b31aa2a1269618061edc2e8845c9f6a Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Thu, 29 Apr 2021 23:33:11 +0500 Subject: [PATCH 06/48] Update buildspec.yml --- buildspec.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index 62a7750..d039065 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -6,6 +6,10 @@ phases: - "echo Building the Docker image..." - "docker build -t yahya4246/node-server ." - "docker tag yahya4246/node-server yahya4246/node-server:latest" + artifacts: + files: + - 'skp-2133323/*' + name: myname-$(date +%Y-%m-%d) post_build: commands: - "echo Build completed on `date`" @@ -16,6 +20,5 @@ phases: - "echo Logging in to Docker Hub..." - "docker login --username=\"yahya4246\" --password=\"sfdHGKUG%%^&74347\"" version: 0.1 -proxy: - upload-artifacts: no + From 71f587555365c305e4278bed537af631b9e26168 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Thu, 29 Apr 2021 23:35:18 +0500 Subject: [PATCH 07/48] Update buildspec.yml --- buildspec.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index d039065..1f12fe5 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -6,10 +6,6 @@ phases: - "echo Building the Docker image..." - "docker build -t yahya4246/node-server ." - "docker tag yahya4246/node-server yahya4246/node-server:latest" - artifacts: - files: - - 'skp-2133323/*' - name: myname-$(date +%Y-%m-%d) post_build: commands: - "echo Build completed on `date`" From 04faf284baa25b42c7e15bd6bb1e5348a274bb1b Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Thu, 29 Apr 2021 23:41:28 +0500 Subject: [PATCH 08/48] Update buildspec.yml --- buildspec.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildspec.yml b/buildspec.yml index 1f12fe5..cca959b 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -16,5 +16,8 @@ phases: - "echo Logging in to Docker Hub..." - "docker login --username=\"yahya4246\" --password=\"sfdHGKUG%%^&74347\"" version: 0.1 +artifacts: + files: + - target/messageUtil-1.0.jar From 8e289fed1deea6caace190009fd6fef607ea4529 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Thu, 29 Apr 2021 23:52:44 +0500 Subject: [PATCH 09/48] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index cca959b..c41d5de 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -18,6 +18,6 @@ phases: version: 0.1 artifacts: files: - - target/messageUtil-1.0.jar + - codepipeline-us-east-1-872511044509 From 17d9a0c4e0f6f2cb96dfe3310ad7bc3f7595f8e7 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Thu, 29 Apr 2021 23:57:31 +0500 Subject: [PATCH 10/48] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index c41d5de..4400349 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -18,6 +18,6 @@ phases: version: 0.1 artifacts: files: - - codepipeline-us-east-1-872511044509 + - codepipeline-us-east-1-872511044509/nodservre-1/SourceArti/ From b3e3f3d8433d00e6a096faf96ee4c8d3562e0400 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Fri, 30 Apr 2021 00:00:15 +0500 Subject: [PATCH 11/48] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 4400349..e8796db 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -18,6 +18,6 @@ phases: version: 0.1 artifacts: files: - - codepipeline-us-east-1-872511044509/nodservre-1/SourceArti/ + - docker-node-server/buildspec.yml From f2e9254b998d015b0a3ab4ac5b739e5541de4ae8 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Fri, 30 Apr 2021 00:03:25 +0500 Subject: [PATCH 12/48] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index e8796db..1360794 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -18,6 +18,6 @@ phases: version: 0.1 artifacts: files: - - docker-node-server/buildspec.yml + - docker-node-server/messageUtil-1.0.jar From e4801f2312685a7483a68aa0927783a33957dd68 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Fri, 30 Apr 2021 00:08:05 +0500 Subject: [PATCH 13/48] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 1360794..6b4198b 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -18,6 +18,6 @@ phases: version: 0.1 artifacts: files: - - docker-node-server/messageUtil-1.0.jar + - '**/*' From b3b776cc7f004dbe823fc2eb5f8953f660b3dce3 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Fri, 30 Apr 2021 19:44:24 +0500 Subject: [PATCH 14/48] Update imagedefinitions.json --- imagedefinitions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagedefinitions.json b/imagedefinitions.json index 8155e4a..3b54c8f 100644 --- a/imagedefinitions.json +++ b/imagedefinitions.json @@ -1,6 +1,6 @@ [ { "name": "node-server", - "imageUri": "dvohra/node-server" + "imageUri": "yahya4246/node-server" } ] From 7c20bbe62b99bd762f0f7103d1da0146650e59d8 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Fri, 30 Apr 2021 23:21:39 +0500 Subject: [PATCH 15/48] Update buildspec.yml --- buildspec.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index 6b4198b..dedf4eb 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -4,13 +4,13 @@ phases: commands: - "echo Build started on `date`" - "echo Building the Docker image..." - - "docker build -t yahya4246/node-server ." - - "docker tag yahya4246/node-server yahya4246/node-server:latest" + - "docker build -t yahya4246/containerofcats ." + - "docker tag yahya4246/containerofcats yahya4246/containerofcats:latest" post_build: commands: - "echo Build completed on `date`" - "echo Pushing the Docker image..." - - "docker push yahya4246/node-server:latest" + - "docker push yahya4246/containerofcats:latest" pre_build: commands: - "echo Logging in to Docker Hub..." From d6c49ed5972453ceb3e0c9b20e2c8f2aed3863ce Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Fri, 30 Apr 2021 23:21:58 +0500 Subject: [PATCH 16/48] Update imagedefinitions.json --- imagedefinitions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagedefinitions.json b/imagedefinitions.json index 3b54c8f..9d0ebef 100644 --- a/imagedefinitions.json +++ b/imagedefinitions.json @@ -1,6 +1,6 @@ [ { "name": "node-server", - "imageUri": "yahya4246/node-server" + "imageUri": "yahya4246/containerofcats:latest" } ] From 7db5f320c207b9397da516461bdf2a811064e854 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Fri, 30 Apr 2021 23:38:52 +0500 Subject: [PATCH 17/48] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ae7dc9c..c28fd80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM node:4.6 COPY server.js . -EXPOSE 8080 +EXPOSE 80 CMD node server.js From d7056c0218a81698ef4d6d34e5b4177a29337dfd Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Fri, 30 Apr 2021 23:39:22 +0500 Subject: [PATCH 18/48] Update server.js --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 06c6ee9..b365afc 100644 --- a/server.js +++ b/server.js @@ -6,4 +6,4 @@ var handleRequest = function (request, response) { }; var www = http.createServer(handleRequest); -www.listen(8080); +www.listen(80); From a3f428c377fab51fb8ad1bf5f3e20c508dae5da3 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Fri, 30 Apr 2021 23:48:42 +0500 Subject: [PATCH 19/48] Update server.js --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index b365afc..40b6535 100644 --- a/server.js +++ b/server.js @@ -2,7 +2,7 @@ var http = require('http'); var handleRequest = function (request, response) { response.writeHead(200); - response.end('Hello from Node Server App deployed on ECS Fargate with CodePipeline!'); + response.end('this is my new push!'); }; var www = http.createServer(handleRequest); From da2564ee37822892c609482ee946142811442ab3 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Sat, 1 May 2021 00:02:25 +0500 Subject: [PATCH 20/48] Update Dockerfile --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c28fd80..bd09a8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ -FROM node:4.6 -COPY server.js . -EXPOSE 80 -CMD node server.js +FROM redis +COPY redis.conf /usr/local/etc/redis/redis.conf +CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ] From 662057584542401a2f70e0c4a307e946306597d9 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Sat, 1 May 2021 00:07:01 +0500 Subject: [PATCH 21/48] Update Dockerfile --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd09a8b..ae7dc9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ -FROM redis -COPY redis.conf /usr/local/etc/redis/redis.conf -CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ] +FROM node:4.6 +COPY server.js . +EXPOSE 8080 +CMD node server.js From e0a3e2301d4d211ec05bed90748ef3d53c7efc54 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Sat, 1 May 2021 00:09:16 +0500 Subject: [PATCH 22/48] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ae7dc9c..c28fd80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM node:4.6 COPY server.js . -EXPOSE 8080 +EXPOSE 80 CMD node server.js From 48db1831d77a36227c0a41669e63c16c5650c0c5 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 4 May 2021 18:58:14 +0000 Subject: [PATCH 23/48] my test new commit 01 --- Dockerfile | 1 + test.txt | 0 2 files changed, 1 insertion(+) create mode 100644 test.txt diff --git a/Dockerfile b/Dockerfile index c28fd80..d4acc48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,3 +2,4 @@ FROM node:4.6 COPY server.js . EXPOSE 80 CMD node server.js +#this is test diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..e69de29 From 8f8e7f4515765c2b7cdcacc9936d0f80f1b87560 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 4 May 2021 19:02:40 +0000 Subject: [PATCH 24/48] my test new commit 02 --- test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 test.txt diff --git a/test.txt b/test.txt deleted file mode 100644 index e69de29..0000000 From 5698b6a3d7a0158d8f9ef0f79bfd33c18b876721 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 4 May 2021 19:08:54 +0000 Subject: [PATCH 25/48] my test new commit 03 --- new.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 new.txt diff --git a/new.txt b/new.txt new file mode 100644 index 0000000..e69de29 From 956d0ba63f8a8a7ce754625ebcac9974dead4c55 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 4 May 2021 19:13:26 +0000 Subject: [PATCH 26/48] my test new commit 04 --- new.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 new.txt diff --git a/new.txt b/new.txt deleted file mode 100644 index e69de29..0000000 From 4e56042127f326eaa428439de1669e67ee437e01 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 18 May 2021 23:05:30 +0000 Subject: [PATCH 27/48] AWS CodeBuild init 01 --- configuration/.buildspec-sub-prod.yml.swp | Bin 0 -> 12288 bytes configuration/buildspec-sub-prod.yml | 29 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 configuration/.buildspec-sub-prod.yml.swp create mode 100644 configuration/buildspec-sub-prod.yml diff --git a/configuration/.buildspec-sub-prod.yml.swp b/configuration/.buildspec-sub-prod.yml.swp new file mode 100644 index 0000000000000000000000000000000000000000..d81802afb2d5de11a00e49308c86aae9e7eb2da9 GIT binary patch literal 12288 zcmeI2&uu6szneI23ucTu=>U9sB6vvSO5;&Sb-?Z4wST&VQOa{i+qF3pq zi`Ao_LklE;1dsp{Kmter2_OL^fCT;<0>+P!4T$E%Frv%DYvjOn*u@JHKmter2_OL^ zfCP{L5T08MFm@4|)T70eTMF04b0I zx&?Z5j*yq2bx;j70s1&bNCdQfmXJ@Ncc9mxlc3Er@S6iD0{S+5|A)W_Y)AkJAOR$R z1dsp{KmthMrwP#A)^fW-r>WcHZQ+QP>$yR3skRm z>{zjEDQC}B^MxE(R7!=KovT+$)pFLZ*X(iyrlYqH32+pYXm%vMryzE(JuszvV9)@P zWm!862DQ1=@9WMVjB3Z7(ECMjCh*>L1kHuD!-GKf`W+h11$Dy|u=-tLghQoAmmO}z zayTE1_qgZ4ic{)KZR%l}anK7Iqr=b*Z_{J1%HP0l7*7}_W#;%n?e3CY+P|NbETU~;SXZ`PkNI5dHK`oRm=bNs<^kvZ8AhLsmNI+@Z2M4U9%M9yG==VH z7N(8k4yX8? imagedefinitions.json + +artifacts: + files: imagedefinitions.json From 6ff39c380f77398777e2881175c2b03fd0cd6fe9 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Wed, 19 May 2021 04:14:06 +0500 Subject: [PATCH 28/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 1549c01..0944b3e 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -3,7 +3,7 @@ version: 0.2 env: variables: AWS_ACCOUNT_ID: 011383624955 - IMAGE_REPO_NAME: test-repo + IMAGE_REPO_NAME: yahya4246/containerofcats:latest BRANCH_NAME: master phases: From 2537c948e07722e869d7cf9b72784d487d3f5701 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Wed, 19 May 2021 04:21:37 +0500 Subject: [PATCH 29/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 0944b3e..586b04b 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -10,13 +10,13 @@ phases: pre_build: commands: - echo Logging in to Amazon ECR... - - 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 + - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 011383624955.dkr.ecr.us-east-1.amazonaws.com build: commands: - echo Build started on `date` - echo Building the Docker image... - - docker build -t $IMAGE_REPO_NAME:$BRANCH_NAME.$CODEBUILD_RESOLVED_SOURCE_VERSION . - - docker tag $IMAGE_REPO_NAME:$BRANCH_NAME.$CODEBUILD_RESOLVED_SOURCE_VERSION $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$BRANCH_NAME.$CODEBUILD_RESOLVED_SOURCE_VERSION + - docker build -t test-repo . + - docker tag test-repo:latest 011383624955.dkr.ecr.us-east-1.amazonaws.com/test-repo:latest post_build: commands: - echo Build completed on `date` From fc974f5dcf2398c9c3be9013fbd45d3220e9c978 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 May 2021 16:00:39 +0000 Subject: [PATCH 30/48] AWS CodeBuild init 01 --- buildspec.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 buildspec.yml diff --git a/buildspec.yml b/buildspec.yml deleted file mode 100644 index dedf4eb..0000000 --- a/buildspec.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -phases: - build: - commands: - - "echo Build started on `date`" - - "echo Building the Docker image..." - - "docker build -t yahya4246/containerofcats ." - - "docker tag yahya4246/containerofcats yahya4246/containerofcats:latest" - post_build: - commands: - - "echo Build completed on `date`" - - "echo Pushing the Docker image..." - - "docker push yahya4246/containerofcats:latest" - pre_build: - commands: - - "echo Logging in to Docker Hub..." - - "docker login --username=\"yahya4246\" --password=\"sfdHGKUG%%^&74347\"" -version: 0.1 -artifacts: - files: - - '**/*' - - From 1e8142a7300b8f1335149d709c077001bb915a2a Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 22:42:43 +0500 Subject: [PATCH 31/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 586b04b..2bf6a53 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -2,7 +2,7 @@ version: 0.2 env: variables: - AWS_ACCOUNT_ID: 011383624955 + AWS_ACCOUNT_ID: 486726484754 IMAGE_REPO_NAME: yahya4246/containerofcats:latest BRANCH_NAME: master From e8ab4a472fca0460462264fdd4df81d4300bb73b Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 22:47:08 +0500 Subject: [PATCH 32/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 2bf6a53..ada8110 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -10,13 +10,13 @@ phases: pre_build: commands: - echo Logging in to Amazon ECR... - - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 011383624955.dkr.ecr.us-east-1.amazonaws.com + - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 486726484754.dkr.ecr.us-east-1.amazonaws.com build: commands: - echo Build started on `date` - echo Building the Docker image... - docker build -t test-repo . - - docker tag test-repo:latest 011383624955.dkr.ecr.us-east-1.amazonaws.com/test-repo:latest + - docker tag test-repo:latest 486726484754.dkr.ecr.us-east-1.amazonaws.com/test-repo:latest post_build: commands: - echo Build completed on `date` From 030d3e70ec3a3438a0ad596fb44c2ff2438b3f3e Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 22:49:44 +0500 Subject: [PATCH 33/48] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d4acc48..767c022 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:4.6 +FROM 486726484754.dkr.ecr.us-east-1.amazonaws.com/ubuntu COPY server.js . EXPOSE 80 CMD node server.js From 70ae8ec0a30461d847d51c89d5c3f3ffe9f2c807 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 22:52:47 +0500 Subject: [PATCH 34/48] Update Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 767c022..8cf703a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM 486726484754.dkr.ecr.us-east-1.amazonaws.com/ubuntu -COPY server.js . +RUN apt-get update && apt-get upgrade -y +RUN apt-get install apache2 -y EXPOSE 80 -CMD node server.js +CMD /usr/sbin/apahce2ctl -D FOREGROUND #this is test From ebb67994125e3666dc08d3816b81376c27f7a936 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 22:56:04 +0500 Subject: [PATCH 35/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index ada8110..236446d 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -23,7 +23,7 @@ phases: - echo Pushing the Docker image... - docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$BRANCH_NAME.$CODEBUILD_RESOLVED_SOURCE_VERSION - echo Writing image definitions file... - - printf '[{"name":"node-server","imageUri":"%s"}]' $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$BRANCH_NAME.$CODEBUILD_RESOLVED_SOURCE_VERSION > imagedefinitions.json + - printf '[{"name":"nodeserver","imageUri":"%s"}]' $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$BRANCH_NAME.$CODEBUILD_RESOLVED_SOURCE_VERSION > imagedefinitions.json artifacts: files: imagedefinitions.json From ca0d4b70195068087b20c81c1571785a68948666 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 22:59:39 +0500 Subject: [PATCH 36/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 236446d..53083e0 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -4,7 +4,7 @@ env: variables: AWS_ACCOUNT_ID: 486726484754 IMAGE_REPO_NAME: yahya4246/containerofcats:latest - BRANCH_NAME: master + BRANCH_NAME: test phases: pre_build: From 7e2755f7f7d7f270bc383258a4b7370803479b1a Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:02:48 +0500 Subject: [PATCH 37/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 53083e0..a2a2ee9 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -3,7 +3,7 @@ version: 0.2 env: variables: AWS_ACCOUNT_ID: 486726484754 - IMAGE_REPO_NAME: yahya4246/containerofcats:latest + IMAGE_REPO_NAME: ubuntu BRANCH_NAME: test phases: From 248f38cedcf5aa70078c0094cecd1529fe84b19e Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:05:13 +0500 Subject: [PATCH 38/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index a2a2ee9..78fc04d 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -16,7 +16,7 @@ phases: - echo Build started on `date` - echo Building the Docker image... - docker build -t test-repo . - - docker tag test-repo:latest 486726484754.dkr.ecr.us-east-1.amazonaws.com/test-repo:latest + - docker tag ubuntu:latest 486726484754.dkr.ecr.us-east-1.amazonaws.com/ubuntu:latest post_build: commands: - echo Build completed on `date` From 8eb5f6de5e652b4d1e0da38c5626f4d28d1be612 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:07:30 +0500 Subject: [PATCH 39/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 78fc04d..0bed5d5 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -16,7 +16,7 @@ phases: - echo Build started on `date` - echo Building the Docker image... - docker build -t test-repo . - - docker tag ubuntu:latest 486726484754.dkr.ecr.us-east-1.amazonaws.com/ubuntu:latest + - docker tag 486726484754.dkr.ecr.us-east-1.amazonaws.com/ubuntu post_build: commands: - echo Build completed on `date` From 563ce6658f1f7c2fb9349206eb38503d439d2b50 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:09:54 +0500 Subject: [PATCH 40/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 0bed5d5..78fc04d 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -16,7 +16,7 @@ phases: - echo Build started on `date` - echo Building the Docker image... - docker build -t test-repo . - - docker tag 486726484754.dkr.ecr.us-east-1.amazonaws.com/ubuntu + - docker tag ubuntu:latest 486726484754.dkr.ecr.us-east-1.amazonaws.com/ubuntu:latest post_build: commands: - echo Build completed on `date` From 9d967ce5ffdbe2731df328456382305b5cac29c1 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:14:14 +0500 Subject: [PATCH 41/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 78fc04d..2a672be 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -15,7 +15,7 @@ phases: commands: - echo Build started on `date` - echo Building the Docker image... - - docker build -t test-repo . + - docker build -t ubuntu:latest . - docker tag ubuntu:latest 486726484754.dkr.ecr.us-east-1.amazonaws.com/ubuntu:latest post_build: commands: From 972e06720a470a2dd2466c9b91421ce0429ddf39 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:53:15 +0500 Subject: [PATCH 42/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 2a672be..586b04b 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -2,28 +2,28 @@ version: 0.2 env: variables: - AWS_ACCOUNT_ID: 486726484754 - IMAGE_REPO_NAME: ubuntu - BRANCH_NAME: test + AWS_ACCOUNT_ID: 011383624955 + IMAGE_REPO_NAME: yahya4246/containerofcats:latest + BRANCH_NAME: master phases: pre_build: commands: - echo Logging in to Amazon ECR... - - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 486726484754.dkr.ecr.us-east-1.amazonaws.com + - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 011383624955.dkr.ecr.us-east-1.amazonaws.com build: commands: - echo Build started on `date` - echo Building the Docker image... - - docker build -t ubuntu:latest . - - docker tag ubuntu:latest 486726484754.dkr.ecr.us-east-1.amazonaws.com/ubuntu:latest + - docker build -t test-repo . + - docker tag test-repo:latest 011383624955.dkr.ecr.us-east-1.amazonaws.com/test-repo:latest post_build: commands: - echo Build completed on `date` - echo Pushing the Docker image... - docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$BRANCH_NAME.$CODEBUILD_RESOLVED_SOURCE_VERSION - echo Writing image definitions file... - - printf '[{"name":"nodeserver","imageUri":"%s"}]' $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$BRANCH_NAME.$CODEBUILD_RESOLVED_SOURCE_VERSION > imagedefinitions.json + - printf '[{"name":"node-server","imageUri":"%s"}]' $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$BRANCH_NAME.$CODEBUILD_RESOLVED_SOURCE_VERSION > imagedefinitions.json artifacts: files: imagedefinitions.json From 2bd0fc7ad27ef5365c3b5a11446b2822fdc8b3d1 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Thu, 7 Oct 2021 23:53:53 +0500 Subject: [PATCH 43/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 586b04b..94b8452 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -2,7 +2,7 @@ version: 0.2 env: variables: - AWS_ACCOUNT_ID: 011383624955 + AWS_ACCOUNT_ID: 392292519055 IMAGE_REPO_NAME: yahya4246/containerofcats:latest BRANCH_NAME: master @@ -10,7 +10,7 @@ phases: pre_build: commands: - echo Logging in to Amazon ECR... - - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 011383624955.dkr.ecr.us-east-1.amazonaws.com + - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 392292519055.dkr.ecr.us-east-1.amazonaws.com build: commands: - echo Build started on `date` From ec54c2ae5b16b4407856238f03146c8c8d952cbf Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Thu, 7 Oct 2021 23:58:32 +0500 Subject: [PATCH 44/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 94b8452..4d7cc36 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -16,7 +16,7 @@ phases: - echo Build started on `date` - echo Building the Docker image... - docker build -t test-repo . - - docker tag test-repo:latest 011383624955.dkr.ecr.us-east-1.amazonaws.com/test-repo:latest + - docker tag 392292519055.dkr.ecr.us-east-1.amazonaws.com/test:latest post_build: commands: - echo Build completed on `date` From 107e356aab2abb33faa455f702df679309e43d1c Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Tue, 12 Oct 2021 03:46:57 +0500 Subject: [PATCH 45/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 4d7cc36..59b4f40 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -2,7 +2,7 @@ version: 0.2 env: variables: - AWS_ACCOUNT_ID: 392292519055 + AWS_ACCOUNT_ID: 322197409684 IMAGE_REPO_NAME: yahya4246/containerofcats:latest BRANCH_NAME: master @@ -10,13 +10,13 @@ phases: pre_build: commands: - echo Logging in to Amazon ECR... - - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 392292519055.dkr.ecr.us-east-1.amazonaws.com + - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 322197409684.dkr.ecr.us-east-1.amazonaws.com build: commands: - echo Build started on `date` - echo Building the Docker image... - docker build -t test-repo . - - docker tag 392292519055.dkr.ecr.us-east-1.amazonaws.com/test:latest + - docker tag 322197409684.dkr.ecr.us-east-1.amazonaws.com/test:latest post_build: commands: - echo Build completed on `date` From 70db6d8799a009eb2bfeefbe3a12cc4fcfb2cc90 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Tue, 12 Oct 2021 04:14:10 +0500 Subject: [PATCH 46/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index 59b4f40..a765aad 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -16,7 +16,7 @@ phases: - echo Build started on `date` - echo Building the Docker image... - docker build -t test-repo . - - docker tag 322197409684.dkr.ecr.us-east-1.amazonaws.com/test:latest + - docker tag 322197409684.dkr.ecr.us-east-1.amazonaws.com/cats:latest post_build: commands: - echo Build completed on `date` From c4e3f44ee045adf53aa2950d9727b7c57dace437 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Tue, 12 Oct 2021 04:20:32 +0500 Subject: [PATCH 47/48] Update buildspec-sub-prod.yml --- configuration/buildspec-sub-prod.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration/buildspec-sub-prod.yml b/configuration/buildspec-sub-prod.yml index a765aad..1b8fa5e 100644 --- a/configuration/buildspec-sub-prod.yml +++ b/configuration/buildspec-sub-prod.yml @@ -3,8 +3,8 @@ version: 0.2 env: variables: AWS_ACCOUNT_ID: 322197409684 - IMAGE_REPO_NAME: yahya4246/containerofcats:latest - BRANCH_NAME: master + IMAGE_REPO_NAME: cats + BRANCH_NAME: test phases: pre_build: @@ -15,7 +15,7 @@ phases: commands: - echo Build started on `date` - echo Building the Docker image... - - docker build -t test-repo . + - docker build -t test . - docker tag 322197409684.dkr.ecr.us-east-1.amazonaws.com/cats:latest post_build: commands: From 29ee1e337ea951cd1e0a8b53d6457fb05f13dbd4 Mon Sep 17 00:00:00 2001 From: yahyagulshan <59036269+yahyagulshan@users.noreply.github.com> Date: Tue, 12 Oct 2021 04:25:41 +0500 Subject: [PATCH 48/48] Update imagedefinitions.json --- imagedefinitions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagedefinitions.json b/imagedefinitions.json index 9d0ebef..1306f8a 100644 --- a/imagedefinitions.json +++ b/imagedefinitions.json @@ -1,6 +1,6 @@ [ { "name": "node-server", - "imageUri": "yahya4246/containerofcats:latest" + "imageUri": "322197409684.dkr.ecr.us-east-1.amazonaws.com/cats" } ]