-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdispatcher-cloud-run-local-win.cmd
57 lines (48 loc) · 1.4 KB
/
dispatcher-cloud-run-local-win.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@echo off
if not defined AEM_SDK_DISPATCHER_TOOLS ( goto aem_sdk_dispatcher_tools_undefined )
echo.Using AEM SDK Dispatcher Tools: %AEM_SDK_DISPATCHER_TOOLS%
echo.
echo.--- Build Dispatcher config ---
echo.
call mvn -Pfast -Dconga.environments=local-cloud -Dconga.nodes=aem-dispatcher -Dconga.cloudManager.dispatcherConfig.skip=false clean package
if errorlevel 1 goto build_failed
echo.--- Validate Dispatcher config ---
echo.
IF exist target\validator-ouput ( rmdir /s/q target\validator-ouput )
%AEM_SDK_DISPATCHER_TOOLS%\bin\validator.exe full -d target/validator-ouput target/local-cloud.aem-dispatcher.dispatcher-config.zip
if errorlevel 1 goto valiation_failed
echo.
echo.--- Start dispatcher in docker ---
echo.
echo.Expects AEM publish instance on: http://localhost:4503
echo.Access dispatcher on: http://localhost:5503
echo.
call %AEM_SDK_DISPATCHER_TOOLS%\bin\docker_run.cmd target\validator-ouput host.docker.internal:4503 5503
if errorlevel 1 goto docker_failed
exit
:build_failed
echo.
echo.*** Build failed ***
echo.
pause
exit
:valiation_failed
echo.
echo.*** Validation failed ***
echo.
pause
exit
:docker_failed
echo.
echo.*** Docker startup failed ***
echo.
pause
exit
:aem_sdk_dispatcher_tools_undefined
echo.
echo.*** Environment variable not defined ***
echo.
echo.Please define AEM_SDK_DISPATCHER_TOOLS pointing to latest aem-sdk-dispatcher-tools-XXX-windows directory.
echo.
pause
exit