Package Details: docker-registry2-git r2956.af8ac809-1

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.000000
First Submitted: 2019-04-11 10:05 (UTC)
Last Updated: 2021-06-15 13:21 (UTC)

Dependencies (2)

Required by (1)

  • kubedee (requires docker-registry) (optional)

Sources (4)

Latest Comments

krevedko commented on 2021-06-15 13:22 (UTC)

@djmattyg007 Done.

djmattyg007 commented on 2021-06-15 13:13 (UTC)

Would you be able to update the gitignore file to not appear to exclude everything? This confuses tools like ripgrep and broot which automatically use gitignore files by default to decide what to index.

Typically this is sufficient for most AUR packages:

/pkg/
/src/
*.pkg.tar.*

As well as lines to exclude any downloaded sources, which for this package would just be /docker-registry2-git/

<deleted-account> commented on 2021-03-04 17:23 (UTC)

@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 (UTC)

@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

<deleted-account> commented on 2021-03-03 21:17 (UTC)

@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 (UTC)

@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.

<deleted-account> commented on 2021-03-03 20:28 (UTC)

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 (UTC)

@maggis Thanks, fixed.

maggis commented on 2021-01-09 16:36 (UTC)

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