Skip to content
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

FIX - Windows Docker file permissions #160

Merged
merged 5 commits into from
Nov 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions docker-package-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ function buildAndPackage(){
# https://docs.docker.com/engine/reference/run/#clean-up---rm
# -v "$(pwd):/src/" Map working directory to container /src:
# https://docs.docker.com/engine/reference/run/#volume-shared-filesystems
docker run -v "$(pwd):/src/" --name temp-container "cdrx/pyinstaller-windows:${1}"
docker commit temp-container temp-image
docker run -v "$(pwd):/src/" --rm temp-image "chown 1000 -R /src/dist"
docker container rm temp-container
docker image rm temp-image
docker run -v "$(pwd):/src/" --rm "cdrx/pyinstaller-windows:${1}" "/entrypoint.sh && chown $(id -u):$(id -g) -R /src/dist"

# Zip up the package and clean up
cd "${WIN_DIST_DIR}"
zip -r ${zip_name} ${pkgname}
Expand Down