w8,9 CND Copy k4
w8,9 CND Copy k4
Name B.Divya
A. Somanshu Dev
Roll No. 22R21A05L2
22R21A05K4
Year of Study III B.Tech I SEM CSE-D
Date 27/11/2024
PROBLEM STATEMENT: To Create a Docker image and push Docker image into
AWS ECR
Objective: Create a Docker image and push Docker image into AWS ECR.
Requirement: Docker tool ,Internet
Theory:
1. Docker Login
Steps to be followed:
1. Goto Aws portal and create an IAM user with administrative permissions.
4. After creating the repository, we will go inside it and clone it in local system, by
clicking Clone URL > Clone HTTPS.
A. Somanshu Dev
22R21A05K4
5. Now, Goto your command line in local system and type,
Here you need to give the username and password of IAM user that you have created.
6. And, it will clone an empty repository. Just run “ls -l” command and you will find out
an empty directory named “my-webpage”
8. Copy all the files that you have got from the link “https://github.com/chxtan/my
webpage” and paste inside the folder “my-webapp” that created by cloning the empty
repository.
9. Now with command line, browse inside the my-webpage folder and do “ls”, it will
list down all the files inside.
10. Run command “git status” and it will show that all the files are untracked.
11. We will use the “git add .” command to track all the files that were untracked.
12. Now, we will do the first commit as, “git commit -m “first commit””
13. We made a commit; it was made locally. Still we need to push our changes to our
repository.
16. Now, we will go to index.html file and modify the content inside.
17. And in CMD, we will run “git status” again and the index file will be in untracked
category.
18. To make the file tracked, we will run “git add .\index.html”, and the file will be
tracked again.
19. And now we will push the file again, with “git push” command.
23. Run “git status” command and “index.html” will be in untracked mode. Keep in my
mind that we are in “my-feature” branch.
24. Move that file in tracked mode and run the command “git push –set-upstream origin
my-feature”.
26. Now, we need to add the new feature added that is in “my-feature” branch, for that
we will “create pull request”.
27. Compare the both branches.