File tree Expand file tree Collapse file tree 4 files changed +53
-3
lines changed
Expand file tree Collapse file tree 4 files changed +53
-3
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ RUN chmod u+x init_provisioner.sh
5454# TODO: make sure you create these from the .template files and customize them
5555RUN mkdir -p /root/.youxia /root/.consonance /root/.consonance/self-installs /root/.ssh
5656COPY youxia_config /root/.youxia/config
57+ COPY logback.xml /root/logback.xml
5758COPY config /root/.consonance/config
5859COPY key.pem /root/.ssh/key.pem
5960RUN chmod 600 /root/.ssh/key.pem
Original file line number Diff line number Diff line change 11#! /bin/bash
2-
2+ # we put the logback.xml file in /root; so put that path first so the provisioner
3+ # uses those logging parameters instead of using the ones in consonance-arch-*.jar
4+ # which is in /
5+ # the '/' path is second so that the rest of the code is found in
6+ # consonance-arch-*.jar
37cron -L 15 && echo " Cron Job set"
4- java -cp consonance-arch-* .jar io.consonance.arch.containerProvisioner.ContainerProvisionerThreads --config config --endless | tee /consonance_logs/container_provisioner_nohup.out
8+ java -cp " /root/:./*" io.consonance.arch.containerProvisioner.ContainerProvisionerThreads --config config --endless | tee /consonance_logs/container_provisioner_nohup.out
9+ # java -cp consonance-arch-*.jar io.consonance.arch.containerProvisioner.ContainerProvisionerThreads --config config --endless | tee /consonance_logs/container_provisioner_nohup.out
Original file line number Diff line number Diff line change 1+ <!--
2+ ~ Consonance - workflow software for multiple clouds
3+ ~ Copyright (C) 2016 OICR
4+ ~
5+ ~ This program is free software: you can redistribute it and/or modify
6+ ~ it under the terms of the GNU General Public License as published by
7+ ~ the Free Software Foundation, either version 3 of the License, or
8+ ~ (at your option) any later version.
9+ ~
10+ ~ This program is distributed in the hope that it will be useful,
11+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
12+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+ ~ GNU General Public License for more details.
14+ ~
15+ ~ You should have received a copy of the GNU General Public License
16+ ~ along with this program. If not, see <http://www.gnu.org/licenses/>.
17+ ~
18+ -->
19+
20+ <configuration >
21+
22+ <appender name =" STDOUT" class =" ch.qos.logback.core.ConsoleAppender" >
23+ <!-- encoders are assigned the type
24+ ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
25+ <encoder >
26+ <pattern >%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern >
27+ </encoder >
28+ <filter class =" ch.qos.logback.classic.filter.ThresholdFilter" >
29+ <level >WARN</level >
30+ </filter >
31+ </appender >
32+
33+ <root level =" INFO" >
34+ <appender-ref ref =" STDOUT" />
35+ </root >
36+ </configuration >
37+
Original file line number Diff line number Diff line change @@ -370,6 +370,12 @@ while [[ "${run_consonance_launcher^^}" != 'Y' && "${run_consonance_launcher^^}
370370 fi
371371 done
372372
373+
374+ email_address_for_owner_tag=' email_address_for_owner_tag'
375+ ask_question " What is the email address for the 'Owner' tag on the worker VM?" " $EMAIL_FOR_VM_OWNER_TAG " " Email for VM Owner tag" $email_address_for_owner_tag
376+ sed -ie " s~{.*}~{\" Owner\" :\" ${email_address_for_owner_tag} \" }~" ./consonance/example_tags.json
377+
378+
373379 # Now write a config for this file.
374380 [[ -f commons_launcher_config/consonance.config ]] || mkdir -p commons_launcher_config
375381 # Note: You can't have ANY blank lines in .consonance/consonance.config because the python library that will eventually process it does not like blank lines and will fail.
@@ -410,7 +416,8 @@ while [[ "${run_consonance_launcher^^}" != 'Y' && "${run_consonance_launcher^^}
410416"OS_ENDPOINT":"${user_os_endpoint} ",
411417"OS_NETWORK_ID":"${user_os_network_id} ",
412418"OS_REGION":"${user_os_region} ",
413- "OS_ZONE":"${user_os_zone} "
419+ "OS_ZONE":"${user_os_zone} ",
420+ "EMAIL_FOR_VM_OWNER_TAG":"${email_address_for_owner_tag} "
414421}
415422CONFIG
416423 [[ -d " commons_launcher_config" ]] || mkdir " commons_launcher_config"
You can’t perform that action at this time.
0 commit comments