The Docker toolset to pack, ship, store, and deliver content.

WWW: https://github.com/docker/distribution/

PR:		245969
Submitted by:	Andrea Parrella <freebsd@yapsoft.it>
This commit is contained in:
Bernhard Froehlich 2020-04-27 18:16:45 +00:00
parent cccf793012
commit 542dc8908a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533160
5 changed files with 239 additions and 0 deletions

View file

@ -261,6 +261,7 @@
SUBDIR += docker-compose
SUBDIR += docker-credential-pass
SUBDIR += docker-machine
SUBDIR += docker-registry
SUBDIR += doctl
SUBDIR += doinkd
SUBDIR += dolly

View file

@ -0,0 +1,85 @@
# $FreeBSD$
PORTNAME= docker-registry
PORTVERSION= 2.7.1
DISTVERSIONPREFIX=v
CATEGORIES= sysutils
MAINTAINER= freebsd@yapsoft.it
COMMENT= Docker implementation of the OCI Distribution Specification
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
USE_RC_SUBR= docker_registry
USE_GITHUB= yes
GH_ACCOUNT= docker
GH_PROJECT= distribution
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
GO_TARGET= github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/registry
GO_BUILDFLAGS= -ldflags "-s -w -X github.com/docker/distribution/version.Version=${PORTVERSION}"
PLIST_FILES= bin/registry \
"@sample ${ETCDIR}/config.yml.sample"
GH_TUPLE= \
Azure:azure-sdk-for-go:v16.2.1:azure_azure_sdk_for_go/vendor/github.com/Azure/azure-sdk-for-go \
Azure:go-autorest:v10.8.1:azure_go_autorest/vendor/github.com/Azure/go-autorest \
Shopify:logrus-bugsnag:577dee27f20d:shopify_logrus_bugsnag/vendor/github.com/Shopify/logrus-bugsnag \
aws:aws-sdk-go:v1.15.11:aws_aws_sdk_go/vendor/github.com/aws/aws-sdk-go \
beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \
bshuster-repo:logrus-logstash-hook:v0.4.1:bshuster_repo_logrus_logstash_hook/vendor/github.com/bshuster-repo/logrus-logstash-hook \
bugsnag:bugsnag-go:b1d153021fcd:bugsnag_bugsnag_go/vendor/github.com/bugsnag/bugsnag-go \
bugsnag:osext:0dd3f918b21b:bugsnag_osext/vendor/github.com/bugsnag/osext \
bugsnag:panicwrap:e2c28503fcd0:bugsnag_panicwrap/vendor/github.com/bugsnag/panicwrap \
denverdino:aliyungo:a747050bb1ba:denverdino_aliyungo/vendor/github.com/denverdino/aliyungo \
dgrijalva:jwt-go:a601269ab70c:dgrijalva_jwt_go/vendor/github.com/dgrijalva/jwt-go \
docker:go-events:e31b211e4f1c:docker_go_events/vendor/github.com/docker/go-events \
docker:go-metrics:v0.0.1:docker_go_metrics/vendor/github.com/docker/go-metrics \
docker:libtrust:fa567046d9b1:docker_libtrust/vendor/github.com/docker/libtrust \
garyburd:redigo:535138d7bcd7:garyburd_redigo/vendor/github.com/garyburd/redigo \
go-check:check:64131543e789:go_check_check/vendor/gopkg.in/check.v1 \
go-ini:ini:v1.25.4:go_ini_ini/vendor/github.com/go-ini/ini \
go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
golang:appengine:v1.4.0:golang_appengine/vendor/google.golang.org/appengine \
golang:crypto:69ecbb4d6d5d:golang_crypto/vendor/golang.org/x/crypto \
golang:net:b5b0513f8c1b:golang_net/vendor/golang.org/x/net \
golang:oauth2:0f29369cfe45:golang_oauth2/vendor/golang.org/x/oauth2 \
golang:protobuf:v1.3.2:golang_protobuf/vendor/github.com/golang/protobuf \
golang:sys:cbf593c0f2f3:golang_sys/vendor/golang.org/x/sys \
golang:text:v0.3.0:golang_text/vendor/golang.org/x/text \
googleapis:google-api-go-client:9bf6e6e569ff:googleapis_google_api_go_client/vendor/google.golang.org/api \
googleapis:google-cloud-go:v0.34.0:googleapis_google_cloud_go/vendor/cloud.google.com/go \
gorilla:handlers:60c7bfde3e33:gorilla_handlers/vendor/github.com/gorilla/handlers \
gorilla:mux:v1.7.2:gorilla_mux/vendor/github.com/gorilla/mux \
grpc:grpc-go:d3ddb4469d5a:grpc_grpc_go/vendor/google.golang.org/grpc \
inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
jmespath:go-jmespath:bd40a432e4c7:jmespath_go_jmespath/vendor/github.com/jmespath/go-jmespath \
konsorten:go-windows-terminal-sequences:v1.0.1:konsorten_go_windows_terminal_sequences/vendor/github.com/konsorten/go-windows-terminal-sequences \
marstr:guid:v1.1.0:marstr_guid/vendor/github.com/marstr/guid \
matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
mitchellh:mapstructure:v1.1.2:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \
ncw:swift:v1.0.47:ncw_swift/vendor/github.com/ncw/swift \
opencontainers:go-digest:v1.0.0-rc1:opencontainers_go_digest/vendor/github.com/opencontainers/go-digest \
opencontainers:image-spec:v1.0.1:opencontainers_image_spec/vendor/github.com/opencontainers/image-spec \
prometheus:client_golang:v1.1.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
prometheus:client_model:fd36f4220a90:prometheus_client_model/vendor/github.com/prometheus/client_model \
prometheus:common:v0.6.0:prometheus_common/vendor/github.com/prometheus/common \
prometheus:procfs:v0.0.3:prometheus_procfs/vendor/github.com/prometheus/procfs \
satori:go.uuid:v1.2.0:satori_go_uuid/vendor/github.com/satori/go.uuid \
sirupsen:logrus:v1.4.2:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
spf13:cobra:v0.0.3:spf13_cobra/vendor/github.com/spf13/cobra \
spf13:pflag:v1.0.3:spf13_pflag/vendor/github.com/spf13/pflag \
yvasiyarov:go-metrics:57bccd1ccd43:yvasiyarov_go_metrics/vendor/github.com/yvasiyarov/go-metrics \
yvasiyarov:gorelic:a9bba5b9ab50:yvasiyarov_gorelic/vendor/github.com/yvasiyarov/gorelic \
yvasiyarov:newrelic_platform_go:b21fdbd4370f:yvasiyarov_newrelic_platform_go/vendor/github.com/yvasiyarov/newrelic_platform_go
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/cmd/registry/config-example.yml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/config.yml.sample
.include <bsd.port.mk>

