Skip to content

Commit 528dadd

Browse files
committed
Edits to class 2 and addition of the Reveal Presentation
Moved the SNOPS container away from develop on the Jenkins variant, also added Chris’s reveal presentation for Class 1. Lots of other spelling an spacing issues
1 parent 435db65 commit 528dadd

36 files changed

+498
-161
lines changed

docs/class2/class2.rst

+7-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ Class 2: Building Continuous Delivery Pipelines
33

44
This class covers the following topics:
55

6-
- Continuous Integration (CI)/Continuous Delivery (CD) Concepts
7-
- F5 Automation Tools:
6+
- Continuous Integration(CI) and Continuous Delivery(CD) Concepts
87

9-
- The f5-super-netops-container
10-
- Collections and the f5-postman-workflows extension to Postman
11-
- Automation Workflows using f5-newman-wrapper
8+
- F5 Automation Toolkits:
9+
10+
- F5-Super-NetOps-Container
11+
- F5 Postman Collections and f5-postman-workflows extensions
12+
- F5 f5-newman-wrapper for Automating Workflows
1213

1314
- Building CI/CD Pipelines with Jenkins
15+
- Team Collaboration with Automated Slack Notifications
1416

1517
Expected time to complete: **3 hours**
1618

docs/class2/module1/lab1.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Task 1 – Install Docker CE
2323
Please follow the instructions at https://docs.docker.com/engine/installation/
2424
to install Docker CE.
2525

26-
Once you have completely installed and successfully run the ``hello-world``
26+
Once you have completely installed, and successfully run the ``hello-world``
2727
test you can continue to the next lab.
2828

2929
To test your setup with the ``hello-world`` container, you just need to run the
3030
following command
3131

32-
``docker run hello-world``
32+
``docker run --rm hello-world``
3333

3434
Example output:
3535

@@ -63,9 +63,9 @@ Example output:
6363
.. NOTE:: The ``--rm`` option will delete the container as soon as it stops
6464
running.
6565

66-
If you see this message: *Cannot connect to the Docker daemon. Is the docker
67-
daemon running on this host?* , it is likely that you don't have enough
68-
privileges with your user, try to use sudo when executing docker commands.
66+
If you see this message: **Cannot connect to the Docker daemon. Is the docker
67+
daemon running on this host?**, it is likely that you don't have enough
68+
privileges with your user, try to use **sudo** when executing docker commands.
6969

7070
If you want to remove the hello-world container, you can run the command
7171
``sudo docker rmi hello-world``

docs/class2/module1/lab2.rst

+21-17
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Lab |labmodule|\.\ |labnum|\: Obtain & Start the f5-super-netops-container Image
1111
In this lab we will use the ``docker`` cli tools to obtain and start the
1212
f5-super-netops-container image.
1313

14-
Task 1 – Obtain the container image
14+
Task 1 – Obtain and verfiy the container image
1515
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616

1717
Perform the following steps to complete this task:
@@ -21,14 +21,14 @@ Perform the following steps to complete this task:
2121
.. NOTE:: If you are using an F5 provided lab environment please SSH to the
2222
'Docker Server' host and execute the following commands.
2323

24-
#. Execute ``docker pull f5devcentral/f5-super-netops-container:develop-jenkins``
24+
#. Execute ``docker pull f5devcentral/f5-super-netops-container:jenkins``
2525

2626
Example output:
2727

2828
.. code::
2929
30-
$ docker pull f5devcentral/f5-super-netops-container:develop-jenkins
31-
develop-jenkins: Pulling from f5devcentral/f5-super-netops-container
30+
$ docker pull f5devcentral/f5-super-netops-container:jenkins
31+
jenkins: Pulling from f5devcentral/f5-super-netops-container
3232
019300c8a437: Pull complete
3333
2d6b38b56ae7: Pull complete
3434
5fab9174d5b4: Pull complete
@@ -56,7 +56,7 @@ Perform the following steps to complete this task:
5656
5bcd8c5223bb: Pull complete
5757
b0defdb83b82: Pull complete
5858
Digest: sha256:27563f98bf58c9d26eb5989acaf540a9ad7fb1806e4a4c373ad28769ebe63ef4
59-
Status: Downloaded newer image for f5devcentral/f5-super-netops-container:develop-jenkins
59+
Status: Downloaded newer image for f5devcentral/f5-super-netops-container:jenkins
6060
6161
#. Execute ``docker images``
6262

@@ -66,20 +66,20 @@ Perform the following steps to complete this task:
6666
6767
$ docker images
6868
REPOSITORY TAG IMAGE ID CREATED SIZE
69-
f5devcentral/f5-super-netops-container develop-jenkins b71fc40407e4 2 weeks ago 490MB
69+
f5devcentral/f5-super-netops-container jenkins b71fc40407e4 2 weeks ago 490MB
7070
7171
Task 2 – Start the container image
7272
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7373

