Permalink
Browse files
Improve logging and TIER beacon support
Changes in the midPoint Docker container: 1. Logging is improved: now we provide TIER-style logging for both midpoint.log content and plain console output. (Note that not all entry timestamps are in UTC yet.) 2. Reverted some of TIER beacon changes to make it more compliant with TIER standards: shell file names, opt-out environment variable, collector server name+port.
- Loading branch information
Showing
with
52 additions
and 33 deletions.
- +1 −2 midpoint/.env
- +1 −0 midpoint/docker-compose.yml
- +17 −9 midpoint/midpoint-server/Dockerfile
- +3 −3 midpoint/midpoint-server/container_files/supervisor/supervisord.conf
- +6 −6 midpoint/midpoint-server/container_files/usr-local-bin/{send-tier-beacon.sh → sendtierbeacon.sh}
- +8 −0 midpoint/midpoint-server/container_files/usr-local-bin/set-timezone.sh
- +4 −8 midpoint/midpoint-server/container_files/usr-local-bin/setup-cron.sh
- 0 midpoint/midpoint-server/container_files/usr-local-bin/{start-httpd-shib.sh → start-httpd.sh}
- +4 −4 midpoint/midpoint-server/container_files/usr-local-bin/start-midpoint.sh
- +8 −1 midpoint/midpoint-server/container_files/usr-local-bin/{start-all.sh → startup.sh}
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# JUST FOR TESTING - REMOVE BEFORE RELEASE | ||
|
||
rm /etc/localtime | ||
ln -s /usr/share/zoneinfo/Europe/Bratislava /etc/localtime | ||
date | ||
|
@@ -1,14 +1,10 @@ | ||
#!/bin/bash | ||
|
||
CRONFILE=/opt/tier/cronfile | ||
CRONFILE=/opt/tier/tier-cron | ||
|
||
if [ "$TIER_BEACON_ENABLED" == "true" ]; then | ||
echo "#send daily \"beacon\" to central" > ${CRONFILE} | ||
# echo $(expr $RANDOM % 59) $(expr $RANDOM % 3) "* * * /usr/local/bin/send-tier-beacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE} | ||
echo "* * * * * /usr/local/bin/send-tier-beacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE} # for testing | ||
else | ||
echo "#beacon is disabled" > ${CRONFILE} | ||
fi | ||
echo "#send daily \"beacon\" to central" > ${CRONFILE} | ||
echo $(expr $RANDOM % 60) $(expr $RANDOM % 4) "* * * /usr/local/bin/sendtierbeacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE} | ||
#echo "* * * * * /usr/local/bin/sendtierbeacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE} # for testing | ||
|
||
chmod 644 ${CRONFILE} | ||
crontab ${CRONFILE} |
File renamed without changes.