mirror of
https://github.com/bitnami/containers.git
synced 2026-03-09 15:40:15 +08:00
moved BITNAMI_APP_VOL_PREFIX/webapps/ to /app/
This commit is contained in:
@@ -14,7 +14,7 @@ RUN sh $BITNAMI_PREFIX/install.sh\
|
||||
|
||||
COPY bitnami-utils-custom.sh /bitnami-utils-custom.sh
|
||||
EXPOSE 8080
|
||||
VOLUME ["$BITNAMI_APP_VOL_PREFIX/conf", "$BITNAMI_APP_VOL_PREFIX/logs", "$BITNAMI_APP_VOL_PREFIX/webapps"]
|
||||
VOLUME ["$BITNAMI_APP_VOL_PREFIX/conf", "$BITNAMI_APP_VOL_PREFIX/logs", "/app"]
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Tomcat Utility functions
|
||||
|
||||
initialize_tomcat_webapps() {
|
||||
echo "==> Initializing Tomcat webapps..."
|
||||
echo "==> Initializing Tomcat webapps directory..."
|
||||
echo ""
|
||||
cp -a $BITNAMI_APP_DIR/webapps.defaults/* $BITNAMI_APP_DIR/webapps/
|
||||
cp -a $BITNAMI_APP_DIR/webapps.defaults/* /app/
|
||||
}
|
||||
|
||||
@@ -23,12 +23,12 @@ else
|
||||
print_container_already_initialized $BITNAMI_APP_NAME
|
||||
fi
|
||||
|
||||
chown -R $BITNAMI_APP_USER:$BITNAMI_APP_USER $BITNAMI_APP_VOL_PREFIX/conf/ $BITNAMI_APP_VOL_PREFIX/logs/ $BITNAMI_APP_VOL_PREFIX/webapps/ || true
|
||||
chown -R $BITNAMI_APP_USER:$BITNAMI_APP_USER $BITNAMI_APP_VOL_PREFIX/conf/ $BITNAMI_APP_VOL_PREFIX/logs/ /app/ || true
|
||||
|
||||
if [ "$1" = 'catalina.sh' ]; then
|
||||
set -- $@ $EXTRA_OPTIONS
|
||||
|
||||
if [ ! -d $BITNAMI_APP_VOL_PREFIX/webapps/manager ]; then
|
||||
if [ ! -d /app/manager ]; then
|
||||
initialize_tomcat_webapps
|
||||
fi
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
TOMCAT_PASSWORD: Password set at first boot for your $BITNAMI_APP_NAME server (default: none).
|
||||
|
||||
VOLUMES:
|
||||
$BITNAMI_APP_VOL_PREFIX/webapps: Location of your $BITNAMI_APP_NAME webapps.
|
||||
/app: Location of your $BITNAMI_APP_NAME webapps.
|
||||
$BITNAMI_APP_VOL_PREFIX/conf: Location of $BITNAMI_APP_NAME config files.
|
||||
$BITNAMI_APP_VOL_PREFIX/logs: Location of $BITNAMI_APP_NAME logs.
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
environment_variables:
|
||||
TOMCAT_PASSWORD: "Password set at first boot for your $BITNAMI_APP_NAME server (default: none)."
|
||||
volumes:
|
||||
$BITNAMI_APP_VOL_PREFIX/webapps: "Location of your $BITNAMI_APP_NAME webapps."
|
||||
/app: "Location of your $BITNAMI_APP_NAME webapps."
|
||||
$BITNAMI_APP_VOL_PREFIX/conf: "Location of $BITNAMI_APP_NAME config files."
|
||||
$BITNAMI_APP_VOL_PREFIX/logs: "Location of $BITNAMI_APP_NAME logs."
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user