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

emptyvols option doesn't work for kompose convert/up #625

Closed
ashetty1 opened this issue May 29, 2017 · 6 comments
Closed

emptyvols option doesn't work for kompose convert/up #625

ashetty1 opened this issue May 29, 2017 · 6 comments

Comments

@ashetty1
Copy link
Contributor

kompose convert and kompose up fails with emptyvols option:

$ kompose version
0.7.0 (c25b7e8)
$ kompose --provider=openshift --emptyvols -f examples/docker-compose.yaml convert -h
Error: unknown command "examples/docker-compose.yaml" for "kompose"
Run 'kompose --help' for usage.
unknown command "examples/docker-compose.yaml" for "kompose"

Without emptyvols option:

$ kompose --provider=openshift -f examples/docker-compose.yaml convert
INFO file "frontend-service.yaml" created         
INFO file "redis-master-service.yaml" created     
INFO file "redis-slave-service.yaml" created      
INFO file "frontend-deploymentconfig.yaml" created 
INFO file "frontend-imagestream.yaml" created     
INFO file "redis-master-deploymentconfig.yaml" created 
INFO file "redis-master-imagestream.yaml" created 
INFO file "redis-slave-deploymentconfig.yaml" created 
INFO file "redis-slave-imagestream.yaml" created 

Same issue is seen with kompose up, and has been documented here #614

@rawkode
Copy link

rawkode commented May 30, 2017

Taking a look at this 👍

@surajnarwade
Copy link
Contributor

@ashetty1 , this is weird but if I run, I got error,

$ kompose --provider=openshift --emptyvols -f kompose/examples/docker-compose.yaml convert
Error: unknown command "kompose/examples/docker-compose.yaml" for "kompose"
Run 'kompose --help' for usage.
unknown command "kompose/examples/docker-compose.yaml" for "kompose"

but if I run it as,

$ kompose --provider=openshift  -f kompose/examples/docker-compose.yaml convert --emptyvols 
INFO file "frontend-service.yaml" created         
INFO file "redis-master-service.yaml" created     
INFO file "redis-slave-service.yaml" created      
INFO file "frontend-deploymentconfig.yaml" created 
INFO file "frontend-imagestream.yaml" created     
INFO file "redis-master-deploymentconfig.yaml" created 
INFO file "redis-master-imagestream.yaml" created 
INFO file "redis-slave-deploymentconfig.yaml" created 
INFO file "redis-slave-imagestream.yaml" created 

it worked :)

@ashetty1
Copy link
Contributor Author

ashetty1 commented Jun 1, 2017

@surajnarwade yes. I saw the same behaviour too. If --emptyvols is passed after up/down, it works. Weird indeed.

@surajnarwade
Copy link
Contributor

@kadel , is it intentional ?

@kadel
Copy link
Member

kadel commented Jun 2, 2017

yes, that is intentional.
--emptyvol is not a global flag, so it has to be specified after subcommand.

@ashetty1
Copy link
Contributor Author

ashetty1 commented Jun 5, 2017

Closing this.

@ashetty1 ashetty1 closed this as completed Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants