Skip to content

Instantly share code, notes, and snippets.

@alexleventer
Created May 14, 2015 19:33
Show Gist options
  • Save alexleventer/e8b30abfd1fe550d2b42 to your computer and use it in GitHub Desktop.
Save alexleventer/e8b30abfd1fe550d2b42 to your computer and use it in GitHub Desktop.
Java Ubuntu Distelli Manifest
<username>/JavaUbuntuSimpleApp:
# This Basic Distelli Manifest assumes the following
# has been provisioned on the destination deploy server:
#
# OS: Ubuntu
# Installed Packages:
# Java JRE >= 1.7 [sudo apt-get install default-jre]
#
# 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/default-java/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