File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,17 +2,16 @@ FROM fedora:21
22
33MAINTAINER Rafael Benevides <benevides@redhat.com>
44
5+ # Install wget and Apache HTTPD
6+ RUN yum -y update && yum clean all
7+ RUN yum -y install httpd wget && yum clean all
8+ ADD index.html /var/www/html/
9+
510RUN mkdir -p /var/www/html/downloads
611
712# Change Workdir to apache dir
813WORKDIR /var/www/html/downloads
914
10- # Install wget and Apache HTTPD
11- RUN yum -y update && yum clean all
12- RUN yum -y install httpd && yum clean all
13- RUN echo "Apache" >> /var/www/html/index.html
14- RUN yum install -y wget
15-
1615# Get Boot2docker 1.5
1716RUN wget https://github.com/boot2docker/boot2docker/releases/download/v1.6.1/boot2docker.iso
1817
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ Instructor needs:
1515. Have https://www.virtualbox.org/[Oracle Virtualbox] installed and the install folder added to your PATH environment variable.
1616. Have the https://github.com/arun-gupta/docker-java/ git repository checked out.
1717. Have https://msysgit.github.io/ installed on windows
18+ . Have http://asciidoctor.org/ installed
19+
20+ #Install asciidoctor
21+
22+ gem install asciidoctor
1823
1924## Install Docker Client
2025
@@ -99,6 +104,15 @@ Instructors should run a local registry to make all images locally available to
99104docker run -d --name="docker-registry" -p 5000:5000 -v /registry:/tmp/registry-dev registry:2.0
100105----
101106
107+ ##Convert the Attendees instructions to HTML.
108+
109+ This instructions will be placed inside the Lab HTTPD Server during the image build
110+
111+ [source, text]
112+ ----
113+ asciidoctor ../attendees/readme.adoc -o lab-httpd-server/index.html
114+ ----
115+
102116## Build the Lab HTTPD Server image
103117
104118Make sure to change to the cloned repository/instructor first.
@@ -119,7 +133,7 @@ docker run -d --name="lab-httpd-server" -p 8082:80 lab-httpd-server
119133
120134If you run into errors on Windows (eg, no such file or exec format error, check the line ending in the run-apache.sh).
121135
122- Check if the server is running: http://localhost:8082/downloads/
136+ Check if the server is running: http://localhost:8082/
123137
124138NOTE: Make sure to check your firewall settings. Attendees should be able to access this machine with your local IP.
125139
You can’t perform that action at this time.
0 commit comments