Skip to content
Snippets Groups Projects
Commit ebc457c6 authored by User expired's avatar User expired
Browse files

added jenkins deploy mode (to prevent tomcat webapp deploy on dbis-tests)

parent 051dfaec
No related branches found
No related tags found
No related merge requests found
Upcoming version:
-----------------
- added jenkins deploy mode (to prevent tomcat webapp deploy on dbis-tests) (Nikolaus Krismer)
- added missing srid for italy and st dataset (Nikolaus Krismer)
- not starting tomcat on jenknis (Nikolaus Krismer)
- added some more options; moved remote cache dir to owncloud (Nikolaus Krismer)
......
......@@ -80,7 +80,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder "log/bootstrap", "/var/log/vagrant_bootstrap", create: true, owner: "vagrant", group: "vagrant"
# Setup environment on startup (done using a shell script)
config.vm.provision "shell", path: "bootstrap/prepareEnvironment.sh", args: ["secretPhdPassword#2014!", (isLocalDeploy ? "true" : "false")]
config.vm.provision "shell", path: "bootstrap/prepareEnvironment.sh", args: ["secretPhdPassword#2014!", (isLocalDeploy ? "true" : "false"), (isJenkinsDeploy ? "true" : "false")]
config.vm.provision "shell", path: "bootstrap/createDatabase.sh", args: ["niko", "secretPhdPassword#2014!"]
config.vm.provision "shell", path: "bootstrap/importData.sh", args: ["niko", "secretPhdPassword#2014!", (deployAllDatasets ? "true" : "false")]
# Optionally activate database logging (for queryTimeLogging this is done in the testcase itself now)
......
......@@ -25,6 +25,7 @@ WORKING_DIR="/var/log/vagrant_bootstrap"
# Parameters that can also (some must) be passed as arguments
DEPLOY_ALL_DATASETS=false
IS_JENKINS_DEPLOY=false
IS_LOCAL_DEPLOY=false
PG_DB_NAME="isochrone"
PG_DB_USER="@db_username@"
......
......@@ -65,6 +65,7 @@ source "${SCRIPT_DIR}/config.sh"
fn_arg2string TOMCAT_PASSWORD "${1}" "${TOMCAT_PASSWORD}"
fn_arg2boolean IS_LOCAL_DEPLOY "${2}" "${IS_LOCAL_DEPLOY}"
fn_arg2boolean IS_JENKINS_DEPLOY "${3}" "${IS_JENKINS_DEPLOY}"
######################################
# Configuration (tool versions, ...) #
......@@ -212,7 +213,7 @@ if $UPDATE_DATA; then
INSTALL_ISOCHRONE_DATAMODEL=true
fi
if $IS_LOCAL_DEPLOY; then
if $IS_LOCAL_DEPLOY || $IS_JENKINS_DEPLOY; then
# Some projects will never be installed when in local deploy mode (like latest release/snapshot from nexus)
INSTALL_PROJECT_PSIPROBE=false
INSTALL_ISOCHRONE_LOCAL=false
......@@ -360,6 +361,7 @@ echo " Bootstrapping the VM ($(date +%H:%M:%S)):"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Operating system $DISTRI_NAME"
echo " - osType: $DISTRI_TYPE"
if $IS_JENKINS_DEPLOY; then echo "Starting in jenkins test deploy mode"; fi
if $IS_LOCAL_DEPLOY; then echo "Starting in local test deploy mode"; fi
echo "Installing software:"
if $INSTALL_HTTPD; then echo " - apache webserver"; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment