mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
https://github.com/cskefu/cskefu/issues/775 add application-docker.properties
Signed-off-by: Hai Liang Wang <hai@chatopera.com>
This commit is contained in:
parent
42267f0ff2
commit
8f49a8023d
@ -10,11 +10,12 @@ ARG APPLICATION_BUILD_DATESTR
|
|||||||
|
|
||||||
ENV APPLICATION_CUSTOMER_ENTITY=$APPLICATION_CUSTOMER_ENTITY
|
ENV APPLICATION_CUSTOMER_ENTITY=$APPLICATION_CUSTOMER_ENTITY
|
||||||
ENV APPLICATION_BUILD_DATESTR=$APPLICATION_BUILD_DATESTR
|
ENV APPLICATION_BUILD_DATESTR=$APPLICATION_BUILD_DATESTR
|
||||||
|
ENV SPRING_PROFILES_ACTIVE=docker
|
||||||
|
|
||||||
LABEL org.label-schema.vcs-ref=$VCS_REF \
|
LABEL org.label-schema.vcs-ref=$VCS_REF \
|
||||||
org.label-schema.vcs-url="https://github.com/cskefu/cskefu"
|
org.label-schema.vcs-url="https://github.com/cskefu/cskefu"
|
||||||
|
|
||||||
RUN rm -rf /opt/cskefu && mkdir /opt/cskefu
|
RUN rm -rf /opt/cskefu && mkdir /opt/cskefu && mkdir /opt/cskefu/felix-cache
|
||||||
COPY ./target/serving-api.jar /opt/cskefu/serving-api.jar
|
COPY ./target/serving-api.jar /opt/cskefu/serving-api.jar
|
||||||
COPY ./target/internal-bundles /opt/cskefu/internal-bundles
|
COPY ./target/internal-bundles /opt/cskefu/internal-bundles
|
||||||
COPY ./assets/*.sh /opt/cskefu
|
COPY ./assets/*.sh /opt/cskefu
|
||||||
|
@ -11,6 +11,7 @@ baseDir=$(cd `dirname "$0"`;pwd)
|
|||||||
# main
|
# main
|
||||||
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
|
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
|
||||||
cd $baseDir
|
cd $baseDir
|
||||||
|
echo ">> SPRING_PROFILES_ACTIVE="$SPRING_PROFILES_ACTIVE
|
||||||
|
|
||||||
# TODO, setup db or upgrade db
|
# TODO, setup db or upgrade db
|
||||||
|
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
# --------------------------------
|
||||||
|
# Felix Framework settings
|
||||||
|
# https://felix.apache.org/documentation/subprojects/apache-felix-framework/apache-felix-framework-configuration-properties.html
|
||||||
|
# --------------------------------
|
||||||
|
# If true will configure a shutdown hook to shutdown the framework on JVM shutdown
|
||||||
|
plugins.config.felix.shutdown.hook=true
|
||||||
|
# Where is the felix bundle cache dir
|
||||||
|
plugins.config.org.osgi.framework.storage=/opt/cskefu/felix-cache
|
||||||
|
# When to clean the felix-cache directory
|
||||||
|
plugins.config.org.osgi.framework.storage.clean=onFirstInit
|
||||||
|
# Directory to look for bundles to deploy once when framework first loads
|
||||||
|
plugins.config.felix.auto.deploy.dir=/opt/cskefu/internal-bundles
|
||||||
|
# Actions to perform on discovered bundles
|
||||||
|
plugins.config.felix.auto.deploy.action=install,start,update,uninstall
|
||||||
|
plugins.config.felix.startlevel.bundle=1
|
||||||
|
plugins.config.felix.fileinstall.dir=/opt/cskefu/plugins
|
||||||
|
plugins.config.felix.fileinstall.log.level=2
|
||||||
|
plugins.config.felix.fileinstall.bundles.updateWithListeners=true
|
||||||
|
plugins.config.org.osgi.framework.system.packages.extra=org.osgi.framework,org.xml.sax,org.xml.sax.helpers,javax.xml.parsers,javax.naming
|
||||||
|
plugins.config.auto.exported.packages=com.cskefu.mod.plugin,org.slf4j
|
||||||
|
|
||||||
|
server.port=6500
|
||||||
|
server.servlet.context-path=/api
|
Loading…
x
Reference in New Issue
Block a user