forked from mirrors/easyappointments
fix: build error
This commit is contained in:
parent
39f56fe05d
commit
319e4c49e7
2 changed files with 34 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"overrides": {
|
||||
"graceful-fs": "^4.2.11"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^5.15.1",
|
||||
"bootstrap": "^4.5.3",
|
||||
|
|
Loading…
Reference in a new issue