Skip to content

Commit

Permalink
Adding Az Container Start Command (Azure#8299)
Browse files Browse the repository at this point in the history
* adding az container start command

* allowing decimal values for container create

* rerunning failing tests
  • Loading branch information
samkreter authored and tjprescott committed Jan 23, 2019
1 parent a34d8d0 commit 9291615
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/command_modules/azure-cli-container/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Release History
===============

0.3.13
++++++
* Adding 'az container start' command
* Allow using decimal values for CPU during container creation

0.3.12
++++++
* Updating dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def load_arguments(self, _):
with self.argument_context('container create') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx), validator=get_default_location_from_resource_group)
c.argument('image', validator=validate_image, help='The container image name')
c.argument('cpu', type=int, help='The required number of CPU cores of the containers, accurate to one decimal place')
c.argument('cpu', type=float, help='The required number of CPU cores of the containers, accurate to one decimal place')
c.argument('memory', type=float, help='The required memory of the containers in GB, accurate to one decimal place')
c.argument('os_type', arg_type=get_enum_type(OperatingSystemTypes), help='The OS type of the containers')
c.argument('ip_address', arg_type=get_enum_type(IP_ADDRESS_TYPES), help='The IP address type of the container group')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ def load_command_table(self, _):
with self.command_group('container', container_group_sdk) as g:
g.command('restart', 'restart')
g.command('stop', 'stop')
g.command('start', 'start')
4 changes: 2 additions & 2 deletions src/command_modules/azure-cli-container/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "0.3.12"
VERSION = "0.3.13"

CLASSIFIERS = [
'Development Status :: 4 - Beta',
Expand All @@ -31,7 +31,7 @@
]

DEPENDENCIES = [
'azure-mgmt-containerinstance==1.2.1',
'azure-mgmt-containerinstance==1.4.0',
'azure-mgmt-loganalytics==0.2.0',
'azure-mgmt-network==2.4.0',
'azure-mgmt-authorization==0.50.0',
Expand Down

0 comments on commit 9291615

Please sign in to comment.