mutagen version: 0.13.0-beta1
platform: macOS 10.15.7 x86-64
If files or directories are produced by a Dockerfile and there are files for Mutagen to sync, then the Dockerfile-produced directories and files disappear.
To reproduce
- Add this
Dockerfile
# syntax=docker/dockerfile:1
FROM alpine:latest
WORKDIR /code
RUN touch dockerfile-made-me
- Add this
docker-compose.yml
version: "3.9"
services:
issue:
build: .
command: sleep 1d
volumes:
- code:/code
volumes:
code:
x-mutagen:
sync:
defaults:
ignore:
paths:
- ".DS_Store"
- "docker-compose.yml"
- "Dockerfile"
vcs: true
mode: "two-way-resolved"
issue:
alpha: .
beta: "volume://code"
- Touch
mutagen-synced-me
- Execute $
mutagen compose up --build --detach
- Execute $
mutagen compose exec issue sh
- Execute #
ls -la
Notice that dockerfile-made-me is missing.
To control
Repeat the above steps, switching the order of 3 and 4. Notice that dockerfile-made-me is present alongside mutagen-synced-me.
mutagen version: 0.13.0-beta1
platform: macOS 10.15.7 x86-64
If files or directories are produced by a Dockerfile and there are files for Mutagen to sync, then the Dockerfile-produced directories and files disappear.
To reproduce
Dockerfiledocker-compose.ymlmutagen-synced-memutagen compose up --build --detachmutagen compose exec issue shls -laNotice that
dockerfile-made-meis missing.To control
Repeat the above steps, switching the order of 3 and 4. Notice that
dockerfile-made-meis present alongsidemutagen-synced-me.