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

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

Open
GordianDziwis opened this issue Aug 21, 2018 · 0 comments
Open

Comments

@GordianDziwis
Copy link

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()
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

1 participant