Skip to content

Commit

Permalink
fuckin docker permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fr1kin committed Feb 16, 2022
1 parent 49b1561 commit ae24415
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*'
4 changes: 4 additions & 0 deletions scripts/cibuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae24415

Please sign in to comment.