|
...
|
...
|
@@ -42,7 +42,7 @@ We attach to the new container to see what is going on. Ctrl-C to disconnect
|
|
42
|
42
|
|
|
43
|
43
|
BUILD_IMG=$(docker commit $BUILD_JOB _/builds/github.com/shykes/helloflask/master)
|
|
44
|
44
|
|
|
45
|
|
-Save the changed we just made in the container to a new image called "_/builds/github.com/hykes/helloflask/master" and save the image id in the BUILD_IMG variable name.
|
|
|
45
|
+Save the changes we just made in the container to a new image called "_/builds/github.com/hykes/helloflask/master" and save the image id in the BUILD_IMG variable name.
|
|
46
|
46
|
|
|
47
|
47
|
.. code-block:: bash
|
|
48
|
48
|
|
|
...
|
...
|
@@ -60,13 +60,13 @@ Use the new image we just created and create a new container with network port 5
|
|
60
|
60
|
docker logs $WEB_WORKER
|
|
61
|
61
|
* Running on http://0.0.0.0:5000/
|
|
62
|
62
|
|
|
63
|
|
-view the logs for the new container using the WEB_WORKER variable, and if everything worked as planned you should see the line "Running on http://0.0.0.0:5000/" in the log output.
|
|
|
63
|
+View the logs for the new container using the WEB_WORKER variable, and if everything worked as planned you should see the line "Running on http://0.0.0.0:5000/" in the log output.
|
|
64
|
64
|
|
|
65
|
65
|
.. code-block:: bash
|
|
66
|
66
|
|
|
67
|
67
|
WEB_PORT=$(docker port $WEB_WORKER 5000)
|
|
68
|
68
|
|
|
69
|
|
-lookup the public-facing port which is NAT-ed store the private port used by the container and store it inside of the WEB_PORT variable.
|
|
|
69
|
+Look up the public-facing port which is NAT-ed. Find the private port used by the container and store it inside of the WEB_PORT variable.
|
|
70
|
70
|
|
|
71
|
71
|
.. code-block:: bash
|
|
72
|
72
|
|
|
...
|
...
|
@@ -74,7 +74,7 @@ lookup the public-facing port which is NAT-ed store the private port used by the
|
|
74
|
74
|
curl http://127.0.0.1:$WEB_PORT
|
|
75
|
75
|
Hello world!
|
|
76
|
76
|
|
|
77
|
|
-access the web app using curl. If everything worked as planned you should see the line "Hello world!" inside of your console.
|
|
|
77
|
+Access the web app using curl. If everything worked as planned you should see the line "Hello world!" inside of your console.
|
|
78
|
78
|
|
|
79
|
79
|
**Video:**
|
|
80
|
80
|
|