diff --git a/build/build.sh b/build/build.sh new file mode 100755 index 0000000000..17a9183f9e --- /dev/null +++ b/build/build.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +@echo off + +echo "##########################################################" +echo "######### Start build and deploy #######################" +echo "##########################################################" + +echo. + +rd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +echo "Run script directory:" $rd + +dir=$(builtin cd $rd/../; pwd) +echo "Root directory:" $dir + +echo "FRONT-END (for start run command 'yarn start' inside the root folder)" +yarn install $dir + +echo "BACK-END" +dotnet build $dir/asc.web.slnf /fl1 /flp1:logfile=asc.web.log;verbosity=normal diff --git a/build/run/macos/api.sh b/build/run/macos/api.sh new file mode 100755 index 0000000000..238d3cee69 --- /dev/null +++ b/build/run/macos/api.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +rd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +echo "Run script directory:" $rd + +dir=$(builtin cd $rd/../../../; pwd) +echo "Root directory:" $dir + +# Web API Root +dotnet $dir/web/ASC.Web.Api/bin/Debug/ASC.Web.Api.dll urls=http://0.0.0.0:5000 $STORAGE_ROOT=$dir/Data log:dir=$dir/Logs log:name=api pathToConf=$dir/config core:products:folder=$dir/products \ No newline at end of file diff --git a/build/run/macos/backend.sh b/build/run/macos/backend.sh new file mode 100755 index 0000000000..6bde5ca7d6 --- /dev/null +++ b/build/run/macos/backend.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +echo "Root directory:" $dir + +$dir/api.sh & +$dir/studio.sh & +$dir/people.sh & +$dir/files.sh & +$dir/files.service.sh & \ No newline at end of file diff --git a/build/run/macos/docker-tools/docker-compose.yml b/build/run/macos/docker-tools/docker-compose.yml new file mode 100644 index 0000000000..1f5378f8e8 --- /dev/null +++ b/build/run/macos/docker-tools/docker-compose.yml @@ -0,0 +1,20 @@ +version: "3.8" + +services: + rhonda_rabbitmq: + image: rabbitmq:3-management-alpine + container_name: "rabbitmq" + ports: + - 5672:5672 + - 15672:15672 + volumes: + - ~/.container-data/rabbitmq/data/:/var/lib/rabbitmq/ + - ~/.container-data/rabbitmq/log/:/var/log/rabbitmq + redis: + image: redis:latest + volumes: + - ~/.container-data/redis/log/:/var/log/redis + ports: + - 6379:6379 +volumes: + container-data: diff --git a/build/run/macos/files.service.sh b/build/run/macos/files.service.sh new file mode 100755 index 0000000000..ae06ee9944 --- /dev/null +++ b/build/run/macos/files.service.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +rd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +echo "Run script directory:" $rd + +dir=$(builtin cd $rd/../../../; pwd) +echo "Root directory:" $dir + +# Web API Files.Service +# set servicepath=%cd%\products\ASC.Files\Service\bin\Debug\ASC.Files.Service.exe urls=http://0.0.0.0:5009 $STORAGE_ROOT=%cd%\Data log:dir=%cd%\Logs log:name=files.service pathToConf=%cd%\config core:products:folder=%cd%\products +dotnet $dir/products/ASC.Files/Service/bin/Debug/ASC.Files.Service.dll urls=http://0.0.0.0:5009 $STORAGE_ROOT=$dir/Data log:dir=$dir/Logs log:name=files.service pathToConf=$dir/config core:products:folder=$dir/products \ No newline at end of file diff --git a/build/run/macos/files.sh b/build/run/macos/files.sh new file mode 100755 index 0000000000..dbba634148 --- /dev/null +++ b/build/run/macos/files.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +rd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +echo "Run script directory:" $rd + +dir=$(builtin cd $rd/../../../; pwd) +echo "Root directory:" $dir + +# Web API Files +# set servicepath=%cd%\products\ASC.Files\Server\bin\Debug\ASC.Files.exe urls=http://0.0.0.0:5007 $STORAGE_ROOT=%cd%\Data log:dir=%cd%\Logs log:name=files pathToConf=%cd%\config core:products:folder=%cd%\products +dotnet $dir/products/ASC.Files/Server/bin/Debug/ASC.Files.dll urls=http://0.0.0.0:5007 $STORAGE_ROOT=$dir/Data log:dir=$dir/Logs log:name=files pathToConf=$dir/config core:products:folder=$dir/products \ No newline at end of file diff --git a/build/run/macos/people.sh b/build/run/macos/people.sh new file mode 100755 index 0000000000..6e14fd0b53 --- /dev/null +++ b/build/run/macos/people.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +rd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +echo "Run script directory:" $rd + +dir=$(builtin cd $rd/../../../; pwd) +echo "Root directory:" $dir + +# Web API People +# set servicepath=%cd%\products\ASC.People\Server\bin\Debug\ASC.People.exe urls=http://0.0.0.0:5004 $STORAGE_ROOT=%cd%\Data log:dir=%cd%\Logs log:name=people pathToConf=%cd%\config core:products:folder=%cd%\products +dotnet $dir/products/ASC.People/Server/bin/Debug/ASC.People.dll urls=http://0.0.0.0:5004 $STORAGE_ROOT=$dir/Data log:dir=$dir/Logs log:name=people pathToConf=$dir/config core:products:folder=$dir/products \ No newline at end of file diff --git a/build/run/macos/studio.sh b/build/run/macos/studio.sh new file mode 100755 index 0000000000..38001b0206 --- /dev/null +++ b/build/run/macos/studio.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +rd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +echo "Run script directory:" $rd + +dir=$(builtin cd $rd/../../../; pwd) +echo "Root directory:" $dir + +# Web Studio +# set servicepath=%cd%\web\ASC.Web.Studio\bin\Debug\ASC.Web.Studio.exe urls=http://0.0.0.0:5003 $STORAGE_ROOT=%cd%\Data log:dir=%cd%\Logs log:name=studio pathToConf=%cd%\config core:products:folder=%cd%\products +dotnet $dir/web/ASC.Web.Studio/bin/Debug/ASC.Web.Studio.dll urls=http://0.0.0.0:5003 $STORAGE_ROOT=$dir/Data log:dir=$dir/Logs log:name=studio pathToConf=$dir/config core:products:folder=$dir/products \ No newline at end of file diff --git a/build/runMigrations.sh b/build/runMigrations.sh new file mode 100644 index 0000000000..7758e245c1 --- /dev/null +++ b/build/runMigrations.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "MIGRATIONS" +echo off + +rd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +echo "Run script directory:" $rd + +dir=$(builtin cd $rd/../; pwd) +echo "Root directory:" $dir + +dotnet build $dir/asc.web.slnf +dotnet build $dir/ASC.Migrations.sln + +pushd $dir/common/Tools/ASC.Migration.Runner/bin/Debug/net6.0 +dotnet ASC.Migration.Runner.dll \ No newline at end of file