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

johnpoth
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

Choose a reason for hiding this comment

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

Minor findings.

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

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-operator Related to the internal image build operator kind/feature New feature or request labels Dec 15, 2021
@johnpoth johnpoth force-pushed the local-dependencies branch 5 times, most recently from c0dcc85 to b6d03a0 Compare February 8, 2022 09:01
@johnpoth
Copy link
Member Author

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 February 8, 2022 12:17
@johnpoth
Copy link
Member Author

cc @astefanutti @oscerd @lburgazzoli

@johnpoth
Copy link
Member Author

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

rebased from main branch @astefanutti @lburgazzoli

Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

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

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 commented Apr 4, 2022

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

@johnpoth johnpoth merged commit bd12e7f into apache:main Apr 4, 2022
@johnpoth johnpoth deleted the local-dependencies branch April 4, 2022 10:00
Copy link
Member

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

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

@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 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 pull request Apr 5, 2022
johnpoth added a commit to johnpoth/camel-k that referenced this pull request Apr 5, 2022
johnpoth added a commit to johnpoth/camel-k that referenced this pull request Apr 6, 2022
johnpoth added a commit to johnpoth/camel-k that referenced this pull request Apr 6, 2022
johnpoth added a commit that referenced this pull request Apr 8, 2022
squakez pushed a commit to squakez/camel-k that referenced this pull request Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-operator Related to the internal image build operator kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Let dependencies be defined using file URLs
4 participants