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

Push the container code to CodeCommit

From the course: Docker on AWS

Start my 1-month free trial

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…

Contents