Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-voronko committed Sep 29, 2023
2 parents 62f8fc5 + 8ce0f4f commit 69dc3d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ RUN PACKAGE_FILE=$(ls -1t $DEPLOYMENT_DIR/$APP_NAME_MASK 2>/dev/null | head -n 1
[ -z "$PACKAGE_FILE" ] && echo "Error. Docker image build failed: No valid application package detected." && exit 1 || \
echo "Using package file: $PACKAGE_FILE" && \
tar -xvf $PACKAGE_FILE -C $DEPLOYMENT_DIR/ && \
perl $APP_ROOT_DIR*/automated_install.pl && \
perl $APP_ROOT_DIR*/automated_install.pl || exit 1 && \
rm -rf $APP_ROOT_DIR* $DEPLOYMENT_DIR/$APP_NAME_MASK && \
[ -d "${APP_SERVER_DIR}/Logs" ] && tar -czvf "${APP_SERVER_DIR}"/Logs/img_build_logs.tar.gz -C ${APP_SERVER_DIR} Logs/* --remove-files || \
[ -d "${APP_SERVER_DIR}/Logs" ] && \
tar czvf ${APP_SERVER_DIR}/Logs/img_build_logs.tar.gz -C ${APP_SERVER_DIR} Logs --remove-files 2> /dev/null || \
mkdir -p $APP_SERVER_DIR/Logs && \
ln -s /dev/stdout $APP_SERVER_DIR/Logs/Main.log && \
ln -s /dev/stdout $APP_SERVER_DIR/Logs/Child-0.log && \
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.centos
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ RUN PACKAGE_FILE=$(ls -1t $DEPLOYMENT_DIR/$APP_NAME_MASK 2>/dev/null | head -n 1
[ -z "$PACKAGE_FILE" ] && echo "Error. Docker image build failed: No valid application package detected." && exit 1 || \
echo "Using package file: $PACKAGE_FILE" && \
tar -xvf $PACKAGE_FILE -C $DEPLOYMENT_DIR/ && \
perl $APP_ROOT_DIR*/automated_install.pl && \
perl $APP_ROOT_DIR*/automated_install.pl || exit 1 && \
rm -rf $APP_ROOT_DIR* $DEPLOYMENT_DIR/$APP_NAME_MASK && \
[ -d "${APP_SERVER_DIR}/Logs" ] && tar -czvf "${APP_SERVER_DIR}"/Logs/img_build_logs.tar.gz -C ${APP_SERVER_DIR} Logs/* --remove-files || \
[ -d "${APP_SERVER_DIR}/Logs" ] && \
tar czvf ${APP_SERVER_DIR}/Logs/img_build_logs.tar.gz -C ${APP_SERVER_DIR} Logs --remove-files 2> /dev/null || \
mkdir -p $APP_SERVER_DIR/Logs && \
ln -s /dev/stdout $APP_SERVER_DIR/Logs/Main.log && \
ln -s /dev/stdout $APP_SERVER_DIR/Logs/Child-0.log && \
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.redhat
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ RUN PACKAGE_FILE=$(ls -1t $DEPLOYMENT_DIR/$APP_NAME_MASK 2>/dev/null | head -n 1
[ -z "$PACKAGE_FILE" ] && echo "Error. Docker image build failed: No valid application package detected." && exit 1 || \
echo "Using package file: $PACKAGE_FILE" && \
tar -xvf $PACKAGE_FILE -C $DEPLOYMENT_DIR/ && \
perl $APP_ROOT_DIR*/automated_install.pl && \
perl $APP_ROOT_DIR*/automated_install.pl || exit 1 && \
rm -rf $APP_ROOT_DIR* $DEPLOYMENT_DIR/$APP_NAME_MASK && \
[ -d "${APP_SERVER_DIR}/Logs" ] && tar -czvf "${APP_SERVER_DIR}"/Logs/img_build_logs.tar.gz -C ${APP_SERVER_DIR} Logs/* --remove-files || \
[ -d "${APP_SERVER_DIR}/Logs" ] && \
tar czvf ${APP_SERVER_DIR}/Logs/img_build_logs.tar.gz -C ${APP_SERVER_DIR} Logs --remove-files 2> /dev/null || \
mkdir -p $APP_SERVER_DIR/Logs && \
ln -s /dev/stdout $APP_SERVER_DIR/Logs/Main.log && \
ln -s /dev/stdout $APP_SERVER_DIR/Logs/Child-0.log && \
Expand Down

0 comments on commit 69dc3d0

Please sign in to comment.