Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

Commit

Permalink
Cleanup, remove unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Sep 8, 2023
1 parent 493081b commit 67edba5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 142 deletions.
90 changes: 0 additions & 90 deletions dqmsquare_deploy.sh

This file was deleted.

22 changes: 15 additions & 7 deletions dqmsquare_k8_wrapper.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
#!/bin/bash

# Wrapper script for launching the Mirror on a kubernetes pod.
# Accepts one argument, the type of service to run. Can be "server", "dummy".
# Launches two python grabbers in the background, and then runs the flash app with
# gunicorn.

service=$1

#sudo mkdir -p /cephfs/testbed/dqmsquare_mirror/db/
#sudo mkdir -p /cephfs/testbed/dqmsquare_mirror/tmp/
#sudo mkdir -p /cephfs/testbed/dqmsquare_mirror/log/
#sudo find /cephfs/testbed/dqmsquare_mirror -type d -exec chmod 777 {} \;
LOGS_DIR=/cinder/dqmsquare/log/
PVC_DIR=/cinder/dqmsquare

echo Creating logs dir $LOGS_DIR ...
sudo mkdir -p $LOGS_DIR

echo Changing permissions for PVC claim $PVC_DIR ...
sudo find -type d -exec chmod 777 {} \;

sudo mkdir -p /cinder/dqmsquare/log/
sudo find /cinder/dqmsquare -type d -exec chmod 777 {} \;

python3 dqmsquare_cfg.py k8

if [[ $service ]] && [[ $service = "server" ]] ; then
python3 grabber.py production &
python3 grabber.py playback &

# Launch gunicorn with 4 workers.
gunicorn -w 4 -b 0.0.0.0:8084 'wsgi:flask_app'
fi

if [[ $service ]] && [[ $service = "dummy" ]] ; then
while true; do
echo "Sleep ..."
echo "Sleeping ..."
sleep 60
done
fi
45 changes: 0 additions & 45 deletions dqmsquare_mirror.spec

This file was deleted.

0 comments on commit 67edba5

Please sign in to comment.