From bc960375cd29ac8fe7a50426694efee33bcbc05c Mon Sep 17 00:00:00 2001
From: Sintal <61sima1bif@hft-stuttgart.de>
Date: Mon, 17 May 2021 18:02:38 +0000
Subject: [PATCH] added execute_vehicle_classification.sh

---
 execute_vehicle_classification.sh | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 execute_vehicle_classification.sh

diff --git a/execute_vehicle_classification.sh b/execute_vehicle_classification.sh
new file mode 100644
index 0000000..a6ad482
--- /dev/null
+++ b/execute_vehicle_classification.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+echo "creating folder"
+#create folder and change directory
+mkdir -p ~/hpc_vehicle_classification
+cd ~/hpc_vehicle_classification
+pwd
+
+echo "handling ssh-key"
+#handle SSH-key (the argument "$1" is the SSH-key to gitlab)
+eval $(ssh-agent -s)
+echo "$1" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
+
+#pull gitlab repository
+echo "pulling gitlab repository"
+git init
+git pull git@transfer.hft-stuttgart.de:fork_hpc_vehicle_classification/hpc_vehicle_classification.git
+
+#loading conda environment
+echo "load and activate virtual environment"
+eval "$(conda shell.bash hook)"
+conda env create -f environment.yml
+conda activate env_vehicle_classification
+
+echo "running python code"
+python main.py
-- 
GitLab