Difference between revisions of "Up.bat"
Jump to navigation
Jump to search
(Created page with "This script is the only script you need to run to launch the Docker Services that gives you MediaWiki functionalities on your own machine. <SyntaxHighlight lang="batch" line=...") |
|||
Line 1: | Line 1: | ||
This script is the | This script is the batch script you need to run to launch the Docker Services that gives you [[PKC]] functionalities on your [[Windows 10]] machine. | ||
<SyntaxHighlight lang="batch" line='line'> | <SyntaxHighlight lang="batch" line='line'> |
Latest revision as of 09:12, 27 August 2021
This script is the batch script you need to run to launch the Docker Services that gives you PKC functionalities on your Windows 10 machine.
@ECHO OFF
set w=5
set a=C
set b=:\Program Files\Docker
set l=(C D E F G H I J K L M N O P Q R S T U V W X Y Z)
::set b=:\Videos
set c=%a%%b%
echo Try to find %c%
set found=false
for %%d in %l% do (
if exist "%%d%b%" (
echo Found the file: %%d%b%
set found=true
echo Will first shutdown PKC related docker processes
docker-compose down
goto :checkMountPoint
)
)
:checkMountPoint
if not exist ".\mountPoint" (
echo Try to use the default Data Package in .\resources
cd .\resources
.\unzip mountPoint.zip -d ..\.
cd ..
)
for %%d in %l% do (
if exist "%%d%b%" (
echo Found the file: %%d%b%, meaning that Docker should have been installed, and needs to be running in the background
set found=true
echo Will use docker-compose to launch PKC
docker-compose up -d
echo Wait for Docker-compose to get services ready before launching the browser...
goto :readyToLaunch
)
)
if %found%==false (
echo Please install Docker Desktop for Windows
echo (You might not have it installed at the X:%b% directory)
echo Docker Desktop for Windows can be found here:
start https://www.docker.com/products/docker-desktop
)
:readyToLaunch
timeout %w% > NUL
start http://localhost:9352