View file

@ -0,0 +1,103 @@
TIMESTAMP = 1587684458
SHA256 (docker-distribution-v2.7.1_GH0.tar.gz) = 4c3609c102351f15c0386f619d48bb592f3100726b4bde86f3eba7739192ff55
SIZE (docker-distribution-v2.7.1_GH0.tar.gz) = 1996699
SHA256 (Azure-azure-sdk-for-go-v16.2.1_GH0.tar.gz) = 6c37a88c40c748a4fbccf1d1af19c5e1ce7a694ac8b4e5e5e3fc968f66c72590
SIZE (Azure-azure-sdk-for-go-v16.2.1_GH0.tar.gz) = 10306381
SHA256 (Azure-go-autorest-v10.8.1_GH0.tar.gz) = 203f03692c090c95d36576bbf0236de31b59c6f61c9bad16cea9db8c5de337f7
SIZE (Azure-go-autorest-v10.8.1_GH0.tar.gz) = 114532
SHA256 (Shopify-logrus-bugsnag-577dee27f20d_GH0.tar.gz) = 8b9835cfe1c87ddc292a8a636b0a6adae5ed62a9f819e708be0f5bcd383151d6
SIZE (Shopify-logrus-bugsnag-577dee27f20d_GH0.tar.gz) = 3379
SHA256 (aws-aws-sdk-go-v1.15.11_GH0.tar.gz) = 3a3e97e2a4a2eb59a1d9546f4bd79cc1c38818e265ed4338d1e82bb737af7ed3
SIZE (aws-aws-sdk-go-v1.15.11_GH0.tar.gz) = 8806725
SHA256 (beorn7-perks-v1.0.1_GH0.tar.gz) = 98db84bb0224a26094e6adba91b7ee7a1a7ace28cb648d818f8e779e6a19f825
SIZE (beorn7-perks-v1.0.1_GH0.tar.gz) = 10867
SHA256 (bshuster-repo-logrus-logstash-hook-v0.4.1_GH0.tar.gz) = 7e332cfd49f657a390066cf2ffd7b8141b949b7ca4b8095f14b21eb9b4504ddc
SIZE (bshuster-repo-logrus-logstash-hook-v0.4.1_GH0.tar.gz) = 6616
SHA256 (bugsnag-bugsnag-go-b1d153021fcd_GH0.tar.gz) = 164d5189a3c4130b815965073ce88dca43f512cbff5b476f39acf9ba1796ba68
SIZE (bugsnag-bugsnag-go-b1d153021fcd_GH0.tar.gz) = 24686
SHA256 (bugsnag-osext-0dd3f918b21b_GH0.tar.gz) = 164c7c6d6e45fa84bfdf22c276ddb34ab475186df33da2f946df02167dd31983
SIZE (bugsnag-osext-0dd3f918b21b_GH0.tar.gz) = 2791
SHA256 (bugsnag-panicwrap-e2c28503fcd0_GH0.tar.gz) = 48b115946e1c5d026c95dfeeaf808967183b277a68bda594f95cefddcb9a22e7
SIZE (bugsnag-panicwrap-e2c28503fcd0_GH0.tar.gz) = 8117
SHA256 (denverdino-aliyungo-a747050bb1ba_GH0.tar.gz) = 0906dfa7f3c991a7ef3b0c81df7e453ac9211db88199d6d7c16d0dfec7c34f56
SIZE (denverdino-aliyungo-a747050bb1ba_GH0.tar.gz) = 171720
SHA256 (dgrijalva-jwt-go-a601269ab70c_GH0.tar.gz) = 2603357fb28a77c3dbd56be5f075e2b10ff000289ee19e157fdfbd3e40937e78
SIZE (dgrijalva-jwt-go-a601269ab70c_GH0.tar.gz) = 33582
SHA256 (docker-go-events-e31b211e4f1c_GH0.tar.gz) = 2ed79a03599da09a8a35e955f962fb6b134a9ecadb5686133d4256a1ace5a5b0
SIZE (docker-go-events-e31b211e4f1c_GH0.tar.gz) = 15603
SHA256 (docker-go-metrics-v0.0.1_GH0.tar.gz) = a8a31fd2f59880f4d771c7de45b7dbcee309468ed94740d960e0c76488f9a60b
SIZE (docker-go-metrics-v0.0.1_GH0.tar.gz) = 19923
SHA256 (docker-libtrust-fa567046d9b1_GH0.tar.gz) = e2d7ddb648fa2b0a1ce9713647cbb5a3bdbb43c1cc5a882c480758d325c76a30
SIZE (docker-libtrust-fa567046d9b1_GH0.tar.gz) = 38950
SHA256 (garyburd-redigo-535138d7bcd7_GH0.tar.gz) = 8b2897fcd43ea92f50f274ad4130aad76d74b3bf4ea1de7dc2d8b71a1a485b79
SIZE (garyburd-redigo-535138d7bcd7_GH0.tar.gz) = 26863
SHA256 (go-check-check-64131543e789_GH0.tar.gz) = fa62444fa7b170b6192738bab29df8e802d918e87e4877d35d34b19597bf7de2
SIZE (go-check-check-64131543e789_GH0.tar.gz) = 29289
SHA256 (go-ini-ini-v1.25.4_GH0.tar.gz) = 915225ca3aedd7e7fbcdffda345c07fe5e2ffeab1aa95df15457b11b7d2b69db
SIZE (go-ini-ini-v1.25.4_GH0.tar.gz) = 37297
SHA256 (go-yaml-yaml-v2.2.2_GH0.tar.gz) = 42c3e4ef9eca2860d22b3c6c5582c6c13fb4b417e5ebc1acc56ee5e2c4ddcaff
SIZE (go-yaml-yaml-v2.2.2_GH0.tar.gz) = 70656
SHA256 (golang-appengine-v1.4.0_GH0.tar.gz) = 88b39d4ea8c910849238fea21a52b7fbb53ed63bce64c2496959ebdb8ab36dad
SIZE (golang-appengine-v1.4.0_GH0.tar.gz) = 325752
SHA256 (golang-crypto-69ecbb4d6d5d_GH0.tar.gz) = 006815c146fa85ab4b28f862748df3d7866f51688d5803d015c8a397019de0f9
SIZE (golang-crypto-69ecbb4d6d5d_GH0.tar.gz) = 1719992
SHA256 (golang-net-b5b0513f8c1b_GH0.tar.gz) = c964b833e5e90f5f84ded2ed3b5b12a1294f116762d83a5cdd4e4bf319981029
SIZE (golang-net-b5b0513f8c1b_GH0.tar.gz) = 1099187
SHA256 (golang-oauth2-0f29369cfe45_GH0.tar.gz) = 468421ddfe905216454006b309ebda6e97aa6089265b995bce4259d6a9efd141
SIZE (golang-oauth2-0f29369cfe45_GH0.tar.gz) = 45498
SHA256 (golang-protobuf-v1.3.2_GH0.tar.gz) = c9cda622857a17cf0877c5ba76688a931883e505f40744c9495638b6e3da1f65
SIZE (golang-protobuf-v1.3.2_GH0.tar.gz) = 312285
SHA256 (golang-sys-cbf593c0f2f3_GH0.tar.gz) = 3590c55ef807ee27909fecdd771996ab55ad5306f5174b877810a9a9915f0a18
SIZE (golang-sys-cbf593c0f2f3_GH0.tar.gz) = 1454976
SHA256 (golang-text-v0.3.0_GH0.tar.gz) = 8f4c9a048345befc7beccd09267737ee1f55c7b35e5ff80f344ec9e0aa90febb
SIZE (golang-text-v0.3.0_GH0.tar.gz) = 6102619
SHA256 (googleapis-google-api-go-client-9bf6e6e569ff_GH0.tar.gz) = 69b374167e8ef32ee309d65cda8adfbb7b75f674086ff1603ac66446ceb6e5f3
SIZE (googleapis-google-api-go-client-9bf6e6e569ff_GH0.tar.gz) = 4224911
SHA256 (googleapis-google-cloud-go-v0.34.0_GH0.tar.gz) = 858035d2031c8ea1eb9ff958a94acccd4d01f8c47e9a135e64444ce352cc5ed2
SIZE (googleapis-google-cloud-go-v0.34.0_GH0.tar.gz) = 2047971
SHA256 (gorilla-handlers-60c7bfde3e33_GH0.tar.gz) = bd3b5343a44eee7cdf3548d4759346d3ed4e0192cce841cada1ec319fe02841c
SIZE (gorilla-handlers-60c7bfde3e33_GH0.tar.gz) = 11018
SHA256 (gorilla-mux-v1.7.2_GH0.tar.gz) = 56920f5c8a9286478005a13940c27069242447812ac47f4e6221cfc9d13ea73f
SIZE (gorilla-mux-v1.7.2_GH0.tar.gz) = 40933
SHA256 (grpc-grpc-go-d3ddb4469d5a_GH0.tar.gz) = 6275aff408dada023c0c403de46d49f80c4fd0e376eced232ee3f306df7c1a21
SIZE (grpc-grpc-go-d3ddb4469d5a_GH0.tar.gz) = 145693
SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6
SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290
SHA256 (jmespath-go-jmespath-bd40a432e4c7_GH0.tar.gz) = 89a18e31d4056046173e5490d68b1b78c58ed6ca626c461e46987203aa9cea36
SIZE (jmespath-go-jmespath-bd40a432e4c7_GH0.tar.gz) = 48275
SHA256 (konsorten-go-windows-terminal-sequences-v1.0.1_GH0.tar.gz) = e36c5a5de388bf72db3037b47f025b09e574be8d0bc74b3e44c960cba0880e87
SIZE (konsorten-go-windows-terminal-sequences-v1.0.1_GH0.tar.gz) = 1909
SHA256 (marstr-guid-v1.1.0_GH0.tar.gz) = 70f816c253248a34e7943b1893a854e45fd9487cee3aff158db195ef62af3706
SIZE (marstr-guid-v1.1.0_GH0.tar.gz) = 6587
SHA256 (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 2def0ee6f6b12b1efc0e3007d89f598608a072610e805c3655ea9d13c3ead49b
SIZE (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 37184
SHA256 (mitchellh-mapstructure-v1.1.2_GH0.tar.gz) = 53fbc06b125ff1c9c73a4eb1764346932671a29c67a45a92e2ebc6855635069b
SIZE (mitchellh-mapstructure-v1.1.2_GH0.tar.gz) = 20980
SHA256 (ncw-swift-v1.0.47_GH0.tar.gz) = 7ac6e3a02f58cb7223c938bd530e009d980ae90ac83c2ef80188cbb54a8946bb
SIZE (ncw-swift-v1.0.47_GH0.tar.gz) = 61815
SHA256 (opencontainers-go-digest-v1.0.0-rc1_GH0.tar.gz) = 3f511b32c46f60482644f0ad6a345f52e672c82164bfb08274f15f7c14cd3076
SIZE (opencontainers-go-digest-v1.0.0-rc1_GH0.tar.gz) = 19206
SHA256 (opencontainers-image-spec-v1.0.1_GH0.tar.gz) = c7ca467de2cca65e7ea74414a3f51e91450156213af485830dcdfff0571e10d2
SIZE (opencontainers-image-spec-v1.0.1_GH0.tar.gz) = 138674
SHA256 (prometheus-client_golang-v1.1.0_GH0.tar.gz) = 4fd80a210cc090db117d92d126d15cdb5108c84e3178ffc7bd26cb2fa4298343
SIZE (prometheus-client_golang-v1.1.0_GH0.tar.gz) = 140006
SHA256 (prometheus-client_model-fd36f4220a90_GH0.tar.gz) = 17571c708bab9a1ba18d9dd0c9bfe96dff3f1b84c63e7d8d4c3489ef5c34ee40
SIZE (prometheus-client_model-fd36f4220a90_GH0.tar.gz) = 57491
SHA256 (prometheus-common-v0.6.0_GH0.tar.gz) = 3b58d10c44520d8fd3817b45599a6229123ccf8967db528063143266405b7c4f
SIZE (prometheus-common-v0.6.0_GH0.tar.gz) = 99696
SHA256 (prometheus-procfs-v0.0.3_GH0.tar.gz) = 3af9b805166932b771dfa19a4c94eb83ceefd2eb54d1a314c3bf15a5f3154d0d
SIZE (prometheus-procfs-v0.0.3_GH0.tar.gz) = 91880
SHA256 (satori-go.uuid-v1.2.0_GH0.tar.gz) = 6f9d9549958252d7c5a5ed1cabeedeaab7a600ca0b888a3666cce4c3590aa5a7
SIZE (satori-go.uuid-v1.2.0_GH0.tar.gz) = 8297
SHA256 (sirupsen-logrus-v1.4.2_GH0.tar.gz) = 67f2ddf467b7e63d2d2529d227946a331e245aeef7e2e4521ae82647b5ef84d9
SIZE (sirupsen-logrus-v1.4.2_GH0.tar.gz) = 41373
SHA256 (spf13-cobra-v0.0.3_GH0.tar.gz) = 7eafb953b58fdd738c4db5202d94a0b6ac0de4f07718fc85a80450c2347c2f9c
SIZE (spf13-cobra-v0.0.3_GH0.tar.gz) = 101526
SHA256 (spf13-pflag-v1.0.3_GH0.tar.gz) = 9e57f86f493f04d9077fccd04e7139ebf243dd544e917ab83d35729b3e54a124
SIZE (spf13-pflag-v1.0.3_GH0.tar.gz) = 46002
SHA256 (yvasiyarov-go-metrics-57bccd1ccd43_GH0.tar.gz) = e3957d5684a51ae7b91462d8bbb279aaa5cb66f3fdd63eb524bea5bf67c244ad
SIZE (yvasiyarov-go-metrics-57bccd1ccd43_GH0.tar.gz) = 30677
SHA256 (yvasiyarov-gorelic-a9bba5b9ab50_GH0.tar.gz) = 6581f0bb89a64ffea0c348f39661c2e747be363687d7743ce46fd38192eaf47e
SIZE (yvasiyarov-gorelic-a9bba5b9ab50_GH0.tar.gz) = 8243
SHA256 (yvasiyarov-newrelic_platform_go-b21fdbd4370f_GH0.tar.gz) = e220f805098db72967f79acb660cde2ab594a233a0cfedd912e92917fdca7500
SIZE (yvasiyarov-newrelic_platform_go-b21fdbd4370f_GH0.tar.gz) = 4633

View file

@ -0,0 +1,47 @@
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: docker_registry
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# docker_registry_enable (bool): Set to NO by default.
# Set it to YES to enable docker-registry.
# docker_registry_config (path): Set to %%PREFIX%%/etc/docker-registry/config.yml
# by default.
# docker_registry_logfile (path): Set to /var/log/docker-registry.log
# by default.
# docker_registry_user (string): Not set by default.
. /etc/rc.subr
name=registry
rcvar=docker_registry_enable
load_rc_config $name
: ${docker_registry_enable:="NO"}
: ${docker_registry_logfile:="/var/log/docker-registry.log"}
: ${docker_registry_config="%%PREFIX%%/etc/docker-registry/config.yml"}
command=%%PREFIX%%/bin/registry
pidfile=/var/run/docker-registry.pid
command_args="serve $docker_registry_config"
start_cmd="docker_registry_start"
docker_registry_start()
{
opts="-p $pidfile -o $docker_registry_logfile"
if [ ! -z $docker_registry_user ]; then
opts="$opts -u $docker_registry_user"
fi
/usr/sbin/daemon $opts $command $command_args
}
run_rc_command "$1"

View file

@ -0,0 +1,3 @@
The Docker toolset to pack, ship, store, and deliver content.
WWW: https://github.com/docker/distribution/