Skip to content

Commit c68302a

Browse files
author
caaespin
committed
Merge branch 'release/1.0.3'
2 parents a40f019 + 5ba8409 commit c68302a

File tree

4 files changed

+53
-3
lines changed

4 files changed

+53
-3
lines changed

consonance/Dockerfile_provisioner

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
5555
RUN mkdir -p /root/.youxia /root/.consonance /root/.consonance/self-installs /root/.ssh
5656
COPY youxia_config /root/.youxia/config
57+
COPY logback.xml /root/logback.xml
5758
COPY config /root/.consonance/config
5859
COPY key.pem /root/.ssh/key.pem
5960
RUN chmod 600 /root/.ssh/key.pem

consonance/init_provisioner.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
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
37
cron -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

consonance/logback.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+

install_bootstrap

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}
415422
CONFIG
416423
[[ -d "commons_launcher_config" ]] || mkdir "commons_launcher_config"

0 commit comments

Comments
 (0)