Last active
August 29, 2015 14:21
-
-
Save alexleventer/b7dc7f3e784932528692 to your computer and use it in GitHub Desktop.
Java CentOS Distelli Manifest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<username>/JavaCentOSSimpleApp: | |
# This Basic Distelli Manifest assumes the following | |
# has been provisioned on the destination deploy server: | |
# | |
# OS: CentOS | |
# Installed Packages: | |
# Java JRE >= 1.7 [sudo yum install java] | |
# | |
# Set the JAVA_HOME (below) for your JRE install directory | |
# | |
# This also requires that the Java JDK be installed on | |
# the development server to compile the java code. | |
# | |
# There is a build.sh script to compile the code for you. | |
# | |
Env: | |
- CLASSPATH: 'target/*:lib/*' | |
# | |
# Set the JAVA_HOME below for the destination | |
# deployment server JRE directory. | |
# | |
- JAVA_HOME: "/usr/lib/jvm/jre" | |
# | |
- JVM_ARGS: '"-Duser.timezone=UTC -Xmx128M -Xms128M"' | |
- PORT: "8001" | |
- ARGS: "$PORT" | |
Exec: | |
- exec $JAVA_HOME/bin/java -cp $CLASSPATH $JVM_ARGS com.example.app.SimpleJavaApp $ARGS | |
PkgInclude: | |
- target/*.jar | |
- lib/*.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment