Skip to content

TypeError: unorderable types: CommentedMap() < CommentedMap() #7

@GordianDziwis

Description

@GordianDziwis
version: '3.3'

services:
  nifi:
    container_name: nifi
    image: apache/nifi:1.7.1
    environment:
      NIFI_WEB_HTTP_PORT: '8443'
      NIFI_WEB_PROXY_HOST: '0.0.0.0'
    volumes:
      - type: bind
        source: ./certs
        target: /opt/certs
      - type: volume
        target: /opt/nifi/nifi-1.7.1/conf
      - type: volume
        target: /opt/nifi/nifi-1.7.1/content_repository
      - type: volume
        target: /opt/nifi/nifi-1.7.1/database_repository
      - type: volume
        target: /opt/nifi/nifi-1.7.1/flowfile_repository
      - type: volume
        target: /opt/nifi/nifi-1.7.1/provenance_repository
      - type: volume
        target: /opt/nifi/nifi-1.7.1/logs
      - type: volume
        target: /opt/nifi/nifi-1.7.1/data
    restart: always
    network_mode: "host"
    ports:
      - 8443:8443

Give following error with the docker command:

Traceback (most recent call last):
  File "/bin/compose_format", line 28, in <module>
    formatted = formatter.format_string(data, strict=not args.non_strict)
  File "/usr/lib/python3.5/site-packages/compose_format/__init__.py", line 77, in format_string
    data = self.reorder(load(data, RoundTripLoader), strict=strict)
  File "/usr/lib/python3.5/site-packages/compose_format/__init__.py", line 98, in reorder
    ComposeFormat.reorder(item, strict)
  File "/usr/lib/python3.5/site-packages/compose_format/__init__.py", line 98, in reorder
    ComposeFormat.reorder(item, strict)
  File "/usr/lib/python3.5/site-packages/compose_format/__init__.py", line 98, in reorder
    ComposeFormat.reorder(item, strict)
  File "/usr/lib/python3.5/site-packages/compose_format/__init__.py", line 101, in reorder
    data.sort()
TypeError: unorderable types: CommentedMap() < CommentedMap()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions