Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

Unicode characters in docker parameter strings #56

@rfuerst87

Description

@rfuerst87

Apparently some characters are replaced with unicode in .aurora files which causes the container to fail. For example I tried to pass additional parameters to docker like so:

...
container = Docker(
  image = "...",
  parameters = [
    Parameter(name = "mount", value = "type=bind,source=/mnt/foo,target=/foo/bar")
  ]
)
...

The docker container failed to launch with exit code 125. Inspecting the Aurora Struct Dump reveals that equals (=) in docker parameters were replaced by \u003.

...
"value": {
  "image": "...",
  "parameters": [ {
    "name": "mount",
    "value": "type\u003dbind,source\u003d/mnt/foo,target\u003d/foo/bar"
  }]
}
...

I also tried to pass a python raw string to the Parameter object. Unfortunately that didn't work either. I finally worked around the issue by passing a volume parameter instead of mount.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions