-
Notifications
You must be signed in to change notification settings - Fork 445
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
Docker image with AshScriptPlugin does not run at all #1118
Comments
Thanks for your report. This duplicates #978 Can you provide a minimal |
#978 only mentions that unnecessary warnings are generated. It seems that the app still runs. My issue is that more that warnings are generated, it seems errors are generated and the project does not run at all. I have Scala-based Play framework services. They run fine with the below setting in
I tried specifying the base image as follows and also adding
This setup led to the errors posted above and the project would not run. I was able to get the project to run by removing
|
Thanks for the additional details. Which
This error doesn't seem to be related to the Can you also post the result of $ sbt "show daemonUser in Docker"
This is the same as in #978 . It seems that the playframework is adding something here.
Configuring java options should be done with the javaOptions in Universal ++= Seq(
"-J-Xms512M",
"-J-Xmx3g"
) There should also be no need to override the Hope that helps 😄 |
@muuki88 Thank you for the suggestions. Trying the above I still see:
If I remove |
Permissions in docker have been completely reworked. Hopefully this is fixed as well. |
Just tried on the latest version (1.4.1) and this is still an issue. When attempting to run the docker image, I get:
I'm seeing that the jar files at Line 94 of /opt/docker/bin/foo-service is the following:
|
Can you give a There's an extensive test-suite in src/sbt-test/docker/file-permission that you can use as an inspiration to write a new test in the src/sb-test/ash/ directory. |
I have a number of existing Play framework services which I deploy via
docker:publishLocal
with the default base image. I build on Mac (or Jenkins/linux) and deploy to AWS. I am trying to convert these existing services to theopenjdk:8-jre-alpine
image. Out of the box, when I just change that base image and also add theAshScriptPlugin
, I don't just getis_cygwin
warnings (see #978), my services don't run at all:When I modify the build to also install
bash
into the above Alpine-based image (and do not useAshScriptPlugin
), everything is working well. However, I would like to use the stock Alpine base image and not have to installbash
.The text was updated successfully, but these errors were encountered: