Package Details: docker-registry2-git r2916.a01c71e2-2

Git Clone URL: https://aur.archlinux.org/docker-registry2-git.git (read-only, click to copy)
Package Base: docker-registry2-git
Description: Docker Registry 2.0 (aka docker-distibution) implementation to pack, ship, store, and deliver docker images (git version).
Upstream URL: https://github.com/distribution/distribution
Keywords: docker docker-registry
Licenses: Apache
Conflicts: docker-registry
Provides: docker-registry
Submitter: krevedko
Maintainer: krevedko
Last Packager: krevedko
Votes: 1
Popularity: 0.146424
First Submitted: 2019-04-11 10:05
Last Updated: 2021-03-18 17:27

Latest Comments

dmorilha commented on 2021-03-04 17:23

@krevedko thank you for spending time investigating!

I made few changes to the PKGBUILD which made it work with the latest go. They compile the registry from the source code, which is what I wanted anyways. With docker phasing out, I might jump and change few things here and there to accommodate my needs.

$ diff {a,b}/PKGBUILD
16,17c16
< _gourl="./$pkgname/cmd/registry"
< 
---
> _gourl="$__gitroot/cmd/registry"
23d21
< 
31,34c29
<   GOPATH="$srcdir"
<   cd $srcdir/$pkgname
<   go install .
<   make bin/registry
---
>   GOPATH="$srcdir" go get -v ${_gourl}
38,39c33,34
<   install -Dm644 "$srcdir/$pkgname/cmd/registry/config-example.yml" "$pkgdir/etc/docker-registry/config.yml"
<   sed -e "s@/var/lib/registry@/data/docker-registry@g" \
---
>   install -Dm644 "$srcdir/src/github.com/docker/distribution/cmd/registry/config-example.yml" "$pkgdir/etc/docker-registry/config.yml"
>   sed -e "s@/var/lib/registry@/var/lib/docker-registry@g" \
42c37,38
<   install -Dm755 "$srcdir/$pkgname/bin/registry" "$pkgdir/usr/bin/docker-registry"
---
> 
>   install -Dm755 "$srcdir/bin/registry" "$pkgdir/usr/bin/docker-registry"

krevedko commented on 2021-03-04 09:21

@dmorilha Located problem with go-1.16, but NOT with go-1.15. Thanks for report. Opened upstream bug: https://github.com/distribution/distribution/issues/3374

dmorilha commented on 2021-03-03 21:17

@krevedko thanks for the quick reply, none of these steps worked in my case :/ I also tried go clean -cache and go clean -modcache .

krevedko commented on 2021-03-03 20:50

@dmorilha Well, I can't reproduce the error. Possibly, you can try to purge src/pkg build directories, or pkgbuild directory itself, or rm -rf ~/.cache/go-build, or something else.

dmorilha commented on 2021-03-03 20:28

This package currently fails to build with the following go get error:

go get: google.golang.org/cloud@none updating to
        google.golang.org/cloud@v0.78.0: parsing go.mod:
        module declares its path as: cloud.google.com/go
                but was required as: google.golang.org/cloud
==> ERROR: A failure occurred in build().
    Aborting...

krevedko commented on 2021-01-09 17:24

@maggis Thanks, fixed.

maggis commented on 2021-01-09 16:36

Hi @krevedko, thanks for supplying this package. On updating, config.yml gets overwritten. Could you add backup=(etc/docker-registry/config.yml) to PKGBUILD? Thanks, Marcus