Huawei / dockyard

Container & Artifact Repository
Apache License 2.0
269 stars 67 forks source link

Can't build master #132

Open nlamirault opened 8 years ago

nlamirault commented 8 years ago

I've got an error building master using Go 1.6:

$ git clone https://github.com/containerops/dockyard                                                                                                                                             
Cloning into 'dockyard'...
remote: Counting objects: 3763, done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 3763 (delta 1), reused 0 (delta 0), pack-reused 3710
Receiving objects: 100% (3763/3763), 3.29 MiB | 1.36 MiB/s, done.
Resolving deltas: 100% (1342/1342), done.
Checking connectivity... done.
$ cd dockyard     
$ make
go build -tags "" -o dockyard .
# github.com/containerops/dockyard/handler
../golang/src/github.com/containerops/dockyard/handler/blob.go:52: too many arguments in call to utils.MD5
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 2
genedna commented 8 years ago

@nlamirault Please use the develop branch for now, @MabinGo are working on merge from develop.

nlamirault commented 8 years ago

OK. I try that.

$ make
go build -tags "" -o dockyard .
../golang/src/github.com/containerops/dockyard/backend/rados/rados.go:11:2: cannot find package "github.com/ceph/go-ceph/rados" in any of:
        /home/nlamirault/Apps/golang/src/github.com/containerops/dockyard/vendor/github.com/ceph/go-ceph/rados (vendor tree)
        /home/nlamirault/Apps/go/src/github.com/ceph/go-ceph/rados (from $GOROOT)
        /home/nlamirault/Apps/dockyard/Godeps/_workspace/src/github.com/ceph/go-ceph/rados (from $GOPATH)
        /home/nlamirault/Apps/golang/src/github.com/ceph/go-ceph/rados
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 1
MabinGo commented 8 years ago

@nlamirault Hi,I have merged develop to master,please try to use master again.

nlamirault commented 8 years ago

I've got an error with the backend :

$ ./dockyard web --address "0.0.0.0" --port "9898"
Register backend driver error: rados: ret=-22

With this configuration file :

runmode = dev

listenmode = https
httpscertfile = cert/containerops/containerops.crt
httpskeyfile = cert/containerops/containerops.key

[log]
filepath = log/containerops-log

[db]
driver = redis
uri = localhost:6379

[dockyard]
path = data
domains = containerops.me
registry = 0.9
distribution = registry/2.0
standalone = true
backend = rados

[rados]
chunksize = 4196304
poolname = test
username = test
MabinGo commented 8 years ago

@nlamirault Hi nlamirault,can you check that if your ceph server is ready? BTW,rados driver of Dockyard bases on origin interface of ceph,not support to use rados via s3 interface now.