The Wayback Machine - https://web.archive.org/web/20220414214820/https://github.com/apache/camel-k/pull/2835
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

Local dependencies #2835

Merged
merged 35 commits into from Apr 4, 2022
Merged

Local dependencies #2835

merged 35 commits into from Apr 4, 2022

Conversation

Copy link
Member

@johnpoth johnpoth commented Dec 15, 2021

Requires container-tools/spectrum#7 and a few enhancements but the core is here :)

Thanks !

Closes #1227

Release Note

feat(build): local file dependencies
Copy link
Contributor

@oscerd oscerd left a comment

Minor findings.

@@ -18,17 +18,20 @@ limitations under the License.
package cmd
Copy link
Contributor

@oscerd oscerd Dec 15, 2021

Choose a reason for hiding this comment

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

Ditto

@astefanutti astefanutti added area/build-system kind/feature labels Dec 15, 2021
@johnpoth johnpoth force-pushed the local-dependencies branch 5 times, most recently from c0dcc85 to b6d03a0 Compare Feb 8, 2022
@johnpoth
Copy link
Member Author

@johnpoth johnpoth commented Feb 8, 2022

Ok I think it's ready to be reviewed! The test failure seem unrelated. Feel free to comment on the wagon behavior as well if needed. To be compliant with various Registry vendors, we map Maven artifacts to Image names by: lower casing it's HTTP path, prefixed with maven_, . and / are replaced with _ so for example:

Maven artifact Maven HTTP path Image Name Image Tag
org.apache.ant:ant:jar:1.10.12 org/apache/ant/ant/1.10.12/ant-1.10.12.jar maven_org_apache_ant_ant_1_10_12_ant-1_10_12_jar 1.10.12

Artifacts stored in the Image Registry that are to be mounted in the running container use the URI: docker-mvn:groupId:artifactId:extension:version[@mount/path]. I think I'll add more docs once everything is merged.

Let me know what you think!

Thanks !

@johnpoth johnpoth marked this pull request as ready for review Feb 8, 2022
@johnpoth
Copy link
Member Author

@johnpoth johnpoth commented Feb 21, 2022

@johnpoth
Copy link
Member Author

@johnpoth johnpoth commented Mar 7, 2022

By the way let me know if I can do anything to help with the review, or if this PR is a bad idea in the first place :)

@johnpoth
Copy link
Member Author

@johnpoth johnpoth commented Mar 31, 2022

rebased from main branch @astefanutti @lburgazzoli

Copy link
Contributor

@squakez squakez left a comment

Nice work. Maybe we need to provide some detailed example as a follow up activity, but good to merge for me.

@johnpoth
Copy link
Member Author

@johnpoth johnpoth commented Apr 4, 2022

Thanks @squakez @oscerd ! All right here goes nothing ... merging !

@johnpoth johnpoth merged commit bd12e7f into apache:main Apr 4, 2022
10 of 11 checks passed
@johnpoth johnpoth deleted the local-dependencies branch Apr 4, 2022
Copy link
Member

@astefanutti astefanutti left a comment

@johnpoth awesome work. Sorry for the late review, I've left a couple of comments / questions.

pkg/cmd/run.go Show resolved Hide resolved
pkg/cmd/run.go Show resolved Hide resolved
pkg/util/camel/camel_dependencies.go Show resolved Hide resolved
pkg/apis/camel/v1/maven_types.go Show resolved Hide resolved
pkg/apis/camel/v1/maven_types.go Show resolved Hide resolved
@johnpoth
Copy link
Member Author

@johnpoth johnpoth commented Apr 4, 2022

No worries @astefanutti ! Always nice to read your thoughtful comments! I can address these in a follow up PR no problem

johnpoth added a commit to johnpoth/camel-k that referenced this issue Apr 5, 2022
johnpoth added a commit to johnpoth/camel-k that referenced this issue Apr 5, 2022
johnpoth added a commit to johnpoth/camel-k that referenced this issue Apr 6, 2022
johnpoth added a commit to johnpoth/camel-k that referenced this issue Apr 6, 2022
johnpoth added a commit that referenced this issue Apr 8, 2022
squakez added a commit to squakez/camel-k that referenced this issue Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-system kind/feature
4 participants