diff --git a/docker/webapp/build.sh b/docker/webapp/build.sh index 5cd5e4d5..678149b8 100755 --- a/docker/webapp/build.sh +++ b/docker/webapp/build.sh @@ -1,30 +1,33 @@ #!/bin/bash set -e set -x +echo -e "Building with the following ulimit: limit: $(ulimit -n)\n" +echo -e "If you run into EMFILE errors, this is the reason" + mkdir /src cd /src git clone --branch $GIT_REF https://git.kolab.org/source/kolab.git kolab pushd kolab git reset --hard $GIT_REF popd rmdir /opt/app-root/src cp -a kolab/src /opt/app-root/src cd /opt/app-root/src/ mkdir -p storage/framework/{sessions,views,cache} mkdir -p database/seeds php -dmemory_limit=-1 $(command -v composer) install npm -g install npm /usr/local/bin/npm install ./artisan storage:link ./artisan clear-compiled ./artisan horizon:install if [ ! -f 'resources/countries.php' ]; then ./artisan data:countries fi /usr/local/bin/npm run dev