-
Notifications
You must be signed in to change notification settings - Fork 19
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
Image doesn't place nice with Java Debug Wire Protocol #160
Comments
Possible solution: Instead of DRY_RUN=$(/docker-entrypoint.sh "$@" --dry-run)
echo "exec $DRY_RUN" \
| egrep '[^ ]*java .*org\.eclipse\.jetty\.xml\.XmlConfiguration ' \
| sed -e 's/ -Djava.io.tmpdir=[^ ]*//g' -e 's/\\$//' \
> $JETTY_START the script could do DRY_RUN=$(/docker-entrypoint.sh "$@" --dry-run)
# keeps the java command line and removes possible JVM output messages
DRY_RUN=$(echo "$DRY_RUN" | egrep '[^ ]*java .*org\.eclipse\.jetty\.xml\.XmlConfiguration ' | sed -e 's/ -Djava.io.tmpdir=[^ ]*//g' -e 's/\\$//')
# ensures to exec the final command
echo "exec $DRY_RUN" > $JETTY_START |
I am wondering what would have happened if I used Maybe using |
Signed-off-by: Lachlan Roberts <[email protected]>
@jnehlmeier I have added a test case for this
Yeah the idea of that has been floated around before, I might try and separate out the |
Issue #160 - add fix for generate-jetty-start.sh file
@lachlan-roberts Nice to have a test now. Because the container did launch it wasn't obvious what caused the issue.
If you go that route it would be great if the |
I'll open a new issue for this. But we will need to review any potential impacts of not letting the Opened #164. |
When starting jetty image (in my case 12.0.0) using
the
generate-jetty-start.sh
script executesDRY_RUN=$(/docker-entrypoint.sh "$@" --dry-run)
with$DRY_RUN
now containing a java message as the first line:The
generate-jetty-start.sh
now prependsexec
to that variable content and executes a regex on it. The regex removes the first line completely (which does contain theexec <java message>
) and only keeps the second line.The result is that Java now does not run as
PID 1
inside the container anddocker stop
now kills the container after 30 seconds as no signals reach java/jetty. Also for local development you can not useCTRL + C
to terminate the container anymore.The text was updated successfully, but these errors were encountered: