evansde77 / cirrus

python library build, test and devop like things assistant
Apache License 2.0
14 stars 8 forks source link

git cirrus build does not preserve file permissions #197

Closed jordansamuels closed 6 years ago

jordansamuels commented 6 years ago

When copying files from e.g. container-template to image-dir, the command git cirrus build will change permissions. This prevents us from doing things cleanly in Dockerfile.mustache like:

COPY my_script.sh /usr/local/bin

because my_script.sh will lose executable permissions. The workaround is either to use post script or just use:

COPY my_script.sh /usr/local/bin
RUN chmod +x /usr/loca/bin/my_script.sh
evansde77 commented 6 years ago

Tweaked dockerstache to preserve permissions, fix added to https://github.com/evansde77/cirrus/tree/feature/fix-docker-image-output

jordansamuels commented 6 years ago

Fix seems good, thanks.