From the course: Docker on AWS
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Push the container code to CodeCommit
- [Instructor] With our code already cloned and actually an empty repository for our code already cloned onto the system, we have a very easy way of actually now pushing new code up into the environment because we've set up our SSH keys and all we have to do is take our code and get it into the right directory. So, in this video directory, if we do an LS, we see we have a code directory and we can copy our code, all the files in our code directory, up a directory, which where we actually stored our hostname, git repository. And so if we then go to that hostname repository, cd ../hostname, do an ls, and we see we have three files, which is perfect. If we do a git status, what we should see is that we have nothing in the master branch 'cause it's an empty repository and we have three files that are untracked, so we'll go ahead an add those. So we can say git add * which is everything that's here, and now if we do…
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
-
-
-
-
-
-
-