Skip to content

Commit 66c1e21

Browse files
committed
update container setup for wysiwyg on windows
1 parent 454559b commit 66c1e21

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

docs-wysiwyg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ There is a bit of a problem with file mounts on windows / WSL and programs runni
3737
While you may access `\\wsl$\<distro>\home\<user>\` from your Windows-context and `/mnt/c/utils/` from you WSL context, the file-events are not propagated over this border (and changes propagate slowly).
3838
On Windows machines you may either choose to...
3939
- ...fully use WSL, clone and push your repo from there using native WSL-installed tools and use the container and files in the `wysiwyg-container-linux`.
40-
- ...fully use Windows, clone and push your repo from there using native Windows-installed tools and use the container and files in the `wysiwyg-container-windows` directory. Then you have to use Powershell to start and stop the container.
40+
- ...fully use Windows, clone and push your repo from there using native Windows-installed tools and use the container and files in the `wysiwyg-container-windows` directory. You still start the container on your WSL-instance in Linux-land. The new docker-desktop has integrated `mutagen` which mirrors the contents of your windows-partition into the container without having to pass so many boundaries, as the filesystem would have to.

wysiwyg-container-windows/docker-compose.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ services:
1818
- WATCHDOG_FORCE_POLLING=true
1919
volumes:
2020
- type: bind
21-
source: "${LOCAL_DEV_MD_DIR}"
21+
source: ${LOCAL_DEV_MD_DIR}
2222
target: /app/md
2323
- type: bind
2424
source: ./keycloak.json
25-
target: /app/keycloak.json
25+
target: /app/keycloak.json
26+
develop:
27+
watch:
28+
- path: ${LOCAL_DEV_MD_DIR}
29+
target: /app/md
30+
action: sync

wysiwyg-container-windows/up.ps1

Lines changed: 0 additions & 11 deletions
This file was deleted.

wysiwyg-container-windows/up.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
docker compose pull
2+
docker compose up -d --force-recreate --remove-orphans &
3+
docker compose watch &

0 commit comments

Comments
 (0)