Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Naundorf
HPC_Vehicle_Classification
Commits
bc960375
Commit
bc960375
authored
May 17, 2021
by
Sintal
Browse files
added execute_vehicle_classification.sh
parent
96e941ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
execute_vehicle_classification.sh
0 → 100644
View file @
bc960375
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment