Skip to content

Commit 43e3463

Browse files
committed
Fix arun-gupta#52 arun-gupta#53 arun-gupta#54 - Fix for Failed to build instructor 'http-server' container and use JBDS 9.1 Beta 2
1 parent e36e5e0 commit 43e3463

4 files changed

Lines changed: 26 additions & 16 deletions

File tree

chapters/docker-setup.adoc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,12 @@ Download your binary from http://dockerlab:8082/downloads/
125125

126126
[source, text]
127127
----
128-
# MacOS / Linux (other distros)
129-
curl -L http://dockerlab:8082/`uname -s`/x86_64/docker-latest > /usr/local/bin/docker
128+
# MacOS
129+
curl -L http://dockerlab:8082/downloads/docker-latest-mac > /usr/local/bin/docker
130+
chmod +x /usr/local/bin/docker
131+
132+
# Linux (other distros)
133+
curl -L http://dockerlab:8082/downloads/docker-latest-linux > /usr/local/bin/docker
130134
chmod +x /usr/local/bin/docker
131135
132136
#Windows
@@ -180,16 +184,16 @@ docker-machine ip lab
180184
. Download WildFly 8.2 from http://dockerlab:8082/downloads/wildfly-8.2.0.Final.zip
181185
. Install it by clicking on the archive.
182186

183-
#### JBoss Developer Studio 9
187+
#### JBoss Developer Studio 9 - Beta 2
184188

185189
To install JBoss Developer Studio stand-alone, complete the following steps:
186190

187-
. Download http://dockerlab:8082/downloads/jboss-devstudio-8.1.0.GA-jar_universal.jar
191+
. Download http://localhost:8082/downloads/jboss-devstudio-9.0.0.Beta2-v20150609-1026-B3346-installer-standalone.jar
188192
. Start the installer as:
189193
+
190194
[source, text]
191195
----
192-
java -jar jboss-devstudio-8.1.0.GA-jar_universal.jar
196+
java -jar jboss-devstudio-9.0.0.Beta2-v20150609-1026-B3346-installer-standalone.jar
193197
----
194198
+
195199
Follow the on-screen instructions to complete the installation process.

chapters/ticket-monster.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Start Postgres database as:
6060
docker run --name db -d -p 5432:5432 -e POSTGRES_USER=ticketmonster -e POSTGRES_PASSWORD=ticketmonster-docker dockerlab:5000/postgres
6161
----
6262

63-
This command starts a container named ``db'' from the image in your instructor's registry `<dockerlab>:5000/postgres`. As this will not be present locally, it needs to be downloaded first. But you'll have a very quick connection to the instructor registry and this shouldn't take long.
63+
This command starts a container named ``db'' from the image in your instructor's registry `dockerlab:5000/postgres`. As this will not be present locally, it needs to be downloaded first. But you'll have a very quick connection to the instructor registry and this shouldn't take long.
6464

6565
The two `-e` options define environment variables which are read by the db at startup and allow us to access the database with this user and password.
6666

@@ -92,7 +92,7 @@ Start WildFly server as:
9292

9393
[source, text]
9494
----
95-
docker run -d --name wildfly -p 8080:8080 --link db:db -v /Users/youruser/tmp/deployments:/opt/jboss/wildfly/standalone/deployments/:rw <dockerlab>:5000/wildfly
95+
docker run -d --name wildfly -p 8080:8080 --link db:db -v /Users/youruser/tmp/deployments:/opt/jboss/wildfly/standalone/deployments/:rw dockerlab:5000/wildfly
9696
----
9797

9898
Make sure to replace `/Users/youruser/tmp/deployments` to a directory on your local machine. Also, make sure this directory already exists.
@@ -184,7 +184,7 @@ The Command Line Interface (CLI) is a tool for connecting to WildFly instances t
184184

185185
Lets use the CLI to deploy Ticket Monster to WildFly running in the container.
186186

