def create_container_definition(container_name, image, port=<NUM_LIT>, cpu=<NUM_LIT:1.0>, memgb=<NUM_LIT>,<EOL>environment=None):
container = {'<STR_LIT:name>': container_name}<EOL>container_properties = {'<STR_LIT:image>': image}<EOL>container_properties['<STR_LIT>'] = [{'<STR_LIT:port>': port}]<EOL>container_properties['<STR_LIT>'] = {<EOL>'<STR_LIT>': {'<STR_LIT>': cpu, '<STR_LIT>': memgb}}<EOL>container['<STR_LIT>'] = container_properties<EOL>if environment is not None:<EOL><INDENT>container_properties['<STR_LIT>'] = environment<EOL><DEDENT>return container<EOL>
Makes a python dictionary of container properties.

    Args:
        container_name: The name of the container.
        image (str): Container image string. E.g. nginx.
        port (int): TCP port number. E.g. 8080.
        cpu (float): Amount of CPU to allocate to container. E.g. 1.0.
        memgb (float): Memory in GB to allocate to container. E.g. 1.5.
        environment (list): A list of [{'name':'envname', 'value':'envvalue'}].
        Sets environment variables in the container.

    Returns:
        A Python dictionary of container properties, pass a list of these to
        create_container_group().