Skip to content

Commit d9657a2

Browse files
committed
Refactored README for Chicago Coder Conference 2016; updated example scripts
1 parent 5b4e794 commit d9657a2

File tree

6 files changed

+150
-103
lines changed

6 files changed

+150
-103
lines changed

README.md

Lines changed: 139 additions & 98 deletions
Large diffs are not rendered by default.

webserver-example/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ RUN apt-get -y install nginx
3535
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
3636

3737
# Create SSL and document root directories
38-
RUN mkdir /etc/nginx/ssl
39-
RUN mkdir /var/www
38+
RUN mkdir -p /etc/nginx/ssl
39+
RUN mkdir -p /var/www
4040

4141

4242
# ------------------------------------------------------------------------------

webserver-example/default

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ server {
55
# Make site accessible from http://localhost/
66
server_name localhost;
77

8+
# Prevent some weirdness when using VirtualBox
9+
sendfile off;
10+
811
location / {
912
# First attempt to serve request as file, then
1013
# as directory, then fall back to index.html

webserver-volume-example/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ RUN apt-get -y install nginx
3535
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
3636

3737
# Create SSL and document root directories
38-
RUN mkdir /etc/nginx/ssl
39-
RUN mkdir /var/www
38+
RUN mkdir -p /etc/nginx/ssl
39+
RUN mkdir -p /var/www
4040

4141

4242
# ------------------------------------------------------------------------------

webserver-volume-example/default

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ server {
55
# Make site accessible from http://localhost/
66
server_name localhost;
77

8+
# Prevent some VirtualBox weirdness
9+
sendfile off;
10+
811
location / {
912
# First attempt to serve request as file, then
1013
# as directory, then fall back to index.html
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html>
33
<body>
4-
<h1>Hello World!</h1>
4+
<h1>Hello World! This is your volume speaking.</h1>
55
</body>
66
</html>

0 commit comments

Comments
 (0)