187-
. CLI needs to be locally installed and comes as part of WildFly. Download WildFly 8.2 from http://<dockerlab>:8082/downloads/wildfly-8.2.0.Final.zip. Unzip into a folder of your choice (e.g. `/Users/arungupta/tools/`). This will create `wildfly-8.2.0.Final` directory here. This folder is named $WIDLFY_HOME from here on. Make sure to add the `/Users/arungupta/tools/wildfly-8.2.0.Final/bin` to your $PATH.
187+
. CLI needs to be locally installed and comes as part of WildFly. Download WildFly 8.2 from http://dockerlab:8082/downloads/wildfly-8.2.0.Final.zip. Unzip into a folder of your choice (e.g. `/Users/arungupta/tools/`). This will create `wildfly-8.2.0.Final` directory here. This folder is named $WIDLFY_HOME from here on. Make sure to add the `/Users/arungupta/tools/wildfly-8.2.0.Final/bin` to your $PATH.
188188
+
189189
[source, text]
190190
----
@@ -243,7 +243,7 @@ A standalone WildFly process, process can be configured to listen for remote man
243243
+
244244
[source, text]
245245
----
246-
docker run -d --name wildflymngm -p 8080:8080 -p 9990:9990 --link db:db <dockerlab>:5000/wildfly-management
246+
docker run -d --name wildflymngm -p 8080:8080 -p 9990:9990 --link db:db dockerlab:5000/wildfly-management
247247
----
248248
+
249249
There is no mapped volume in this case but an additional port exposed. The WildFly image that is used makes it easier for you to play around with the deployment via the management API. It has a tweaked start script which changes the management interface according to the behavior described in the first sentence.

instructor/dockerfiles/lab-httpd-server/Dockerfile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ RUN mkdir -p /var/www/html/downloads
1212
WORKDIR /var/www/html/downloads
1313

1414
#Place JBDS inside the image
15-
ADD downloads/jboss-devstudio-8.1.0.GA-installer-standalone.jar /var/www/html/downloads/
15+
ADD downloads/jboss-devstudio-9.0.0.Beta2-v20150609-1026-B3346-installer-standalone.jar /var/www/html/downloads/
16+
17+
#Setup permission for JBDS
18+
chmod 644 /var/www/html/downloads/jboss-devstudio-9.0.0.Beta2-v20150609-1026-B3346-installer-standalone.jar
1619

1720
#Get WildFly 8.2
1821
RUN wget http://download.jboss.org/wildfly/8.2.0.Final/wildfly-8.2.0.Final.zip
@@ -42,7 +45,10 @@ RUN wget https://github.com/docker/machine/releases/download/v0.3.0-rc1/docker-m
4245
RUN wget https://github.com/docker/machine/releases/download/v0.3.0-rc1/docker-machine_linux-amd64
4346

4447
#Get Docker Client Mac OS
45-
RUN wget curl https://get.docker.com/builds/Darwin/x86_64/docker-latest
48+
RUN curl -L https://get.docker.com/builds/Darwin/x86_64/docker-latest -o docker-latest-mac
49+
50+
#Get Docker Client Linux
51+
RUN curl -L https://get.docker.com/builds/Linux/x86_64/docker-latest -o docker-latest-linux
4652

4753
#Get Docker Client Windows
4854
RUN wget http://test.docker.com.s3.amazonaws.com/builds/Windows/x86_64/docker-1.6.0.exe
@@ -52,16 +58,16 @@ RUN wget http://apache.mirrors.ionfish.org/maven/maven-3/3.3.3/binaries/apache-m
5258
RUN wget http://apache.mirrors.ionfish.org/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
5359

5460
#Get Vagrant MacOS
55-
RUN wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2.dmg
61+
RUN curl -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2.dmg -o vagrant_1.7.2.dmg
5662

5763
#Get Vagrant Windows
58-
RUN wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2.msi
64+
RUN curl -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2.msi -o vagrant_1.7.2.msi
5965

6066
#Get Vagrant Debian 64-bit
61-
RUN wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb
67+
RUN curl -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb -o vagrant_1.7.2_x86_64.deb
6268

6369
#Get Vagrant Linux 64-bit
64-
RUN wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm
70+
RUN curl -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm -o vagrant_1.7.2_x86_64.rpm
6571

6672
#Get Kubernetes
6773
RUN wget https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.18.1/kubernetes.tar.gz

instructor/readme.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ This will download the Nexus image on Docker host and populate it with the Nexus
200200

201201
## Start the Instructor Environment
202202

203-
Download link:http://www.jboss.org/download-manager/file/jboss-devstudio-8.1.0.GA-standalone_jar.jar[JBoss Developer Studio 8.10.GA - 567 MB] and place it inside `dockerfiles/lab-httpd-server/downloads` folder.
203+
Download link:https://devstudio.redhat.com/9.0/snapshots/builds/devstudio.product_master/2015-06-09_06-24-34-B3346/installer/[JBoss Developer Studio 9.0 - Beta2 - 482MB] and place it inside `dockerfiles/lab-httpd-server/downloads` folder.
204204

205205
Use the following compose command to startup the complete environment at once.
206206

0 commit comments

Comments
 (0)