Use Git Credentials during Capsule Build
Clone a private Git repository in the postInstall script
Once your Git credentials are setup in the account page you can use the postInstall script to clone a repository from your organization during the capsule build stage. This is particularly useful when needing to install a package that is only available as a Git repository.
How it works
Git credentials configured in the account page will automatically be passed to the capsule's Dockerfile as the GIT_ACCESS_TOKEN
environment variable.
Support for Git credentials during the capsule build stage was added in version 2.3. If using an old capsule without GIT_ACCESS_TOKEN
in the Dockerfile (i.e. a capsule created before v2.3), you can refresh the Dockerfile by adding and removing any package using any package manager in the environment editor.
Last updated
Was this helpful?