From f5a9ddf041c51e1f72e1d54a80b67f8dd30a669a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sat, 16 Sep 2023 19:36:42 +0200 Subject: [PATCH] add entry point for debug docker --- docker/scripts/entry-point-dev.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 docker/scripts/entry-point-dev.sh diff --git a/docker/scripts/entry-point-dev.sh b/docker/scripts/entry-point-dev.sh new file mode 100755 index 0000000..26c43ca --- /dev/null +++ b/docker/scripts/entry-point-dev.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -e + +chmod 777 cache + +echo "Installing Composer packages..." +if [ -f .env ]; then + composer install +else + composer create-project +fi + +echo "Installing NPM packages..." +(cd multi && npm install) + +echo "Installing Yarn packages..." +(cd public/static && yarn install) + +echo "Migrating DB..." +./mapg db:migrate + +set +e + +/usr/sbin/php-fpm7.4 -F & +/usr/sbin/nginx -g 'daemon off;' & +/usr/bin/node --inspect=0.0.0.0:9229 multi & + +wait -n + +exit $?