From the course: Docker on AWS
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: Commit a code change
From the course: Docker on AWS
Solution: Commit a code change
(electronic music) - So in order to build a new container from our code itself, all we have to do is make a change to the underlying CodeCommit repository. So if we go into our host name, git repository, which is up a directory from where we normally are. Host name, is our git repository, do an ls, and you know, we can do something simple, like, change the readme. Vi readme, and I'm not even going to do anything super clever I'm just going to remove a line. Okay, and then wq, :wq. We'll just save that, and then I will add and commit that. Since the files already exist I can just do a git commit -am, so its add and add a message, and that's just minor update. We'll go ahead and git push that, git push. And then if we just want to go jump in to our repositories, and we'll actually look at the code pipeline. Go into the pipeline to see what pipelines are currently running we can see that a commit has just succeeded. So it…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
From app to containerized app3m 40s
-
(Locked)
Create an ECR Registry5m 14s
-
(Locked)
Create a CodeCommit Git repository3m 50s
-
(Locked)
Push the container code to CodeCommit2m 32s
-
(Locked)
Build the container from CodeCommit6m 7s
-
(Locked)
Automate build on new commit3m 15s
-
(Locked)
Challenge: Update a container29s
-
(Locked)
Solution: Commit a code change1m 24s
-
-
-
-
-
-
-