-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cc45ef
commit b012306
Showing
4 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@echo off | ||
chcp 65001 >nul | ||
setlocal enabledelayedexpansion | ||
|
||
set "BRANCH_NAME=%~1" | ||
if "%BRANCH_NAME%"=="" set "BRANCH_NAME=main" | ||
|
||
set "NU_QUICKSTART_DIR=nussknacker-quickstart-%BRANCH_NAME%" | ||
|
||
powershell -Command "Invoke-WebRequest -Uri 'https://github.com/TouK/nussknacker-quickstart/archive/refs/heads/%BRANCH_NAME%.zip' -OutFile '%NU_QUICKSTART_DIR%.zip'" | ||
|
||
if exist "%NU_QUICKSTART_DIR%" ( | ||
rd /s /q "%NU_QUICKSTART_DIR%" | ||
) | ||
|
||
powershell -Command "Expand-Archive -Path '%NU_QUICKSTART_DIR%.zip' -DestinationPath ." | ||
|
||
cd "%NU_QUICKSTART_DIR%" | ||
|
||
call start.bat | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@echo off | ||
chcp 65001 >nul | ||
setlocal enabledelayedexpansion | ||
|
||
echo Running Nussknacker Quickstart ... | ||
echo. | ||
|
||
docker --version >nul 2>&1 | ||
if errorlevel 1 ( | ||
echo No Docker found. Docker is required to run this Quickstart. See https://docs.docker.com/engine/install/ | ||
exit /b 1 | ||
) | ||
|
||
docker compose version >nul 2>&1 | ||
if errorlevel 1 ( | ||
echo No docker compose found. It seems you have to upgrade your Docker installation. See https://docs.docker.com/engine/install/ | ||
exit /b 2 | ||
) | ||
|
||
docker compose config >nul 2>&1 | ||
if errorlevel 1 ( | ||
echo Cannot validate docker compose configuration. It seems you have to upgrade your Docker installation. See https://docs.docker.com/engine/install/ | ||
exit /b 3 | ||
) | ||
|
||
docker compose up -d --build --wait | ||
|
||
echo. | ||
echo Nussknacker and its dependencies are up and running. | ||
echo Open http://localhost:8080 and log in as admin:admin ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@echo off | ||
setlocal enabledelayedexpansion | ||
|
||
cd /d "%~dp0" | ||
|
||
echo Running Nussknacker Quickstart clean up ... | ||
echo. | ||
|
||
docker --version >nul 2>&1 | ||
if errorlevel 1 ( | ||
echo No Docker found. Docker is required to run this Quickstart. See https://docs.docker.com/engine/install/ | ||
exit /b 1 | ||
) | ||
|
||
docker compose version >nul 2>&1 | ||
if errorlevel 1 ( | ||
echo No docker compose found. It seems you have to upgrade your Docker installation. See https://docs.docker.com/engine/install/ | ||
exit /b 2 | ||
) | ||
|
||
docker compose config >nul 2>&1 | ||
if errorlevel 1 ( | ||
echo Cannot validate docker compose configuration. It seems you have to upgrade your Docker installation. See https://docs.docker.com/engine/install/ | ||
exit /b 3 | ||
) | ||
|
||
docker compose down -v | ||
|
||
echo All is cleaned. Goodbye | ||
|