zerovm / zpm

ZeroVM Package Manager
Apache License 2.0
6 stars 11 forks source link

Better management of containers on `zpm deploy` #156

Closed larsbutler closed 10 years ago

larsbutler commented 10 years ago

Fixes https://github.com/zerovm/zpm/issues/105.

pkit commented 10 years ago

Because there is no standard cli tool to create empty Swift container I think we need to create it, if it does not exist.

larsbutler commented 10 years ago

Actually, you can create empty Swift containers using python-swiftclient: $ swift post container_name.

ZPM depends on python-swiftclient anyway, so we can be sure that it's installed.

pkit commented 10 years ago

That's a pretty unnatural way of creating a container. And it depends on "convert POST to PUT" behavior configured in Swift, which can be disabled (to increase speed).

larsbutler commented 10 years ago

Okay, what do you want to do?

pkit commented 10 years ago

I think we need to silently create container on 404

larsbutler commented 10 years ago

Okay, updated. If the container doesn't exist, it will be created. Everything else behaves the same.