Skip to content

Commit

Permalink
Updated docker commands to be fully qualified. Updated Task 9.2 scree…
Browse files Browse the repository at this point in the history
…nshot
  • Loading branch information
stevejr committed Nov 29, 2018
1 parent 0e4c55d commit aecc56e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
Binary file modified img/jenkins_build2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 24 additions & 24 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@ In order to push and pull images to DTR we will need to take advantage of PWD's
5. Now we can start pulling a few images.

```
docker pull clemenko/dc18:0.1
docker pull clemenko/dc18:0.2
docker pull clemenko/dc18:0.3
docker pull alpine
docker image pull clemenko/dc18:0.1
docker image pull clemenko/dc18:0.2
docker image pull clemenko/dc18:0.3
docker image pull alpine

```

Expand All @@ -300,20 +300,20 @@ In order to push and pull images to DTR we will need to take advantage of PWD's
6. Now let's tag the image for our DTR instance. We will use the `URL` variable we set before.

```
docker tag clemenko/dc18:0.1 $DTR_URL/ci/dc18_build:0.1
docker tag clemenko/dc18:0.2 $DTR_URL/ci/dc18_build:0.2
docker tag clemenko/dc18:0.3 $DTR_URL/ci/dc18_build:0.3
docker tag alpine $DTR_URL/ci/dc18_build:alpine
docker image tag clemenko/dc18:0.1 $DTR_URL/ci/dc18_build:0.1
docker image tag clemenko/dc18:0.2 $DTR_URL/ci/dc18_build:0.2
docker image tag clemenko/dc18:0.3 $DTR_URL/ci/dc18_build:0.3
docker image tag alpine $DTR_URL/ci/dc18_build:alpine

```

7. Now we can `docker push` the images to DTR.
7. Now we can `docker image push` the images to DTR.

```
docker push $DTR_URL/ci/dc18_build:0.1
docker push $DTR_URL/ci/dc18_build:0.2
docker push $DTR_URL/ci/dc18_build:0.3
docker push $DTR_URL/ci/dc18_build:alpine
docker image push $DTR_URL/ci/dc18_build:0.1
docker image push $DTR_URL/ci/dc18_build:0.2
docker image push $DTR_URL/ci/dc18_build:0.3
docker image push $DTR_URL/ci/dc18_build:alpine

```

Expand Down Expand Up @@ -405,8 +405,8 @@ Let's sign our first Docker image?
1. Right now you should have a promoted image `$DTR_URL/ci/dc18:promoted`. We need to tag it with a new `signed` tag.

```
docker pull $DTR_URL/ci/dc18:promoted
docker tag $DTR_URL/ci/dc18:promoted $DTR_URL/ci/dc18:signed
docker image pull $DTR_URL/ci/dc18:promoted
docker image tag $DTR_URL/ci/dc18:promoted $DTR_URL/ci/dc18:signed
```

2. Now lets use the Trust command... It will ask you for a BUNCH of passwords. Do yourself a favor in this workshop and use `admin1234`. :D
Expand Down Expand Up @@ -530,10 +530,10 @@ In order to automate we need to deploy Jenkins. If you want I can point you to a

2. Then run unset Docker Content Trust and instal Jenkins.

```
export DOCKER_CONTENT_TRUST=0
./dc18_supply_chain/scripts/jenkins.sh
```
```
export DOCKER_CONTENT_TRUST=0
./dc18_supply_chain/scripts/jenkins.sh
```

3. Pay attention to the url AND Jenkins password. It will look like :

Expand Down Expand Up @@ -598,11 +598,11 @@ Now that we have Jenkins setup and running we need to add 3 additional plugins -

docker login -u admin -p admin1234 $DTR_URL

docker pull clemenko/dc18:0.2
docker image pull clemenko/dc18:0.2

docker tag clemenko/dc18:0.2 $DTR_URL/ci/dc18_build:jenkins_$BUILD_NUMBER
docker image tag clemenko/dc18:0.2 $DTR_URL/ci/dc18_build:jenkins_$BUILD_NUMBER

docker push $DTR_URL/ci/dc18_build:jenkins_$BUILD_NUMBER
docker image push $DTR_URL/ci/dc18_build:jenkins_$BUILD_NUMBER

docker rmi clemenko/dc18:0.2 $DTR_URL/ci/dc18_build:jenkins_$BUILD_NUMBER
```
Expand Down Expand Up @@ -717,8 +717,8 @@ As we are now looking to sign images from our Jenkins instance we need access to
stage ('Tag image') {
steps {
sh """
docker pull alpine
docker tag alpine ${DTR_DOMAIN}/ci/dc18_build:alpine_jenkins_${env.BUILD_NUMBER}
docker image pull alpine
docker image tag alpine ${DTR_DOMAIN}/ci/dc18_build:alpine_jenkins_${env.BUILD_NUMBER}
docker images
"""
}
Expand Down

0 comments on commit aecc56e

Please sign in to comment.