Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vibhi #49

Merged
merged 22 commits into from
Sep 18, 2020
Merged

Vibhi #49

merged 22 commits into from
Sep 18, 2020

Conversation

vvaliapa
Copy link
Contributor

Hi Anne,
Based on your updates in the Docker file, I have updated the "Building a Custom Cisco Learning Labs Container" section.
Corrected the byod.html.
Performed editorial review of this Lab.
Kindly review the updates and provide your comments.

Regards,
Vibhinna

Updated the dockerfile.
Updated the procedure in step.
minor edits
corrected the formatting issues.
Added description for COPY and chmod.
minor edits.
removed div
removed div
Copy link
Contributor

@annegentle annegentle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking much much better. Just a few nit picks.

@@ -2,7 +2,8 @@

## Objective

This Learning Lab introduces Docker, a tool suite for building, sharing, and deploying containers. For more information about containers, see the [Containers-101](https://developer.cisco.com/learning/lab/containers-101/step/1) Lab. Use this Learning Lab to build, deploy, and optionally share your first Docker container.
This Learning Lab introduces Docker, a tool suite for building, sharing, and deploying containers. Use this Learning Lab to build, deploy, and optionally share your first Docker container. For more information about containers, see the [Containers-101](https://developer.cisco.com/learning/lab/containers-101/step/1) Lab.
Further reading is available in the excellent docker introduction at [imapex.io](https://github.com/imapex-training/mod_adv_docker/blob/master/README.md).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker > Docker

@@ -36,15 +36,15 @@ CMD ["/hello"]

Here's what it tells `docker build` to do:

`FROM scratch`
* `FROM scratch`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd remove the bullets - just in case it would cause confusion about what goes into the Dockerfile line-by-line.

@@ -90,7 +90,7 @@ The example command downloads and runs the Ubuntu container from DockerHub. The

![Ubuntu shell](assets/images/ubuntu1.png)

# Testing Isolation.
# Testing Isolation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. 🔍

@@ -2,131 +2,126 @@

Next we'll build our own Ubuntu Docker image instead of using the one from DockerHub.

1. __Download the files__. Begin by downloading the Ubuntu Dockerfile and its dependencies.
1. Downloading the Ubuntu Dockerfile and its dependencies.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Downloading > Download

![Docker Images](assets/images/images1.png)

5. __Run the new image__. Run the newly created docker image by giving the randomly-chosen ID to Docker:
5. Run the newly created docker image by giving the randomly-chosen ID to Docker:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker > Docker

```
docker build .
```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tell them to make note of the container ID that is returned once the build is done.

terminal.
```
docker run <Container ID>
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe tell them where to get the Container ID here also.

```
The "Hello from DevNet!" message is displayed in the container terminal.

![](assets/images/docker-image-new.png)

Congratulations, you've just built and run a custom docker image!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker > Docker

A Docker container image can run any application you like. Let's build
one that runs a web server. The web server will run whenever the
container image starts up.
A Docker container image can run any application you like. Let's build one that runs a web server. The web server will run whenever the container image starts up.

The following python command creates and starts a simple web server:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python > Python

```
docker inspect <container ID>
```
Running this command displays a great deal of information about the container. Included in the output is the container's address, identified as "IPAddress".
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably need to tell them how to get the container ID, by running docker ps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated all the review comments. Kindly review...

vvaliapa and others added 8 commits September 16, 2020 21:39
Changed docker to Docker.
updated the review comments.
Updated the review comments.
updated the review comments.
updated the review comments
Copy link
Contributor

@annegentle annegentle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - I'll merge and you can publish. Thanks!

@annegentle annegentle merged commit 59cd85c into master Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants