Open aaron-prindle opened 2 years ago
Odd: your infer
setup works for me:
Syncing 1 files for gcr.io/bdealwis-playground/tmp/golden/sample-app:4063f9f-dirty@sha256:0890611400821131cc585f8b232ab2981e8d8c9c511b94fa6b8a8c02a0754e22
INFO[0048] Copying files:map[index.html:[/go/src/app/index.html]]togcr.io/bdealwis-playground/tmp/golden/sample-app:4063f9f-dirty@sha256:0890611400821131cc585f8b232ab2981e8d8c9c511b94fa6b8a8c02a0754e22 subtask=-1 task=DevLoop
DEBU[0048] getting client config for kubeContext: `cloudtop` subtask=-1 task=DevLoop
DEBU[0048] Running command: [kubectl --context cloudtop exec sample-app-dev-78b85f95fd-zvz8p --namespace default -c sample-app -i -- tar xmf - -C / --no-same-owner] subtask=-1 task=DevLoop
DEBU[0049] Command output: [], stderr: tar: Removing leading `/' from member names subtask=-1 task=DevLoop
Watching for changes...
In the manual
case, dest
should be a directory. And in this case should be /go/src/app
(to match the WORKDIR).
I'm having a similar issue where the container's configured user isn't root. The kubectl invocation doesn't specify a user so the default configured user is used. If that user tries to extract into a directory they don't have access to, it will fail like this.
That's my current thought anyways.
I'm having a similar issue where the container's configured user isn't root. The kubectl invocation doesn't specify a user so the default configured user is used. If that user tries to extract into a directory they don't have access to, it will fail like this.
That's my current thought anyways.
I have a similar problem with a container executing as non-root. Changing the Dockerfile by removing the "USER" line in the Dockerfile fixed it (meaning it's now running as root).
Weird no other skaffold user encountered this problem, do everyone run apps as root in containers ???
I am currently attempting to add file sync support to the application below for it's *.html files (one file - index.html): https://github.com/GoogleCloudPlatform/golden-path-for-app-delivery
In attempted to modify the app to use both
infer
andmanual
file syncing I get someFile exists
errors during the sync:I see error:
I attempting to use manual sync as well and saw the same error although with some different paths
The error:
I also tried removing the file from the Dockerfile (to see of if this was related to the file previously existing in the image) but I saw the same errors
Not sure what I might be doing wrong here, my understanding is that this should work with both sync types
infer
andmanual
and not require any additional changes to other files (Dockerfile, etc) but I seem to have this issue in all attempts