start container check empty config folder

This commit is contained in:
lucio 2024-07-09 11:47:23 +02:00
parent 42c285a4c6
commit 4f8c429175
3 changed files with 11 additions and 11 deletions

View File

@ -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

View File

@ -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>

View File

@ -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