Skip to content

Allow to add additional binds to Docker build container #7684

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

Merged
merged 2 commits into from
Dec 17, 2020

Conversation

fabianmp
Copy link
Contributor

Sometimes it might be necessary to add additional binds to the build
container, e.g. to add SSH keys for the docs user to clone private
repositories or for caches. These additional binds can be specified
as field in settings:

DOCKER_ADDITIONAL_BINDS = {
'/home/docs/.ssh': {
'bind': '/home/docs/.ssh',
'mode': 'ro',
}
}

Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! We are prefixing new settings with RTD, so this should be RTD_DOCKER_ADDITIONAL_BINDS

Sometimes it might be necessary to add additional binds to the build
container, e.g. to add SSH keys for the docs user to clone private
repositories or for caches. These additional binds can be specified
as field in settings:

RTD_DOCKER_ADDITIONAL_BINDS = {
  '/home/docs/.ssh': {
    'bind': '/home/docs/.ssh',
    'mode': 'ro',
  }
}
@fabianmp
Copy link
Contributor Author

thanks for the review, I have updated the commit with this change

Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@stsewd stsewd merged commit 2dc9706 into readthedocs:master Dec 17, 2020
@fabianmp fabianmp deleted the additional-binds branch January 7, 2021 11:52
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

Successfully merging this pull request may close these issues.

2 participants