Actions
Hacking Keep » History » Revision 4
« Previous |
Revision 4/9
(diff)
| Next »
Tom Clegg, 07/16/2014 09:24 AM
Hacking Keep¶
Source tree layout¶
The Keep server source code is in /services/keep/src/keep
.
cd git clone https://github.com/curoverse/arvados.git ls arvados/services/keep/src/keep
Install build-prerequisites¶
Install Go. See http://golang.org/doc/install or try this short cut:
wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.2.1.linux-amd64.tar.gz cd /usr/local/bin sudo ln -s ../go/bin/* .
(Check https://code.google.com/p/go/downloads/list for other platforms and newer versions.)
Install mux.
GOPATH=~/go go get github.com/gorilla/mux
Run test suite¶
cd ~/arvados/services/keep/src/keep GOPATH=~/go go test
You should see something like this:
2014/07/16 09:24:01 GET e4d909c290d0fb1ca068ffaddf22cbd0 2014/07/16 09:24:01 GET e4d909c290d0fb1ca068ffaddf22cbd0 2014/07/16 09:24:01 GET e4d909c290d0fb1ca068ffaddf22cbd0 2014/07/16 09:24:01 GET e4d909c290d0fb1ca068ffaddf22cbd0 2014/07/16 09:24:01 GET e4d909c290d0fb1ca068ffaddf22cbd0 2014/07/16 09:24:01 PUT e4d909c290d0fb1ca068ffaddf22cbd0 2014/07/16 09:24:01 PUT e4d909c290d0fb1ca068ffaddf22cbd0 2014/07/16 09:24:01 PUT e4d909c290d0fb1ca068ffaddf22cbd0 2014/07/16 09:24:01 [MockVolume]: checksum mismatch for request e4d909c290d0fb1ca068ffaddf22cbd0 (actual 55ae4d45d2db0793d53f03e805f656e5) 2014/07/16 09:24:01 e4d909c290d0fb1ca068ffaddf22cbd0: checksum mismatch, no good copy found 2014/07/16 09:24:01 GetBlock: reading e4d909c290d0fb1ca068ffaddf22cbd0: Bad volume 2014/07/16 09:24:01 [MockVolume]: Write(e4d909c290d0fb1ca068ffaddf22cbd0): Bad volume 2014/07/16 09:24:01 GetBlock: reading e4d909c290d0fb1ca068ffaddf22cbd0: Bad volume 2014/07/16 09:24:01 e4d909c290d0fb1ca068ffaddf22cbd0: MD5 checksum 55ae4d45d2db0793d53f03e805f656e5 did not match request 2014/07/16 09:24:01 [MockVolume]: checksum mismatch for request e4d909c290d0fb1ca068ffaddf22cbd0 (actual 55ae4d45d2db0793d53f03e805f656e5) 2014/07/16 09:24:01 e4d909c290d0fb1ca068ffaddf22cbd0: checksum mismatch, no good copy found 2014/07/16 09:24:01 e4d909c290d0fb1ca068ffaddf22cbd0: could not create directory /tmp/volume_test436651248/e4d: mkdir /tmp/volume_test436651248/e4d: permission denied PASS ok _/home/you/src/arvados/services/keep/src/keep 0.030s
Updated by Tom Clegg over 10 years ago · 9 revisions