Last active
August 29, 2015 13:56
-
-
Save nathansamson/8815372 to your computer and use it in GitHub Desktop.
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
[nathan@omega example-php]$ git push deis master | |
+ GITUSER=git | |
+ GITHOME=/home/git | |
++ which /usr/local/bin/gitreceive | |
+ SELF=/usr/local/bin/gitreceive | |
+ case "$1" in | |
+ export RECEIVE_USER=dev | |
+ RECEIVE_USER=dev | |
+ export RECEIVE_FINGERPRINT=f5:4d:10:e1:1e:29:56:00:a7:3d:80:75:f4:f6:ad:14 | |
+ RECEIVE_FINGERPRINT=f5:4d:10:e1:1e:29:56:00:a7:3d:80:75:f4:f6:ad:14 | |
++ echo git-receive-pack ''\''/php1.git'\''' | |
++ sed 's/\///g' | |
+ SSH_ORIGINAL_COMMAND='git-receive-pack '\''php1.git'\''' | |
++ echo git-receive-pack ''\''php1.git'\''' | |
++ sed 's/\\'\''/'\''/g' | |
++ perl -pe 's/(?<!\\)'\''//g' | |
++ awk '{print $2}' | |
perl: warning: Setting locale failed. | |
perl: warning: Please check that your locale settings: | |
LANGUAGE = (unset), | |
LC_ALL = (unset), | |
LC_PAPER = "nl_BE.utf8", | |
LC_MONETARY = "nl_BE.utf8", | |
LC_NUMERIC = "nl_BE.utf8", | |
LC_MEASUREMENT = "nl_BE.utf8", | |
LC_TIME = "nl_BE.utf8", | |
LANG = "nl_BE.utf8" | |
are supported and installed on your system. | |
perl: warning: Falling back to the standard locale ("C"). | |
+ export RECEIVE_REPO=php1.git | |
+ RECEIVE_REPO=php1.git | |
+ REPO_PATH=/home/git/php1.git | |
+ '[' '!' -d /home/git/php1.git ']' | |
+ cd /home/git | |
+ PRERECEIVE_HOOK=/home/git/php1.git/hooks/pre-receive | |
+ cat | |
+ chmod +x /home/git/php1.git/hooks/pre-receive | |
+ git-shell -c 'git-receive-pack '\''php1.git'\''' | |
Counting objects: 61, done. | |
Delta compression using up to 8 threads. | |
Compressing objects: 100% (56/56), done. | |
Writing objects: 100% (61/61), 47.41 KiB | 0 bytes/s, done. | |
Total 61 (delta 25), reused 0 (delta 0) | |
remote: + GITUSER=git | |
remote: + GITHOME=/home/git | |
remote: ++ which /usr/local/bin/gitreceive | |
remote: + SELF=/usr/local/bin/gitreceive | |
remote: + case "$1" in | |
remote: + read oldrev newrev refname | |
remote: + [[ refs/heads/master = \r\e\f\s\/\h\e\a\d\s\/\m\a\s\t\e\r ]] | |
remote: + git archive 27a2a66d897b4913d1a7b1ce112c303ea30d536e | |
remote: + /home/git/receiver php1.git 27a2a66d897b4913d1a7b1ce112c303ea30d536e dev f5:4d:10:e1:1e:29:56:00:a7:3d:80:75:f4:f6:ad:14 | |
remote: + repository=php1.git | |
remote: + app=php1 | |
remote: + sha=27a2a66d897b4913d1a7b1ce112c303ea30d536e | |
remote: + username=dev | |
remote: + fingerprint=f5:4d:10:e1:1e:29:56:00:a7:3d:80:75:f4:f6:ad:14 | |
remote: + curl -X POST --fail -H 'Content-Type: application/json' -H 'X-Deis-Builder-Auth: Pq56A8UIGCcO4WqwJ42KWFqti4Zqvkcdjnp3MfRT4q0y2dPFLpuUZwivVP1/6z4xkZwCHv2L78xmchtYQUxxMQ==' -d '{"receive_user": "dev", "receive_repo": "php1", "sha": "27a2a66d897b4913d1a7b1ce112c303ea30d536e", "fingerprint": "f5:4d:10:e1:1e:29:56:00:a7:3d:80:75:f4:f6:ad:14", "ssh_connection": "192.168.61.1 48437 172.17.0.30 22", "ssh_original_command": "git-receive-pack '\''php1.git'\''"}' --silent http://192.168.61.100:8000/api/hooks/push | |
+ [[ git-receive-pack 'php1.git' == git-receive-pack* ]] | |
+ [[ -e /home/git/php1.git/refs/heads/master ]] | |
To ssh://git@deis-controller.local:2222/php1.git | |
! [remote rejected] master -> master (pre-receive hook declined) | |
error: failed to push some refs to 'ssh://git@deis-controller.local:2222/php1.git' | |
[nathan@omega example-php]$ |
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
vagrant@deis-controller:~$ head /vagrant/images/builder/templates/builder | |
#!/bin/bash | |
# | |
# build hook called on every git receive-pack | |
# NOTE: this script must be run as root (for docker access) | |
# | |
set -eo pipefail | |
set -x | |
echo "Starting builder" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment