Skip to content

v2.192 #4183

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

Closed
DRKolev-code opened this issue Oct 12, 2023 · 0 comments · Fixed by #4185
Closed

v2.192 #4183

DRKolev-code opened this issue Oct 12, 2023 · 0 comments · Fixed by #4185

Comments

@DRKolev-code
Copy link

Describe the bug
jsonschema.exceptions.ValidationError: Additional properties are not allowed ('container_root' was unexpected)

Failed validating 'additionalProperties' in schema['properties']['local']:
{'additionalProperties': False,
'properties': {'container_config': {'type': 'object'},
'local_code': {'type': 'boolean'},
'region_name': {'type': 'string'},
'serving_port': {'type': 'integer'}},
'type': 'object'}

The local.container_root variable controls where Sagemaker creates the docker compose files.
In function: def _create_tmp_folder(self): in sagemaker-python-sdk/src/sagemaker/local/image.py
# Docker cannot mount Mac OS /var folder properly see
# https://forums.docker.com/t/var-folders-isnt-mounted-properly/9600
# Only apply this workaround if the user didn't provide an alternate storage root dir.

Due to the new validation in v2.192 I cannot set this variable though it is still used in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants