-
Notifications
You must be signed in to change notification settings - Fork 772
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 dockerfile key support #499
Conversation
Wouldn't it have to be removed from: https://github.com/kubernetes-incubator/kompose/blob/master/pkg/loader/compose/compose.go#L80 as well? |
Tests need to be added too (cmd tests) |
yes, It shouldn't be there in the first place :-D This only tracks top level service keys, dockerfile is hidden in build key |
0727418
to
bb1b52e
Compare
Few spelling errors in the commit message:
Please give an example as well in the commit message / elaborate :) |
bb1b52e
to
61d4692
Compare
needs rebase, but otherwise lgtm |
Fixes kubernetes#486 This commit will add `dockerfilepath` key under Dockerstratergy in buildconfig. dockerfilepath allow us to use dockerfiles which are named different than `Dockerfile` which are placed in context directory. for example, for a docker-compose file: ``` version: "2" services: foo: build: context: "./build" dockerfile: "Dockerfile-alternate" command: "sleep 3600" ``` Resulting buildconfig will be: ``` apiVersion: v1 kind: BuildConfig ... ... strategy: dockerStrategy: dockerfilePath: Dockerfile-alternate type: Docker ... ... ```
61d4692
to
ec897ef
Compare
@kadel , done with rebase |
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.
@cdrage had some comments, lets wait for him to merge this. But its LGTM
@surajnarwade thank you for updating the commit message. LGTM! 👍 |
Fixes #486
This commit will add
dockerfilepath
key under Dockerstratergy in Buildconfig.dockerfilepath allow us to use dockerfiles which are named different than
Dockerfile