Skip to content

Instantly share code, notes, and snippets.

@alexleventer
Last active August 29, 2015 14:21
Show Gist options
  • Save alexleventer/b7dc7f3e784932528692 to your computer and use it in GitHub Desktop.
Save alexleventer/b7dc7f3e784932528692 to your computer and use it in GitHub Desktop.
Java CentOS Distelli Manifest
<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