added config folder
This commit is contained in:
parent
e185fdde66
commit
8b3224226e
|
@ -4,6 +4,9 @@ FROM tomcat:10.1.19-jdk$JAVA_VERSION-temurin-jammy
|
|||
ARG version=4.0.0-SNAPSHOT
|
||||
COPY ./target/$filename.tar.gz /smartgears-distro.tar.gz
|
||||
WORKDIR /
|
||||
# all file and folder in etc/config are moved to the smartgears applications configuration directory
|
||||
# for specific application configuration ( configuration file for app with contextPath "contextPath" must be placed in /etc/config/contextPath)
|
||||
RUN mkdir -p /etc/config
|
||||
RUN tar zxvf /smartgears-distro.tar.gz
|
||||
RUN rm /smartgears-distro.tar.gz
|
||||
RUN export CATALINA_HOME=/usr/local/tomcat
|
||||
|
|
|
@ -21,6 +21,12 @@
|
|||
<fileMode>755</fileMode>
|
||||
<filtered>true</filtered>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<outputDirectory>/config/apps</outputDirectory>
|
||||
<directory>${distroDirectory}/config/apps</directory>
|
||||
<useDefaultExcludes>true</useDefaultExcludes>
|
||||
<fileMode>755</fileMode>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>${distroDirectory}/contents</directory>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
logs=/etc/logback.xml
|
||||
container=/etc/container.ini
|
||||
configfolder=/etc/config
|
||||
|
||||
if [ -f "$logs" ]; then
|
||||
cp $logs /tomcat/lib
|
||||
fi
|
||||
|
@ -10,6 +12,11 @@ if [ -f "$container" ]; then
|
|||
cp $container /smartgears-distribution
|
||||
fi
|
||||
|
||||
if [ -d "$configfolder" ]; then
|
||||
echo "config folder exists"
|
||||
cp -R $configfolder/* /smartgears-distribution/config/apps/
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue