-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
I tried ComposeFile with the following docker compose file, then the command was stuck.
https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml
Code for reproduction is :
from pycomposefile import ComposeFile
def load_yaml_file(file_name):
import yaml
import errno
try:
with open(file_name) as stream: # pylint: disable=unspecified-encoding
return yaml.safe_load(stream.read().replace('\x00', ''))
except OSError as ex:
if getattr(ex, 'errno', 0) == errno.ENOENT:
raise ValidationError('{} does not exist'.format(file_name)) from ex
raise
except (yaml.parser.ParserError, UnicodeDecodeError) as ex:
raise ValidationError('Error parsing {} ({})'.format(file_name, str(ex))) from ex
parsed_compose_file = ComposeFile(load_yaml_file("./docker-compose.yaml"))Metadata
Metadata
Assignees
Labels
No labels