7474
To start using the container we will execute the command:
7575

76-
#. Execute ``docker run -p 8080:80 -p 2222:22 -p 10000:8080 --rm -it -e SNOPS_GH_BRANCH=develop f5devcentral/f5-super-netops-container:develop-jenkins``
76+
#. Execute ``docker run -p 8080:80 -p 2222:22 -p 10000:8080 --rm -it -e SNOPS_GH_BRANCH=master f5devcentral/f5-super-netops-container:jenkins``
7777

7878
.. NOTE:: The image requires Internet connectivity to download the latest versions of tools and documentation. Please ensure you have proper connectivity from your host prior to starting the image. If you need to use a proxy please refer to the documentation at https://docs.docker.com
7979

8080
The image will now start and load resources from the Internet. This process
8181
may take a while depending on the speed of your connection. When the startup
82-
process is complete you will be presented with a ``root`` user prompt. You
82+
process is complete you will be presented in the ``root`` user prompt. You
8383
can interact with the image with standard Linux commands. In the next lab
8484
we will connect to the image via SSH and HTTP.
8585

@@ -89,16 +89,16 @@ To start using the container we will execute the command:
8989

9090
The ``-it`` option will make the session interactive and allocate a pseudo-TTY
9191

92-
The ``-e`` option will specify a Github Branch, in this case we are pulling from ``develop``
92+
The ``-e`` option will specify a Github Branch, in this case we are pulling from ``master``
9393

94-
The ``f5devcentral/f5-super-netops-container:develop-jenkins`` option is the name
94+
The ``f5devcentral/f5-super-netops-container:jenkins`` option is the name
9595
associated with the image we obtained in Task 1.
9696

9797
Example startup output:
9898

9999
.. code::
100100
101-
container:develop-jenkins
101+
container:jenkins
102102
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
103103
[s6-init] ensuring user provided files have correct perms...exited 0.
104104
[fix-attrs.d] applying ownership & permissions fixes...
@@ -116,7 +116,7 @@ To start using the container we will execute the command:
116116
[environment] SNOPS_REVEALJS_DEV=0
117117
[environment] SNOPS_HOST_HTTP=8080
118118
[environment] SNOPS_IMAGE=jenkins
119-
[environment] SNOPS_GH_BRANCH=develop
119+
[environment] SNOPS_GH_BRANCH=master
120120
Reticulating splines...
121121
Becoming self-aware...
122122
[cloneGitRepos] Retrieving repository list from https://github.com/f5devcentral/f5-super-netops-container.git#develop
@@ -201,10 +201,14 @@ avoid this you should detach from the container once it has completed booting.
201201
You can still perform functions by using SSH to access the container as
202202
explained in the next lab.
203203

204+
Its likely that the installation of the f5-super-netops-container will not be
205+
on a localhost while running in a large environment, the steps below show how
206+
you can leave this instance running as a background process, if needed.
207+
204208
Detach the Container
205209
^^^^^^^^^^^^^^^^^^^^
206210

207-
#. Enter ``Ctrl+p+q`` in the running TTY.
211+
#. Issue a ``Ctrl+p+q`` in the running TTY.
208212

209213
Example output:
210214

@@ -224,7 +228,7 @@ Detach the Container
224228
hostname:~ user$ docker ps
225229
$ docker ps
226230
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
227-
4cf75944bfbc f5devcentral/f5-super-netops-container:develop-jenkins "/init /snopsboot/..." 2 minutes ago Up 2 minutes 8000/tcp, 50000/tcp, 0.0.0.0:2222->22/tcp, 0.0.0.0:8080->80/tcp, 0.0.0.0:10000->8080/tcp loving_montalcini
231+
4cf75944bfbc f5devcentral/f5-super-netops-container:jenkins "/init /snopsboot/..." 2 minutes ago Up 2 minutes 8000/tcp, 50000/tcp, 0.0.0.0:2222->22/tcp, 0.0.0.0:8080->80/tcp, 0.0.0.0:10000->8080/tcp loving_montalcini
228232
229233
Re-attach the Container
230234
^^^^^^^^^^^^^^^^^^^^^^^
@@ -238,12 +242,12 @@ Re-attach the Container
238242
hostname:~ user$ docker ps
239243
$ docker ps
240244
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
241-
4cf75944bfbc f5devcentral/f5-super-netops-container:develop-jenkins "/init /snopsboot/..." 2 minutes ago Up 2 minutes 8000/tcp, 50000/tcp, 0.0.0.0:2222->22/tcp, 0.0.0.0:8080->80/tcp, 0.0.0.0:10000->8080/tcp loving_montalcini
245+
4cf75944bfbc f5devcentral/f5-super-netops-container:jenkins "/init /snopsboot/..." 2 minutes ago Up 2 minutes 8000/tcp, 50000/tcp, 0.0.0.0:2222->22/tcp, 0.0.0.0:8080->80/tcp, 0.0.0.0:10000->8080/tcp loving_montalcini
242246
|------------|
243247
^- YOUR CONTAINER ID
244248
245249
#. Copy the value under the ``CONTAINER ID`` column that correspond to the
246-
f5devcentral/f5-super-netops-container:develop-jenkins image.
250+
f5devcentral/f5-super-netops-container:jenkins image.
247251
#. Execute ``docker attach <container_id>``
248-
#. You may have to hit ``<Enter>`` to display the command prompt
252+
#. You may have to hit ``<Enter>`` twice to display the command prompt
249253
#. Detach the container again by entering ``<Ctrl+p+q>``

docs/class2/module1/lab3.rst

+24-25
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ Lab |labmodule|\.\ |labnum|\: Connect to f5-super-netops-container
99
------------------------------------------------------------------
1010

1111
In the previous lab we started the container image and were presented with a
12-
root command prompt. In order to use the container and its associated
13-
tools properly you connect via SSH and/or HTTP.
12+
root user terminal. In order to use the container and its associated
13+
tools properly we will connect via SSH and/or HTTP.
1414

1515
.. _lab1_3_1:
1616

1717
Task 1 – Connect via SSH
1818
~~~~~~~~~~~~~~~~~~~~~~~~
1919

2020
To connect to the image via SSH we must use the published port specified in the
21-
``docker run`` command. To review the command used to start the container was:
21+
``docker run`` command. **To review** the command used to start the container was:
2222

23-
``docker run -p 8080:80 -p 2222:22 -p 10000:8080 --rm -it -e SNOPS_GH_BRANCH=develop
24-
f5devcentral/f5-super-netops-container:develop-jenkins``
23+
``docker run -p 8080:80 -p 2222:22 -p 10000:8080 --rm -it -e SNOPS_GH_BRANCH=master
24+
f5devcentral/f5-super-netops-container:jenkins``
2525

2626
This will publish the standard SSH service on ``TCP/22`` to ``TCP/2222`` on the
2727
Docker host. In the case of the SSH service the following mapping applies:
@@ -31,14 +31,14 @@ Docker host. In the case of the SSH service the following mapping applies:
3131
.. NOTE:: If you are using an F5 provided lab environment please use the SSH
3232
client and connect to the 'f5-super-netops-container SSH' item
3333

34-
Additionally the container includes the ``snops`` user with a password of
35-
``default``. To connect to the container execute the following command
36-
or it's OS-specific equivalent:
34+
The container includes the ``snops`` user with a password of
35+
``default``. If you are not using the F5 Lab environment connect to the container
36+
execute the following command or it's OS-specific equivalent:
3737

3838
``ssh -p 2222 snops@localhost``
3939

40-
.. NOTE:: The host SSH keys are regenerated each time the container boots. As
41-
a result you may receive an error when trying to connect indicating the host
40+
.. NOTE:: The host SSH keys for our environment are regenerated each time the container boots,
41+
you may receive an error when trying to connect indicating the host
4242
key has changed. This error is safe to ignore in this case and can be
4343
resolved by removing the key from ``~/.ssh/known_hosts``. You can also
4444
configure your local SSH config by adding the following to ``~/.ssh/config``:
@@ -50,7 +50,7 @@ or it's OS-specific equivalent:
5050
StrictHostKeyChecking no
5151
UserKnownHostsFile /dev/null
5252
53-
Example output:
53+
Example output of connecting to the container:
5454

5555
.. code::
5656
@@ -109,11 +109,11 @@ Example output:
109109
Task 2 – Connect via HTTP
110110
~~~~~~~~~~~~~~~~~~~~~~~~~
111111

112-
To connect to the image via HTTP we must use the published port specified in the
113-
``docker run`` command. To review the command used to start the container was:
112+
To connect to the image via HTTP we use the published port specified in the
113+
``docker run`` command. **To review** the command used to start the container was:
114114

115-
``docker run -p 8080:80 -p 2222:22 -p 10000:8080 --rm -it -e SNOPS_GH_BRANCH=develop
116-
f5devcentral/f5-super-netops-container:develop-jenkins``
115+
``docker run -p 8080:80 -p 2222:22 -p 10000:8080 --rm -it -e SNOPS_GH_BRANCH=master
116+
f5devcentral/f5-super-netops-container:jenkins``
117117

