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

Add initial gradle support #154

Merged
merged 2 commits into from
Jul 22, 2021
Merged

Conversation

mezarin
Copy link
Member

@mezarin mezarin commented Jul 20, 2021

This PR adds gradle artifacts and fixes other issues (outdated links, test bugs, etc).

Signed-off-by: Edward Mezarina <[email protected]>
@mezarin mezarin requested a review from scottkurz July 20, 2021 22:17
CONTRIBUTING.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
build.sh Outdated Show resolved Hide resolved
stackimage/README.md Outdated Show resolved Hide resolved
templates/devfiles/gradle/devfile.yaml Show resolved Hide resolved
templates/devfiles/gradle/devfile.yaml Outdated Show resolved Hide resolved
templates/outer-loop/gradle/Dockerfile Show resolved Hide resolved

# Copy application source and build data.
COPY --chown=1001:0 ./. /work/outer-loop-app/tmp/
RUN cp -r /work/outer-loop-app/tmp/src /work/outer-loop-app/.; \
Copy link
Member

Choose a reason for hiding this comment

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

IIUC, the reason this looks so complicated, with the gradle globbing, is that we want to avoid copying someones target/build dir into the docker build container. Should we just do a regex copy or find piped into a copy somehow or some other tool to copy "everything but the build dir"?

The same comment applies to maven, where we copy /src and pom.xml but not say /data that possibly someone might want.

Copy link
Member

Choose a reason for hiding this comment

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

I'm more concerned with the "contract" than the caching. For mvn it is easy to understand that we COPY in /src and /pom.xml. What's our rationale for including these gradle-related globs? What parts are we gathering?

Note we could choose to say: "copy everything and you should be using .dockerignore to filter it out". Maybe our starter and least should have a .dockerignore.

Copy link
Member

Choose a reason for hiding this comment

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

Opened #156

templates/outer-loop/maven/Dockerfile Outdated Show resolved Hide resolved
@mezarin mezarin force-pushed the addGradleArtifacts branch 7 times, most recently from 51d83a7 to ff194f5 Compare July 22, 2021 17:15
Signed-off-by: Edward Mezarina <[email protected]>
@mezarin mezarin merged commit 26f2f16 into OpenLiberty:main Jul 22, 2021
@mezarin mezarin deleted the addGradleArtifacts branch August 6, 2021 19:17
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.

2 participants