From 81465a35d15b66d93bbecc2796ddca4c05b57825 Mon Sep 17 00:00:00 2001 From: eshadutta <32511557+eshadutta@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:07:33 -0700 Subject: [PATCH 1/6] Add files via upload --- dummy.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 dummy.txt diff --git a/dummy.txt b/dummy.txt new file mode 100644 index 0000000..feee97b --- /dev/null +++ b/dummy.txt @@ -0,0 +1 @@ + \ No newline at end of file From ff55b784ebc1e5c4c8a0fe8f62f630a86420468c Mon Sep 17 00:00:00 2001 From: Esha Dutta Date: Thu, 22 Aug 2024 20:57:23 +0000 Subject: [PATCH 2/6] test --- dummy.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dummy.txt b/dummy.txt index feee97b..41876e7 100644 --- a/dummy.txt +++ b/dummy.txt @@ -1 +1 @@ - \ No newline at end of file + From 4455518170c695ec2e40780e809cdf990737e444 Mon Sep 17 00:00:00 2001 From: Esha Dutta Date: Thu, 22 Aug 2024 21:12:03 +0000 Subject: [PATCH 3/6] update --- dummy.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dummy.txt b/dummy.txt index 41876e7..0c6bf09 100644 --- a/dummy.txt +++ b/dummy.txt @@ -1 +1 @@ - + From d5d65b8cfc5120e84ef148fcc8155498fb8c9e3d Mon Sep 17 00:00:00 2001 From: Esha Dutta Date: Thu, 22 Aug 2024 21:17:16 +0000 Subject: [PATCH 4/6] update --- dummy.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dummy.txt b/dummy.txt index 0c6bf09..98f3383 100644 --- a/dummy.txt +++ b/dummy.txt @@ -1 +1 @@ - + From 573ecee122e81a646951b0b960695fffb0c1c713 Mon Sep 17 00:00:00 2001 From: eshadutta <32511557+eshadutta@users.noreply.github.com> Date: Sun, 25 Aug 2024 14:54:32 -0700 Subject: [PATCH 5/6] Add files via upload --- buildspec.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/buildspec.yml b/buildspec.yml index fee7e4f..25e052a 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -1,12 +1,21 @@ version: 0.2 phases: + pre_build: + commands: + - aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 840814869112.dkr.ecr.us-west-2.amazonaws.com install: commands: - npm install build: commands: - npm test + - docker build -t eshdutta-repo . + - docker tag eshdutta-repo:latest 840814869112.dkr.ecr.us-west-2.amazonaws.com/eshdutta-repo:latest + post_build: + commands: + - docker push 840814869112.dkr.ecr.us-west-2.amazonaws.com/eshdutta-repo:latest + artifacts: files: - '**/*' From 37570d1bafc7d3bf272bf1a4dce47dfc9257a59e Mon Sep 17 00:00:00 2001 From: eshadutta <32511557+eshadutta@users.noreply.github.com> Date: Sun, 25 Aug 2024 15:08:56 -0700 Subject: [PATCH 6/6] Add files via upload --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e0a10c3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:4-alpine + +WORKDIR /root + +COPY package.json npm-shrinkwrap.json ./ + +RUN apk update \ + && apk upgrade \ + && apk add bash \ + && npm install \ + && mv node_modules node_modules_cache \ + && rm -r package.json npm-shrinkwrap.json /tmp/*