@@ -1019,7 +1019,7 @@ so that you can be sure of what's being run inside vs outside containers.
1019
1019
[subs="specialcharacters,macros"]
1020
1020
----
1021
1021
$ pass:quotes[*docker exec -it container-id-or-name bash*]
1022
- root@5ed84681fdf8:/src# pass:specialcharacters,quotes[*apt-get update && apt-get install -y curl*]
1022
+ root@5ed84681fdf8:/src# pass:specialcharacters,quotes[*apt-get update && apt-get install -y curl*] #<1>
1023
1023
Get:1 pass:[http://deb.debian.org/debian] bookworm InRelease [151 kB]
1024
1024
Get:2 pass:[http://deb.debian.org/debian] bookworm-updates InRelease [52.1 kB]
1025
1025
[...]
@@ -1029,7 +1029,7 @@ Reading state information... Done
1029
1029
The following additional packages will be installed:
1030
1030
libbrotli1 libcurl4 libldap-2.5-0 libldap-common libnghttp2-14 libpsl5
1031
1031
[...]
1032
- root@5ed84681fdf8:/src# pass:quotes[*curl -iv http://localhost:8888*]
1032
+ root@5ed84681fdf8:/src# pass:quotes[*curl -iv http://localhost:8888*] #<2>
1033
1033
* Trying 127.0.0.1:8888...
1034
1034
* Connected to localhost (127.0.0.1) port 8888 (#0)
1035
1035
> GET / HTTP/1.1
@@ -1057,6 +1057,15 @@ HTTP/1.1 200 OK
1057
1057
</html>
1058
1058
----
1059
1059
1060
+ // CSANAD: I think the readers' inputs were a little difficult to spot, so I added some in-
1061
+ // structions (and they kept causing a "no callout found for..." error, so I'll just leave
1062
+ // them here as comments:
1063
+ // <1> First we have to install `curl` as it isn't available in the `slim` images by default.
1064
+ //
1065
+ // <2> Then, we check whether we are able to request the site.
1066
+
1067
+
1068
+
1060
1069
That's definitely some HTML! And the `<title>To-Do lists</title>` looks like it's our html, too.
1061
1070
1062
1071
So, we can see Django is serving our site _inside_ the container,
0 commit comments