Last active
January 19, 2020 15:09
-
-
Save tomrgio/1b010020d282d223a76e8f2613997b5e to your computer and use it in GitHub Desktop.
National Parks plan.sh
This file contains 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
pkg_name=national-parks | |
pkg_origin=<YOUR ORIGIN> | |
pkg_version="6.3.0" | |
pkg_maintainer="The Habitat Maintainers <[email protected]>" | |
pkg_license=("Apache-2.0") | |
pkg_deps=(core/tomcat8 core/jre8) | |
pkg_build_deps=(core/jdk8/8.192.0 core/maven) | |
pkg_svc_user="root" | |
do_prepare(){ export JAVA_HOME=$(hab pkg path core/jdk8) ; } | |
do_build() | |
{ | |
cp -r $PLAN_CONTEXT/../ $HAB_CACHE_SRC_PATH/$pkg_dirname | |
cd ${HAB_CACHE_SRC_PATH}/${pkg_dirname} | |
mvn package | |
} | |
do_install() | |
{ | |
mkdir ${PREFIX}/config | |
cp ${HAB_CACHE_SRC_PATH}/${pkg_dirname}/target/${pkg_name}.war ${PREFIX}/ | |
cp $(hab pkg path core/tomcat8)/config/conf_server.xml ${PREFIX}/config/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment