You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
The reason for this is in regards to when the volume mount happens. In the second scenario the entrypoint.sh script runs after the volume mount, in which case drone mounts ~/.netrc which is used for GitHub access. In the first case, the ~/.netrc file is not yet mounted when CMD ["/entrypoint.sh"] is run within the Docker image, thus there is not GitHub access for the clone to work.
To verify this, I swapped out CMD ["/entrypoint.sh"] with CMD ["/entrypoint.sh && cat ~/.netrc"] in one of the Dockerfiles and got:
We should switch to using environment variables to generate the ~/.netrc file.
The text was updated successfully, but these errors were encountered:
Issue:
Scenario::
setup.py
which has a dependency from a private GitHub repository.Problem: The follow DroneCI step fails because the pip installation fails saying it does not have access to the repository.
But the following step works without issues.
The reason for this is in regards to when the volume mount happens. In the second scenario the
entrypoint.sh
script runs after the volume mount, in which case drone mounts~/.netrc
which is used for GitHub access. In the first case, the~/.netrc
file is not yet mounted whenCMD ["/entrypoint.sh"]
is run within the Docker image, thus there is not GitHub access for the clone to work.To verify this, I swapped out
CMD ["/entrypoint.sh"]
withCMD ["/entrypoint.sh && cat ~/.netrc"]
in one of the Dockerfiles and got:We should switch to using environment variables to generate the
~/.netrc
file.The text was updated successfully, but these errors were encountered: