-
Notifications
You must be signed in to change notification settings - Fork 771
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
added support for multiple-compose files #312
Conversation
75b46ae
to
8df76b4
Compare
I'm not sure if comma separated list is right here :-( @cdrage how would this work with #304 ? |
Lets wait for #304. Thank we can revisit this. |
8df76b4
to
68a3361
Compare
@procrypt unit tests, docs needed as well! Also I thought we are trying to implement this the docker-compose cli way which is
in our case
as opposed to
|
@@ -103,6 +103,7 @@ convert::expect_success "kompose --bundle $KOMPOSE_ROOT/script/test/fixtures/bun | |||
convert::expect_success_and_warning "kompose --bundle $KOMPOSE_ROOT/script/test/fixtures/bundles/dsb/docker-voting-bundle.dsb convert --stdout" "$KOMPOSE_ROOT/script/test/fixtures/bundles/dsb/output-k8s.json" "Service cannot be created because of missing port." | |||
|
|||
###### | |||
<<<<<<< 73418310ac1e607b41d0af2588ed7a808a3c85fa |
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.
remove this line.
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 pushed this by mistake.
redis: | ||
image: redis:3.0 | ||
ports: | ||
- "6379" |
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.
a real world example where things get over-written will make more sense as opposed to mixing two apps.
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.
things as in same parameters like env vars from 1st docker-compose file get over-written in second!
1d3b7d4
to
1ff9136
Compare
@surajssd @containscafeine I have updated the PR. Please review $ kompose -f docker-compose.yml -f docker-guestbook.yml convert
INFO[0000] file "frontend-service.json" created
INFO[0000] file "mlbparks-service.json" created
INFO[0000] file "mongodb-service.json" created
INFO[0000] file "redis-master-service.json" created
INFO[0000] file "redis-slave-service.json" created
INFO[0000] file "frontend-deployment.json" created
INFO[0000] file "mlbparks-deployment.json" created
INFO[0000] file "mongodb-deployment.json" created
INFO[0000] file "mongodb-claim0-persistentvolumeclaim.json" created
INFO[0000] file "redis-master-deployment.json" created
INFO[0000] file "redis-slave-deployment.json" created $ kompose -f docker-compose.yml -f docker-guestbook.yml convert
INFO[0000] file "mlbparks-service.json" created
INFO[0000] file "frontend-service.json" created
INFO[0000] file "mongodb-service.json" created
INFO[0000] file "redis-master-service.json" created
INFO[0000] file "redis-slave-service.json" created
INFO[0000] file "frontend-deployment.json" created
INFO[0000] file "mlbparks-deployment.json" created
INFO[0000] file "mongodb-deployment.json" created
INFO[0000] file "mongodb-claim0-persistentvolumeclaim.json" created
INFO[0000] file "redis-master-deployment.json" created
INFO[0000] file "redis-slave-deployment.json" created The test are failing for this particular feature because the artifacts created are not in any particular order. When we run the |
1ff9136
to
f91837e
Compare
@procrypt even if the order is upside down, it should not cause any problems, because that is what happens for other conversion also, the order may not be same and still |
@surajssd Thanks for the explanation, I'll recheck my work on the tests. |
f097abe
to
8e7bb17
Compare
8e7bb17
to
07fbe01
Compare
49efcdd
to
8ea7c97
Compare
@procrypt one last bit, add info about this awesome fetaure to docs! Rest LGTM |
8ea7c97
to
e8af6f1
Compare
e8af6f1
to
de2b448
Compare
de2b448
to
a5a3805
Compare
@procrypt thanks for awesome work, code + tests + docs 👍 🎉 |
@surajssd Thank you all your help 😄 |
Fix #275
cc @kadel @surajssd