Skip to content

Commit

Permalink
Add fuseesbdemo; clean up after jon server install
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurphy committed Jun 5, 2014
1 parent a6dfd8b commit a5ee980
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions fuse/fuseesbdemo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
products/
11 changes: 11 additions & 0 deletions fuse/fuseesbdemo/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM jboss-base

MAINTAINER David Murphy <[email protected]>

# Install Fuse
ADD products /
ADD files/apache-maven-3.2.1-bin.tar.gz /

# Configure supervisor

CMD supervisord -n
Empty file added fuse/fuseesbdemo/README.md
Empty file.
Binary file not shown.
20 changes: 20 additions & 0 deletions fuse/fuseesbdemo/files/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
#rhq-ant input properties:
#rhq.deploy.dir is the root installation directory for the bundle and is the minimum required input property
#run.maven.builds=y will build the web application using mvn. You will need to have "mvn" in your path
#rhq.deploy.clean=true deletes everything in the deployment directory(e.g. rhq.deploy.dir property) and provisions the bundle in a clean directory
#
bold=`tput smso`
offbold=`tput rmso`

echo "If you see the message ${bold} Operating system must be Linux and x86_64 ${offbold}, then modify the deploy.xml on line 59 to match your operating system and chipset architecture"
echo "There are examples within the deploy.xml for operating systems and chipsets"

if [ "x$JAVA_HOME" = "x" ]; then
read -p "Please set your JAVA_HOME environment e.g. JAVA_HOME=/home/workshop/jdk1.7.0_25...Press Enter to exit"
exit 1
fi

export PATH="`pwd`/installer/bin:$JAVA_HOME/bin:$PATH":
/bin/chmod 775 installer/bin/rhq-ant
rhq-ant -Drhq.deploy.dir=/opt/jboss -Drun.maven.builds=y -Drhq.deploy.clean=true
4 changes: 4 additions & 0 deletions fuse/fuseesbdemo/files/supervisor.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[program:tomcat]
command=/opt/jboss/jboss-ews-2.0/tomcat7/bin/startup.sh
user=jboss
redirect_stderr=true
1 change: 1 addition & 0 deletions jon/jon-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ RUN chown -hR jboss:jboss /opt/jon
# Clean up
RUN rm configure_dbs.sh
RUN rm jon-server-3.2.0.GA.zip
RUN rm -rf plugins plugin-jars

# Configure Supervisor
ADD files/supervisor.ini /etc/supervisord.d/jon.ini
Expand Down

0 comments on commit a5ee980

Please sign in to comment.