Skip to content
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

feat: introduce clean docker multi java version build #1654

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maxandersen
Copy link
Collaborator

Why:

  • jbang-action is hardcoded to use a specific java version
    requiring users to download new java version
  • nicer if can have a docker images that has the java version
    built in

This change addreses the need by:

  • move jbang-action to a separate distribution (might consider dropping it fully)
  • add a jbang-docker repo that builds a docker image with jbang and java
    and publishes under jbangdev/jbang:-java-.

Why:

 * jbang-action is hardcoded to use a specific java version
   requiring users to download new java version
 * nicer if can have a docker images that has the java version
   built in

This change addreses the need by:

 * move jbang-action to a separate distribution (might consider dropping it fully)
 * add a jbang-docker repo that builds a docker image with jbang and java
   and publishes under jbangdev/jbang:<version>-java-<java major version>.
ENV JBANG_VERSION {{projectVersion}}
ENV JBANG_PATH=/jbang/bin

VOLUME /scripts
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want to keep /scripts

ENV PATH="${PATH}:/jbang/bin"

## github action does not allow writing to $HOME thus routing this elsewhere
ENV JBANG_DIR="/jbang/.jbang"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to check if this is still required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant