-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x-initialSync should always copy files and directories when --watch is passed #12254
Comments
|
I have a monorepo with dozens of services. I have a single So to answer your question:
Because there are no files in my built image. This seems to be a fairly common pattern (see thread here asking for the same thing) Does |
Does this mean you can't run Example on #11102 based on Traeffic demonstrate this misconception. services:
traefik:
build:
dockerfile-inline: |
FROM: traefik:v2.10.7
COPY ./traefik /etc/traefik
develop:
watch:
- action: sync+restart
path: ./traefik
target: /etc/traefik |
Not entirely the case. Our Dockerfile has a volume section that uses env var interpolation (e.g. It's just a little annoying to do this hack, and I was hoping to get this functionality directly from |
In my case I'm syncing nginx configs directory from two different sources:
Second one is not synced initially.
|
Description
Running
docker compose up --watch <service>
does not copy files or directories when the file/directory is modified before image creation, even when settingx-initialSync: true
. Why not just copy the files/directories without checking its modified timestamp?The text was updated successfully, but these errors were encountered: