Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
fd16d2a
new commit 01
yahyagulshan Apr 28, 2021
7d362dc
new commit 03
yahyagulshan Apr 28, 2021
02dd8e8
new commit 04
yahyagulshan Apr 28, 2021
c13bd96
Update buildspec.yml
yahyagulshan Apr 29, 2021
97c86fe
Update buildspec.yml
yahyagulshan Apr 29, 2021
4301a49
Update buildspec.yml
yahyagulshan Apr 29, 2021
71f5875
Update buildspec.yml
yahyagulshan Apr 29, 2021
04faf28
Update buildspec.yml
yahyagulshan Apr 29, 2021
8e289fe
Update buildspec.yml
yahyagulshan Apr 29, 2021
17d9a0c
Update buildspec.yml
yahyagulshan Apr 29, 2021
b3e3f3d
Update buildspec.yml
yahyagulshan Apr 29, 2021
f2e9254
Update buildspec.yml
yahyagulshan Apr 29, 2021
e4801f2
Update buildspec.yml
yahyagulshan Apr 29, 2021
b3b776c
Update imagedefinitions.json
yahyagulshan Apr 30, 2021
7c20bbe
Update buildspec.yml
yahyagulshan Apr 30, 2021
d6c49ed
Update imagedefinitions.json
yahyagulshan Apr 30, 2021
7db5f32
Update Dockerfile
yahyagulshan Apr 30, 2021
d7056c0
Update server.js
yahyagulshan Apr 30, 2021
a3f428c
Update server.js
yahyagulshan Apr 30, 2021
da2564e
Update Dockerfile
yahyagulshan Apr 30, 2021
6620575
Update Dockerfile
yahyagulshan Apr 30, 2021
e0a3e23
Update Dockerfile
yahyagulshan Apr 30, 2021
48db183
my test new commit 01
May 4, 2021
e06a2b2
Merge pull request #1 from yahyagulshan/test
yahyagulshan May 4, 2021
8f8e7f4
my test new commit 02
May 4, 2021
67951b4
Merge pull request #2 from yahyagulshan/master
yahyagulshan May 4, 2021
5698b6a
my test new commit 03
May 4, 2021
674f5b1
Merge pull request #3 from yahyagulshan/master
yahyagulshan May 4, 2021
956d0ba
my test new commit 04
May 4, 2021
003aed6
Merge pull request #4 from yahyagulshan/test
yahyagulshan May 4, 2021
4e56042
AWS CodeBuild init 01
May 18, 2021
6ff39c3
Update buildspec-sub-prod.yml
yahyagulshan May 18, 2021
2537c94
Update buildspec-sub-prod.yml
yahyagulshan May 18, 2021
fc974f5
AWS CodeBuild init 01
May 20, 2021
1e8142a
Update buildspec-sub-prod.yml
yahyagulshan Jun 7, 2021
e8ab4a4
Update buildspec-sub-prod.yml
yahyagulshan Jun 7, 2021
030d3e7
Update Dockerfile
yahyagulshan Jun 7, 2021
70ae8ec
Update Dockerfile
yahyagulshan Jun 7, 2021
ebb6799
Update buildspec-sub-prod.yml
yahyagulshan Jun 7, 2021
ca0d4b7
Update buildspec-sub-prod.yml
yahyagulshan Jun 7, 2021
7e2755f
Update buildspec-sub-prod.yml
yahyagulshan Jun 7, 2021
248f38c
Update buildspec-sub-prod.yml
yahyagulshan Jun 7, 2021
8eb5f6d
Update buildspec-sub-prod.yml
yahyagulshan Jun 7, 2021
563ce66
Update buildspec-sub-prod.yml
yahyagulshan Jun 7, 2021
9d967ce
Update buildspec-sub-prod.yml
yahyagulshan Jun 7, 2021
972e067
Update buildspec-sub-prod.yml
yahyagulshan Jun 7, 2021
2bd0fc7
Update buildspec-sub-prod.yml
yahyagulshan Oct 7, 2021
ec54c2a
Update buildspec-sub-prod.yml
yahyagulshan Oct 7, 2021
107e356
Update buildspec-sub-prod.yml
yahyagulshan Oct 11, 2021
70db6d8
Update buildspec-sub-prod.yml
yahyagulshan Oct 11, 2021
c4e3f44
Update buildspec-sub-prod.yml
yahyagulshan Oct 11, 2021
29ee1e3
Update imagedefinitions.json
yahyagulshan Oct 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM node:4.6
COPY server.js .
EXPOSE 8080
CMD node server.js
FROM 486726484754.dkr.ecr.us-east-1.amazonaws.com/ubuntu
RUN apt-get update && apt-get upgrade -y
RUN apt-get install apache2 -y
EXPOSE 80
CMD /usr/sbin/apahce2ctl -D FOREGROUND
#this is test
19 changes: 0 additions & 19 deletions buildspec.yml

This file was deleted.

Binary file added configuration/.buildspec-sub-prod.yml.swp
Binary file not shown.
29 changes: 29 additions & 0 deletions configuration/buildspec-sub-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 0.2

env:
variables:
AWS_ACCOUNT_ID: 322197409684
IMAGE_REPO_NAME: cats
BRANCH_NAME: test

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 322197409684.dkr.ecr.us-east-1.amazonaws.com
build:
commands:
- echo Build started on `date`
- echo Building the Docker image...
- docker build -t test .
- docker tag 322197409684.dkr.ecr.us-east-1.amazonaws.com/cats: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":"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
2 changes: 1 addition & 1 deletion imagedefinitions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"name": "node-server",
"imageUri": "dvohra/node-server"
"imageUri": "322197409684.dkr.ecr.us-east-1.amazonaws.com/cats"
}
]
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ 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);
www.listen(8080);
www.listen(80);