From ae2441571faa933c71ba048c4bcc05b601f1c11c Mon Sep 17 00:00:00 2001 From: mattcc Date: Tue, 15 Feb 2022 19:58:52 -0600 Subject: [PATCH] fuckin docker permission issues --- docker-compose.ci.yml | 2 +- scripts/cibuild | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.ci.yml b/docker-compose.ci.yml index 680fcf7..2474e37 100644 --- a/docker-compose.ci.yml +++ b/docker-compose.ci.yml @@ -13,5 +13,5 @@ services: - ./:/opt/build:Z working_dir: /opt/build command: bash -c 'set -x - && ./gradlew --no-daemon clean build --stacktrace + && ./gradlew --no-daemon build --stacktrace && chmod a+rw build/libs/*' \ No newline at end of file diff --git a/scripts/cibuild b/scripts/cibuild index 8506173..9e874cb 100755 --- a/scripts/cibuild +++ b/scripts/cibuild @@ -17,6 +17,10 @@ if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then if [[ "${1:-}" == "--help" ]]; then usage else + # do this instead of ./gradlew clean + rm -rf build/ + # create directory in this script so docker doesn't create + # the directory with root perms instead mkdir -p build/libs # if mounting the hosts cache folder, gradle inside the container will try and