Open maiamcc opened 5 years ago
My strawman was something like:
live_update=[ sync('foo', 'bar', untar_cmd='su user2; tar -xf /dev/stdin', rm_cmd='su user2; xargs rm') ]
(Times like this I wish tar had support for "this file was deleted")
@nicks Do you know if there is a way to fix this? I'm diving in to remote builds using Kaniko and I'm running into this as well.
STEP 1/1 — updating image docker.repo1.uhc.com/optumiq_dsw/tilt/dss-updating-container
Updating container: 96b62f9ec2
Will copy 1 file(s) to container: 96b62f9ec2
- '/Users/mgarriga/Development/dss/dss-updating/src/index.html' --> '/etc/nginx/html/index.html'
tar: etc/nginx/html/index.html: Cannot open: File exists
tar: Exiting with failure status due to previous errors
Live Update failed with unexpected error:
command terminated with exit code 2
Falling back to a full image build + deploy
@markgarrigan here's the error message i added in v0.18.10:
which suggests a couple possible fixes. does that help?
from @MattHodge:
Tilt should have a way to work around permissions when sync'ing / be able to untar files as a specific user. Maybe the user can provide an optional custom "untar command"?