-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
Signed-off-by: Edward Mezarina <[email protected]>
|
||
# 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/.; \ |
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.
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.
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'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.
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.
Opened #156
51d83a7
to
ff194f5
Compare
ff194f5
to
b457f9f
Compare
Signed-off-by: Edward Mezarina <[email protected]>
b457f9f
to
4c52479
Compare
This PR adds gradle artifacts and fixes other issues (outdated links, test bugs, etc).