Last active
September 16, 2017 15:43
-
-
Save juhamust/fc7fcbe75cafc72f0141 to your computer and use it in GitHub Desktop.
NPM + Private Bitbucket Repo + Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: Copy id_rsa.pub content to Bitbucket project Deployment keys | |
Host bitbucket.org | |
StrictHostKeyChecking no | |
IdentityFile /app/.ssh/id_rsa | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy files from repository into container | |
RUN chmod 700 /app/.ssh ; chown -R app.app /app | |
COPY deploy/ssh/* /app/.ssh/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "myproject", | |
"dependencies": { | |
"mymod": "git+ssh://[email protected]/SC5/mymod" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NPM can install dependencies from private Bitbucket repo within Docker container, but there are few gotchas on the way: Idea is to create a custom private/public key pair and put it in version control of the project: If person has an access to the project, also access to its dependency is expected.