Skip to content

Commit

Permalink
Run docker image as jenkins user (#80)
Browse files Browse the repository at this point in the history
* Run docker image as jenkins user

* create gradle folder with proper permissions so that docker
does not create one owned by root automatically
  • Loading branch information
starcraft66 authored and fr1kin committed May 8, 2019
1 parent 9fb0e0c commit 95173d9
Show file tree
Hide file tree
Showing 3 changed files with 3 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 @@ -2,7 +2,7 @@ version: '2.3'
services:
forgehax:
image: gradle:4.10.0-jdk8-slim
user: root
user: "1002:1002"
environment:
- GIT_COMMIT=${GIT_COMMIT:-latest}
- FORGEHAX_DEBUG=1
Expand Down
1 change: 1 addition & 0 deletions scripts/cibuild
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
if [ "${1:-}" = "--help" ]; then
usage
else
mkdir -p .gradle
GIT_COMMIT="${GIT_COMMIT}" docker-compose \
-f docker-compose.ci.yml \
run --rm \
Expand Down
1 change: 1 addition & 0 deletions scripts/update
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
if [ "${1:-}" = "--help" ]; then
usage
else
mkdir -p .gradle
docker-compose \
-f docker-compose.ci.yml \
run --rm \
Expand Down

0 comments on commit 95173d9

Please sign in to comment.