118118
This will publish the standard HTTP service on ``TCP/80`` to ``TCP/8080`` on the
119119
Docker host. In the case of the HTTP service the following mapping applies:
@@ -123,9 +123,9 @@ Docker host. In the case of the HTTP service the following mapping applies:
123123
.. NOTE:: If you are using an F5 provided lab environment please use the browser
124124
and click the 'Super Netops Container' bookmark.
125125

126-
To connect via HTTP open a web browser and enter the URL:
126+
To connect outside of the F5 Lab environment via HTTP, open a web browser and enter the URL:
127127

128-
``http://10.1.1.8:8080/start``
128+
``http://(YourDockerSever):8080/start``
129129

130130
You should see a page like this:
131131

@@ -134,23 +134,22 @@ You should see a page like this:
134134
Task 3 – Connect via Jenkins
135135
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
136136

137-
To connect to the image via Jenkins we must use the published port specified in the
138-
``docker run`` command. To review the command used to start the container was:
137+
To connect to the image via Jenkins we use the published port specified in the
138+
``docker run`` command. **To review** the command used to start the container was:
139139

140-
``docker run -p 8080:80 -p 2222:22 -p 10000:8080 --rm -it -e SNOPS_GH_BRANCH=develop
141-
f5devcentral/f5-super-netops-container:develop-jenkins``
140+
``docker run -p 8080:80 -p 2222:22 -p 10000:8080 --rm -it -e SNOPS_GH_BRANCH=master
141+
f5devcentral/f5-super-netops-container:jenkins``
142142

143143
This will publish the standard Jenkins service on ``TCP/8080`` to ``TCP/10000`` on the
144144
Docker host. In the case of the Jenkins service the following mapping applies:
145145

146146
``10.1.1.8:10000 -> f5-super-netops-container:8080``
147147

148-
.. NOTE:: There is no bookmark in your browser, you may find it easier to
149-
reference later if you create one after connecting the first time
148+
.. NOTE:: If you are using an F5 provided lab environment please use the browser and click the ‘Jenkins’ bookmark.
150149

151150
To connect via HTTP open a web browser and enter the URL:
152151

153-
``http://10.1.1.8:10000``
152+
``http://(YourDockerSever):10000``
154153

155154
You should see a page like this:
156155

@@ -161,4 +160,4 @@ You should see a page like this:
161160
:scale: 50%
162161
.. |image89| image:: /_static/class2/image089.png
163162
:align: middle
164-
:scale: 50%
163+
:scale: 95%

docs/class2/module1/module1.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
Module 1: f5-super-netops-container Toolkit
22
===========================================
33

4-
In this module we will explore how to use the **f5-super-netops** container
5-
toolkit to easily consume various F5 Automation, Orchestration, Super Netops and
6-
DevOps tools, along with frameworks.
4+
In this module we will explore how to use the **f5-super-netops-container**
5+
toolkit to easily integrate various F5 Automation, Orchestration, Super Netops and
6+
DevOps tools, along with framework technologies.
77

88
The f5-super-netops-container is meant to provide a simple way for users to
99
quickly duplicate a standard automation and orchestration environment in your
10-
local machine/lab environment. The container is continuously updated to include
10+
local machine/lab environment. The container is **continuously updated** to include
1111
the latest tools and documentation.
1212

1313
The labs in this module will show you how to install the
1414
f5-super-netops-container image, start it in your local environment and access
1515
various tools and documentation.
1616

17-
To install the f5-super-netops-container you need to be sure your system
18-
supports running Docker Community Edition (CE). Please refer to
17+
To install the f5-super-netops-container your system mu st
18+
support running Docker Community Edition (CE). Please refer to
1919
https://docs.docker.com/engine/installation/#platform-support-matrix for
2020
more information.
2121

docs/class2/module2/lab1.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ Perform the following steps to complete this task:
2828
``https://raw.githubusercontent.com/0xHiteshPatel/f5-postman-workflows/master/F5_Postman_Workflows.postman_collection.json``
2929

3030
#. You should now see a collection named ``F5_Postman_Workflows`` in your
31-
Postman Collections sidebar
31+
Postman Collections sidebar, in some cases the Collections dont appear until Postman
32+
has been closed an relaunched.
3233

3334
Task 2 - Install f5-postman-workflows into your Postman Client
3435
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3536

36-
To utilize the helper functions the framework include we must install those
37+
To utilize the helper functions the framework includes, we must install those
3738
functions into the Postman Client. The installation helpers perform the
3839
following tasks:
3940

0 commit comments

Comments
 (0)