start container check empty config folder
This commit is contained in:
parent
42c285a4c6
commit
4f8c429175
|
@ -14,13 +14,6 @@ PUSH_HARBOR=false
|
|||
LOGIN_HARBOR=false
|
||||
MULTI_PLATFORM=false
|
||||
|
||||
|
||||
IMAGE_VERSION=${SMARTGEARS_VERSION}-java${JAVA_VERSION}-tomcat${TOMCAT_VERSION}
|
||||
|
||||
BUILD_NAME=$NAME:$IMAGE_VERSION
|
||||
|
||||
echo "BUILD_NAME=$BUILD_NAME"
|
||||
|
||||
################################################################################
|
||||
# Help #
|
||||
################################################################################
|
||||
|
@ -71,6 +64,11 @@ do
|
|||
esac
|
||||
done
|
||||
|
||||
IMAGE_VERSION=${SMARTGEARS_VERSION}-java${JAVA_VERSION}-tomcat${TOMCAT_VERSION}
|
||||
|
||||
BUILD_NAME=$NAME:$IMAGE_VERSION
|
||||
|
||||
echo "BUILD_NAME=$BUILD_NAME"
|
||||
|
||||
if [ ${LOGIN_HARBOR} = true ];
|
||||
then
|
||||
|
|
6
pom.xml
6
pom.xml
|
@ -17,8 +17,10 @@
|
|||
<wiki>https://wiki.gcube-system.org/gcube/SmartGears</wiki>
|
||||
</properties>
|
||||
<scm>
|
||||
<connection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</connection>
|
||||
<developerConnection>scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</developerConnection>
|
||||
<connection>
|
||||
scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</connection>
|
||||
<developerConnection>
|
||||
scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git</developerConnection>
|
||||
<url>https://code-repo.d4science.org/gCubeSystem/${project.artifactId}</url>
|
||||
</scm>
|
||||
<dependencyManagement>
|
||||
|
|
|
@ -12,8 +12,8 @@ if [ -f "$container" ]; then
|
|||
cp $container /smartgears-distribution
|
||||
fi
|
||||
|
||||
if [ -d "$configfolder" ]; then
|
||||
echo "config folder exists"
|
||||
if [ -d "$configfolder" ] && ! [ -z "$(ls -A $configfolder)" ]; then
|
||||
echo "config folder exists and is not empty"
|
||||
cp -R $configfolder/* /smartgears-distribution/config/apps/
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue