From 319e4c49e7513ae44a14b3800999cb4445188763 Mon Sep 17 00:00:00 2001 From: asandikci Date: Wed, 20 Dec 2023 21:40:49 +0300 Subject: [PATCH] fix: build error --- docker/build/docker.sh | 35 +++++++++++++++++++++++++++++++---- package.json | 3 +++ 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/docker/build/docker.sh b/docker/build/docker.sh index 55ebf958..19a68973 100755 --- a/docker/build/docker.sh +++ b/docker/build/docker.sh @@ -4,10 +4,9 @@ # First setup docker and install alpine image # Approximately 10min (tested with 4vcpu / 8GB RAM / 30Mbps network speed) -# IFLRANDEVU_VER="test" +# IFLRANDEVU_VER="test" IFLRANDEVU_VER="1.4.3-ifl.2" # UPDATE MANUALLY ! - _RED='\033[0;31m' _NC='\033[0m \e[0m' # No Color, No Effect if [[ $1 != "docker" ]]; then @@ -16,6 +15,7 @@ if [[ $1 != "docker" ]]; then exit fi docker rm IFLRANDEVU_BUILDER + echo "removed" docker run -it -d --name IFLRANDEVU_BUILDER --mount type=bind,source=".",target=/link/ alpine:latest "/bin/sh" echo -e "RUN COMMANDS IN ALPINE DOCKER" echo -e "RUN SCRIPT: \`${_RED}apk add bash && bash /link/docker.sh docker${_NC}\`" @@ -23,7 +23,7 @@ if [[ $1 != "docker" ]]; then echo "EXIT" exit elif [[ $1 == "docker" ]]; then - set -ex + set -x # Inside Alpine Docker apk update && apk upgrade apk add git npm composer @@ -37,10 +37,37 @@ elif [[ $1 == "docker" ]]; then composer update composer upgrade npm audit fix # maybe no need ? - npm install && composer install + npm install + if [ $? -eq 0 ]; then + echo "${_RED}SUCCESS${_NC}" + mkdir -p /status/success + touch /status/success/npm + else + echo -e "${_RED}FAIL${_NC}" + mkdir -p /status/fail + touch /status/fail/npm + fi + echo -e "${_RED}!SEE RESULT ABOVE!${_NC}" + echo "waiting before composer install(10)" + sleep 10 + + composer install + if [ $? -eq 0 ]; then + echo "${_RED}SUCCESS${_NC}" + mkdir -p /status/success + touch /status/success/composer + else + echo -e "${_RED}FAIL${_NC}" + mkdir -p /status/fail + touch /status/fail/composer + fi + echo -e "${_RED}!SEE RESULT ABOVE!${_NC}" + echo "waiting before build(10)" + sleep 10 npm run build echo -e "${_RED}!SEE RESULT ABOVE!${_NC}" + echo "waiting before archiving(10)" sleep 10 apk add zip if [[ -f "/link/iflrandevu-$IFLRANDEVU_VER.zip" ]]; then diff --git a/package.json b/package.json index cb129d1b..b612c2e7 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,9 @@ "engines": { "node": ">=12" }, + "overrides": { + "graceful-fs": "^4.2.11" + }, "dependencies": { "@fortawesome/fontawesome-free": "^5.15.1", "bootstrap": "^4.5.3",