Skip to content

Commit 5777768

Browse files
committed
addressing PR comments
1 parent 9f878fd commit 5777768

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

bin/remount_portal_source.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#! /usr/bin/env bash
22

3-
# script to add to the root crontab to remount attached disk in correct location after scheduled instance restart
3+
# script to add to the root crontab to remount attached disk in correct location after scheduled instance restart,
4+
# which is used for staging and development VMs, but not production
5+
46
# crontab should be entered as follows
57
# @reboot /root/remout_portal_source.sh > /dev/null 2>&1
8+
9+
# More context: https://github.com/broadinstitute/single_cell_portal_core/pull/2216
610
MOUNT_DIR=$(ls -l /dev/disk/by-id/google-* | grep google-singlecell-data-disk | awk -F '/' '{ print $NF }')
711
if [[ -n "$MOUNT_DIR" ]]; then
812
echo "$(date): remounting google-singlecell-data-disk from /dev/$MOUNT_DIR" >> /home/jenkins/remount_log.txt

bin/restart_portal_container.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# script to add to root crontab on a deployed host to check for crashed Docker containers and restart
44
# crontab entry should be as follows:
55
# */5 * * * * /root/restart_portal_container.sh > /dev/null 2>&1
6+
7+
# More context: https://github.com/broadinstitute/single_cell_portal_core/pull/2216
68
docker ps --filter "status=exited" | grep -e 'single_cell' | while read -r line ; do
79
container_id=`echo $line | awk '{print $1}'`
810
container_name=`echo $line | awk '{print $NF}'`

0 commit comments

Comments
 (0)