fix: build error

This commit is contained in:
Aliberk Sandıkçı 2023-12-20 21:40:49 +03:00
parent 39f56fe05d
commit 319e4c49e7
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
2 changed files with 34 additions and 4 deletions

View file

@ -7,7 +7,6 @@
# IFLRANDEVU_VER="test" # IFLRANDEVU_VER="test"
IFLRANDEVU_VER="1.4.3-ifl.2" # UPDATE MANUALLY ! IFLRANDEVU_VER="1.4.3-ifl.2" # UPDATE MANUALLY !
_RED='\033[0;31m' _RED='\033[0;31m'
_NC='\033[0m \e[0m' # No Color, No Effect _NC='\033[0m \e[0m' # No Color, No Effect
if [[ $1 != "docker" ]]; then if [[ $1 != "docker" ]]; then
@ -16,6 +15,7 @@ if [[ $1 != "docker" ]]; then
exit exit
fi fi
docker rm IFLRANDEVU_BUILDER docker rm IFLRANDEVU_BUILDER
echo "removed"
docker run -it -d --name IFLRANDEVU_BUILDER --mount type=bind,source=".",target=/link/ alpine:latest "/bin/sh" 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 COMMANDS IN ALPINE DOCKER"
echo -e "RUN SCRIPT: \`${_RED}apk add bash && bash /link/docker.sh docker${_NC}\`" echo -e "RUN SCRIPT: \`${_RED}apk add bash && bash /link/docker.sh docker${_NC}\`"
@ -23,7 +23,7 @@ if [[ $1 != "docker" ]]; then
echo "EXIT" echo "EXIT"
exit exit
elif [[ $1 == "docker" ]]; then elif [[ $1 == "docker" ]]; then
set -ex set -x
# Inside Alpine Docker # Inside Alpine Docker
apk update && apk upgrade apk update && apk upgrade
apk add git npm composer apk add git npm composer
@ -37,10 +37,37 @@ elif [[ $1 == "docker" ]]; then
composer update composer update
composer upgrade composer upgrade
npm audit fix # maybe no need ? 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 npm run build
echo -e "${_RED}!SEE RESULT ABOVE!${_NC}" echo -e "${_RED}!SEE RESULT ABOVE!${_NC}"
echo "waiting before archiving(10)"
sleep 10 sleep 10
apk add zip apk add zip
if [[ -f "/link/iflrandevu-$IFLRANDEVU_VER.zip" ]]; then if [[ -f "/link/iflrandevu-$IFLRANDEVU_VER.zip" ]]; then

View file

@ -28,6 +28,9 @@
"engines": { "engines": {
"node": ">=12" "node": ">=12"
}, },
"overrides": {
"graceful-fs": "^4.2.11"
},
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^5.15.1", "@fortawesome/fontawesome-free": "^5.15.1",
"bootstrap": "^4.5.3", "bootstrap": "^4.5.3",