Skip to content

Commit

Permalink
Merge pull request #22 from ebmdatalab/benbc/debian-version-update
Browse files Browse the repository at this point in the history
More updates for the new Debian version
  • Loading branch information
benbc authored Jan 17, 2025
2 parents 02931a2 + 749032a commit 2605a36
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions ctconvert/startup_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,18 @@ function shutdown () {
trap shutdown ERR

apt-get update
apt-get -y install git python3-pip unzip wget
apt-get -y install git python3.7 python3.7-venv unzip wget

cd /tmp
git clone https://github.com/ebmdatalab/clinicaltrials-act-converter.git
cd clinicaltrials-act-converter

echo "Setting up logging"
curl -sSO https://dl.google.com/cloudagents/install-logging-agent.sh
sudo bash install-logging-agent.sh
sudo cp fdaaa-converter-log.conf /etc/google-fluentd/config.d/
sudo service google-fluentd restart

echo "Installing requirements"
pip3 install -r requirements.txt
python3.7 -m venv venv
venv/bin/pip install -r requirements.txt

echo "Running command"
python3 ctconvert/convert_data.py
venv/bin/python ctconvert/convert_data.py

echo "Running webhook $CALLBACK"
curl "$CALLBACK"
Expand Down

0 comments on commit 2605a36

Please sign in to comment.