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
# Add these lines to your dockerfile, before `npm install` | |
# Copy the bitbucket private key to your docker image | |
COPY ./bitbucket_ssh_key /opt/my-app | |
# Copy the ssh script to your docker image | |
COPY ./ssh-bitbucket.sh /opt/my-app | |
# Tell git to use your `ssh-bitbucket.sh` script | |
ENV GIT_SSH="/opt/map-project-tile-server/ssh-bitbucket.sh" |
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
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |