-
Notifications
You must be signed in to change notification settings - Fork 0
/
omtd-component-ingestionGen.sh
executable file
·45 lines (37 loc) · 1.3 KB
/
omtd-component-ingestionGen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
dir=$(pwd)/
echo -e $dir$1
echo "Reading config...." >&2
. $dir$1
echo -e "Started.." $dir$1
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
locRepo=/opt/TDMlocalRepo/
if [ $UseCache == "yes" ]; then
echo "RemoveCache:$RemoveCache"
if [ $RemoveCache == "yes" ]; then
rm -rf $locRepo
fi
templocRepo=TDMlocalRepo
# If local repo does not exist
# download jars and create "./TDMCoordinatesList.txt" and "./TDMClasspathLists/"
if [ ! -d "$locRepo" ]; then
echo "Fetch deps to $locRepo"
mkdir $locRepo
./FetchDependencies.sh ./TDMCoordinatesList.txt ./TDMClasspathLists/ $locRepo
else
echo "$locRepo already exists"
fi
# Copy repo here.
# This is required so that the localRepo is included in docker image.
if [ ! -d "$templocRepo" ]; then
echo "-- -- Copy $locRepo to $(pwd)"
cp -R $locRepo .
fi
fi
# Ingest components.
#./omtd-component-ingestion.sh $DockerRegistyHOST $OMTDSHAREDescriptorsFolderRoot $OMTDSHAREDescriptorsFolder $GalaxyID $ComponentID $ComponentVersion $DockerFile $DockerID $DockerVersion $Push $DockerImgTag
./omtd-component-ingestion.sh $DockerRegistyHOST $OMTDSHAREDescriptorsFolderRoot $OMTDSHAREDescriptorsFolder $GalaxyID $DockerFile $DockerID $DockerVersion $Push $GalaxyExecutorLoc $DockerImgTag
if [ $UseCache == "yes" ]; then
# Remove repo.
rm -rf $templocRepo
fi