-
Notifications
You must be signed in to change notification settings - Fork 444
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
Run chmod +x explicitly in stage0 #1201
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot 🤗
Should we add this to the settings page in docker.rst
as well? I can merge and release this and docs can be a follow up pr.
* Gives +x permission to users and groups. | ||
*/ | ||
case object UserGroupPlusExecute extends DockerChmodType { | ||
def argument: String = "u=+x,g=+x" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a mistake. It should be u+x,g+x.
Using sbt-native-packager 1.3.17 with OpenShift, I still ran into some permission issues and needed to call chmod +x explicitly in the container. This will emit chmod +x for all bash scripts that was generated.
@muuki88 Fixed a bug that the tests caught, and also updated the docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect! Will merge after CI has finished.
@@ -108,6 +108,16 @@ object DockerPlugin extends AutoPlugin { | |||
}, | |||
dockerRmiCommand := dockerExecCommand.value ++ Seq("rmi"), | |||
dockerBuildCommand := dockerExecCommand.value ++ Seq("build") ++ dockerBuildOptions.value ++ Seq("."), | |||
dockerAdditionalPermissions := { | |||
val scripts = makeBashScripts.value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I overlooked that. This causes a circular dependency between JavaAppPackaging
and the DockerPlugin
, which produces a bug reported in #1205
This is on top of #1200
Using sbt-native-packager 1.3.17 with OpenShift, I still ran into some permission issues and needed to call chmod +x explicitly in the container. This will emit chmod +x for all bash scripts that was generated.