forked from sbt/sbt-native-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run stage0 as root during Docker build
Fixes sbt#1195 Since the user of the fabric8 image is already non-root, stage0 fails with ``` chmod: changing permissions of '/opt/docker': Operation not permitted ``` This switches the stage0 user to root explicitly so we can run `chmod` in there. In the actual image the user is set back to 1001.
- Loading branch information
Showing
6 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dockerBaseImage := "fabric8/java-centos-openjdk8-jdk" |
1 change: 1 addition & 0 deletions
1
src/sbt-test/docker/file-permission/changes/strategy-copychown.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import com.typesafe.sbt.packager.docker._ | ||
|
||
dockerPermissionStrategy := DockerPermissionStrategy.CopyChown | ||
dockerBaseImage := "fabric8/java-centos-openjdk8-jdk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import com.typesafe.sbt.packager.docker._ | ||
|
||
dockerPermissionStrategy := DockerPermissionStrategy.None | ||
dockerBaseImage := "fabric8/java-centos-openjdk8-jdk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters