forked from ITISFoundation/osparc-simcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwin-watcher.bat
28 lines (23 loc) · 947 Bytes
/
win-watcher.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
@echo on
:: WORKAROUND for WINDOWS
:: Run this script to watch changes in files on a windows host.
:: This provides a workaround to overcome a known limitation of docker for windows [1]
::
:: [1] https://docs.docker.com/docker-for-windows/troubleshoot/#/inotify-on-shared-drives-does-not-work
:: [2] http://blog.subjectify.us/miscellaneous/2017/04/24/docker-for-windows-watch-bindings.html
::
:: REQUIRES python 3 installed and in the system path
python --version
:: installs tool in a venv (expects python 3)
python -m venv .venv-win
if %ERRORLEVEL% EQU 0 (
.venv-win/bin/pip install --upgrade pip
.venv-win/bin/pip install docker-windows-volume-watcher
.venv-win/bin/activate.bat
) else (
:: stinaslls
python -m pip install --upgrade pip
python -m pip install docker-windows-volume-watcher
)
:: runs watcher to notify changes to containers named with '*qooxdoo-kit*'
docker-volume-watcher *qooxdoo-kit*