This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
5_start_ocelot_mswindows_docker-toolbox.bat
60 lines (60 loc) · 2.03 KB
/
5_start_ocelot_mswindows_docker-toolbox.bat
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
58
59
60
@echo off
color 1F & ^
echo ********************************************************************* & ^
echo. & ^
echo. Starting Ocelot, an Opacity Storage client. & ^
echo. If this is your first time running this script & ^
echo. this process will take some time, 10-40 minutes, & ^
echo. depending on your network speed and computer hardware. & ^
echo. & ^
echo. This script builds and runs the Docker containers required & ^
echo. to use Ocelot. & ^
echo. & ^
echo. IMPORTANT! If Docker is not installed, this script will fail. & ^
echo. Please cancel (ctrl + c) this script and install Docker first. & ^
echo.
echo. The easiest way to get started is to install Docker Desktop. & ^
echo. See here for details: https://docs.docker.com/desktop/ & ^
echo. & ^
echo. To learn more about Docker, visit: https://docs.docker.com/ & ^
echo. & ^
echo. Once the application is ready, it will open your default browser & ^
echo. and load the Ocelot home page. & ^
echo. & ^
echo ********************************************************************* & ^
echo. & ^
echo. Press any key to skip this step. Waiting so you have time to read message above. & ^
echo.
timeout 60
echo. & ^
echo. & ^
echo. Ensure docker daemon is running (for those using Docker Toolbox) & ^
echo.
docker-machine start default
echo. & ^
echo. Running Docker build. & ^
echo.
docker-compose -f docker-compose-web-https.yml build
echo. & ^
echo. Stopping Ocelot services if currently running. & ^
echo.
docker-compose stop
echo. & ^
echo. Starting Ocelot. & ^
echo.
docker-compose -f docker-compose-web-https.yml up -d --remove-orphans
echo. & ^
echo.
for /F "tokens=* USEBACKQ" %%F in (`docker-machine ip`) do (
set ip=%%F
)
echo.
echo. start /max https://%ip%:5000/ & ^
echo.
echo. Let's give the web server a few seconds to get going before trying to load Ocelot home page. & ^
echo. Press any key to skip this step. & ^
echo. If page doesn't load right away once open in browser, simply press F5 to refresh page.
timeout 10
echo.
start /max https://%ip%:5000/
stop