diff options
Diffstat (limited to 'recipes-containers/docker-compose/relocation.inc')
-rw-r--r-- | recipes-containers/docker-compose/relocation.inc | 157 |
1 files changed, 157 insertions, 0 deletions
diff --git a/recipes-containers/docker-compose/relocation.inc b/recipes-containers/docker-compose/relocation.inc new file mode 100644 index 00000000..54810ee4 --- /dev/null +++ b/recipes-containers/docker-compose/relocation.inc | |||
@@ -0,0 +1,157 @@ | |||
1 | sites="github.com/AlecAivazis/survey/v2:github.com/AlecAivazis/survey/v2 \ | ||
2 | github.com/buger/goterm:github.com/buger/goterm \ | ||
3 | github.com/cnabio/cnab-to-oci:github.com/cnabio/cnab-to-oci \ | ||
4 | github.com/compose-spec/compose-go:github.com/compose-spec/compose-go \ | ||
5 | github.com/containerd/console:github.com/containerd/console \ | ||
6 | github.com/containerd/containerd:github.com/containerd/containerd \ | ||
7 | github.com/distribution/distribution/v3:github.com/distribution/distribution/v3 \ | ||
8 | github.com/docker/cli:github.com/docker/cli \ | ||
9 | github.com/docker/cli-docs-tool:github.com/docker/cli-docs-tool \ | ||
10 | github.com/docker/docker:github.com/docker/docker \ | ||
11 | github.com/docker/docker:github.com/docker/docker83b51522df43866e39f7c757a6ab84ef4050eeb3 \ | ||
12 | github.com/docker/go-connections:github.com/docker/go-connections \ | ||
13 | github.com/docker/go-units:github.com/docker/go-units \ | ||
14 | github.com/golang/mock:github.com/golang/mock \ | ||
15 | github.com/hashicorp/go-multierror:github.com/hashicorp/go-multierror \ | ||
16 | github.com/hashicorp/go-version:github.com/hashicorp/go-version \ | ||
17 | github.com/mattn/go-isatty:github.com/mattn/go-isatty \ | ||
18 | github.com/mattn/go-shellwords:github.com/mattn/go-shellwords \ | ||
19 | github.com/moby/buildkit:github.com/moby/buildkit \ | ||
20 | github.com/moby/term:github.com/moby/term \ | ||
21 | github.com/morikuni/aec:github.com/morikuni/aec \ | ||
22 | github.com/opencontainers/go-digest:github.com/opencontainers/go-digest \ | ||
23 | github.com/opencontainers/image-spec:github.com/opencontainers/image-spec \ | ||
24 | github.com/pkg/errors:github.com/pkg/errors \ | ||
25 | github.com/sirupsen/logrus:github.com/sirupsen/logrus \ | ||
26 | github.com/spf13/cobra:github.com/spf13/cobra \ | ||
27 | github.com/spf13/pflag:github.com/spf13/pflag \ | ||
28 | github.com/stretchr/testify:github.com/stretchr/testify \ | ||
29 | github.com/theupdateframework/notary:github.com/theupdateframework/notary \ | ||
30 | golang.org/x/sync:golang.org/x/sync \ | ||
31 | gopkg.in/yaml.v2:gopkg.in/yaml.v2 \ | ||
32 | gotest.tools:github.com/gotestyourself/gotest.tools \ | ||
33 | gotest.tools/v3:github.com/gotestyourself/gotest.toolsf086d2783c5b3a2a21b482ec19c1c310e68f4d18 \ | ||
34 | github.com/Azure/go-ansiterm:github.com/Azure/go-ansiterm \ | ||
35 | github.com/Masterminds/semver:github.com/Masterminds/semver \ | ||
36 | github.com/Microsoft/go-winio:github.com/Microsoft/go-winio \ | ||
37 | github.com/beorn7/perks:github.com/beorn7/perks \ | ||
38 | github.com/cespare/xxhash/v2:github.com/cespare/xxhash/v2 \ | ||
39 | github.com/cnabio/cnab-go:github.com/cnabio/cnab-go \ | ||
40 | github.com/containerd/continuity:github.com/containerd/continuity \ | ||
41 | github.com/containerd/ttrpc:github.com/containerd/ttrpc \ | ||
42 | github.com/containerd/typeurl:github.com/containerd/typeurl \ | ||
43 | github.com/davecgh/go-spew:github.com/davecgh/go-spew \ | ||
44 | github.com/docker/distribution:github.com/docker/distribution \ | ||
45 | github.com/docker/docker-credential-helpers:github.com/docker/docker-credential-helpers \ | ||
46 | github.com/docker/go:github.com/docker/go \ | ||
47 | github.com/docker/go-metrics:github.com/docker/go-metrics \ | ||
48 | github.com/felixge/httpsnoop:github.com/felixge/httpsnoop \ | ||
49 | github.com/fvbommel/sortorder:github.com/fvbommel/sortorder \ | ||
50 | github.com/go-logr/logr:github.com/go-logr/logr \ | ||
51 | github.com/go-logr/stdr:github.com/go-logr/stdr \ | ||
52 | github.com/gofrs/flock:github.com/gofrs/flock \ | ||
53 | github.com/gogo/googleapis:github.com/gogo/googleapis \ | ||
54 | github.com/gogo/protobuf:github.com/gogo/protobuf \ | ||
55 | github.com/golang/protobuf:github.com/golang/protobuf \ | ||
56 | github.com/google/go-cmp:github.com/google/go-cmp \ | ||
57 | github.com/google/gofuzz:github.com/google/gofuzz \ | ||
58 | github.com/google/shlex:github.com/google/shlex \ | ||
59 | github.com/gorilla/mux:github.com/gorilla/mux \ | ||
60 | github.com/grpc-ecosystem/go-grpc-middleware:github.com/grpc-ecosystem/go-grpc-middleware \ | ||
61 | github.com/grpc-ecosystem/grpc-gateway:github.com/grpc-ecosystem/grpc-gateway \ | ||
62 | github.com/hashicorp/errwrap:github.com/hashicorp/errwrap \ | ||
63 | github.com/imdario/mergo:github.com/imdario/mergo \ | ||
64 | github.com/inconshreveable/mousetrap:github.com/inconshreveable/mousetrap \ | ||
65 | github.com/json-iterator/go:github.com/json-iterator/go \ | ||
66 | github.com/kballard/go-shellquote:github.com/kballard/go-shellquote \ | ||
67 | github.com/klauspost/compress:github.com/klauspost/compress \ | ||
68 | github.com/mattn/go-colorable:github.com/mattn/go-colorable \ | ||
69 | github.com/matttproud/golang_protobuf_extensions:github.com/matttproud/golang_protobuf_extensions \ | ||
70 | github.com/mgutz/ansi:github.com/mgutz/ansi \ | ||
71 | github.com/miekg/pkcs11:github.com/miekg/pkcs11 \ | ||
72 | github.com/mitchellh/mapstructure:github.com/mitchellh/mapstructure \ | ||
73 | github.com/moby/locker:github.com/moby/locker \ | ||
74 | github.com/moby/sys/signal:github.com/moby/sys/signal//signal \ | ||
75 | github.com/moby/sys/symlink:github.com/moby/sys/symlink//symlink \ | ||
76 | github.com/modern-go/concurrent:github.com/modern-go/concurrent \ | ||
77 | github.com/modern-go/reflect2:github.com/modern-go/reflect2 \ | ||
78 | github.com/opencontainers/runc:github.com/opencontainers/runc \ | ||
79 | github.com/pelletier/go-toml:github.com/pelletier/go-toml \ | ||
80 | github.com/pmezard/go-difflib:github.com/pmezard/go-difflib \ | ||
81 | github.com/prometheus/client_golang:github.com/prometheus/client_golang \ | ||
82 | github.com/prometheus/client_model:github.com/prometheus/client_model \ | ||
83 | github.com/prometheus/common:github.com/prometheus/common \ | ||
84 | github.com/prometheus/procfs:github.com/prometheus/procfs \ | ||
85 | github.com/qri-io/jsonpointer:github.com/qri-io/jsonpointer \ | ||
86 | github.com/qri-io/jsonschema:github.com/qri-io/jsonschema \ | ||
87 | github.com/tonistiigi/fsutil:github.com/tonistiigi/fsutil \ | ||
88 | github.com/tonistiigi/units:github.com/tonistiigi/units \ | ||
89 | github.com/tonistiigi/vt100:github.com/tonistiigi/vt100 \ | ||
90 | github.com/xeipuuv/gojsonpointer:github.com/xeipuuv/gojsonpointer \ | ||
91 | github.com/xeipuuv/gojsonreference:github.com/xeipuuv/gojsonreference \ | ||
92 | github.com/xeipuuv/gojsonschema:github.com/xeipuuv/gojsonschema \ | ||
93 | go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc:github.com/open-telemetry/opentelemetry-go-contrib/instrumentation/google.golang.org/grpc/otelgrpc//instrumentation/google.golang.org/grpc/otelgrpc \ | ||
94 | go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace:github.com/open-telemetry/opentelemetry-go-contrib/instrumentation/google.golang.org/grpc/otelgrpc//instrumentation/net/http/httptrace/otelhttptrace \ | ||
95 | go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp:github.com/open-telemetry/opentelemetry-go-contrib/instrumentation/google.golang.org/grpc/otelgrpc//instrumentation/net/http/otelhttp \ | ||
96 | go.opentelemetry.io/otel:go.opentelemetry.io/otel \ | ||
97 | go.opentelemetry.io/otel/exporters/otlp/otlptrace:github.com/open-telemetry/opentelemetry-go/exporters/otlp/otlptrace//exporters/otlp/otlptrace:force \ | ||
98 | go.opentelemetry.io/otel/internal/metric:github.com/open-telemetry/opentelemetry-go/internal/metric//internal/metric:force \ | ||
99 | go.opentelemetry.io/otel/metric:github.com/open-telemetry/opentelemetry-go/metric//metric:force \ | ||
100 | go.opentelemetry.io/otel/sdk:github.com/open-telemetry/opentelemetry-go/exporters/otlp/otlptrace//sdk:force \ | ||
101 | go.opentelemetry.io/otel/trace:go.opentelemetry.io/otel//trace:force \ | ||
102 | go.opentelemetry.io/otel/exporters/otlp/internal/retry:github.com/open-telemetry/opentelemetry-go/exporters/otlp/otlptrace//exporters/otlp/internal/retry:force \ | ||
103 | go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc:github.com/open-telemetry/opentelemetry-go/exporters/otlp/otlptrace//exporters/otlp/otlptrace/otlptracegrpc:force \ | ||
104 | go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp:github.com/open-telemetry/opentelemetry-go/exporters/otlp/otlptrace//exporters/otlp/otlptrace/otlptracehttp:force \ | ||
105 | go.opentelemetry.io/proto/otlp:github.com/open-telemetry/opentelemetry-proto-go/otlp//otlp:force \ | ||
106 | golang.org/x/crypto:golang.org/x/crypto \ | ||
107 | golang.org/x/net:golang.org/x/net \ | ||
108 | golang.org/x/oauth2:golang.org/x/oauth2 \ | ||
109 | golang.org/x/sys:golang.org/x/sys \ | ||
110 | golang.org/x/term:golang.org/x/term \ | ||
111 | golang.org/x/text:golang.org/x/text \ | ||
112 | golang.org/x/time:golang.org/x/time \ | ||
113 | google.golang.org/appengine:github.com/golang/appengine \ | ||
114 | google.golang.org/genproto:github.com/googleapis/go-genproto \ | ||
115 | google.golang.org/grpc:github.com/grpc/grpc-go \ | ||
116 | google.golang.org/protobuf:github.com/protocolbuffers/protobuf-go \ | ||
117 | gopkg.in/inf.v0:gopkg.in/inf.v0 \ | ||
118 | gopkg.in/yaml.v3:gopkg.in/yaml.v3 \ | ||
119 | k8s.io/klog/v2:k8s.io/klog/v2 \ | ||
120 | k8s.io/utils:k8s.io/utils \ | ||
121 | sigs.k8s.io/structured-merge-diff/v4:sigs.k8s.io/structured-merge-diff/v4 \ | ||
122 | sigs.k8s.io/yaml:sigs.k8s.io/yaml \ | ||
123 | github.com/cenkalti/backoff/v4:github.com/cenkalti/backoff/v4 \ | ||
124 | github.com/cyberphone/json-canonicalization:github.com/cyberphone/json-canonicalization \ | ||
125 | github.com/googleapis/gnostic:github.com/googleapis/gnostic \ | ||
126 | github.com/moby/spdystream:github.com/moby/spdystream \ | ||
127 | github.com/serialx/hashring:github.com/serialx/hashring \ | ||
128 | github.com/zmap/zcrypto:github.com/zmap/zcrypto \ | ||
129 | github.com/zmap/zlint:github.com/zmap/zlint \ | ||
130 | k8s.io/api:k8s.io/api \ | ||
131 | k8s.io/apimachinery:k8s.io/apimachinery \ | ||
132 | k8s.io/client-go:k8s.io/client-go \ | ||
133 | github.com/docker/buildx:github.com/docker/buildx \ | ||
134 | github.com/moby/sys/mount:github.com/moby/sys/mount//mount \ | ||
135 | github.com/moby/sys/mountinfo:github.com/moby/sys/mountinfo//mountinfo \ | ||
136 | github.com/moby/sys/signal:github.com/moby/sys/mountinfo//signal \ | ||
137 | github.com/moby/sys/symlink:github.com/moby/sys/symlink//symlink \ | ||
138 | " | ||
139 | |||
140 | do_compile:prepend() { | ||
141 | cd ${S}/src/import | ||
142 | # this moves all the fetches into the proper vendor structure | ||
143 | # expected for build | ||
144 | for s in ${sites}; do | ||
145 | site_dest=$(echo $s | cut -d: -f1) | ||
146 | site_source=$(echo $s | cut -d: -f2) | ||
147 | force_flag=$(echo $s | cut -d: -f3) | ||
148 | mkdir -p vendor.copy/$site_dest | ||
149 | if [ -n "$force_flag" ]; then | ||
150 | echo "[INFO] $site_dest: force copying .go files" | ||
151 | rm -rf vendor.copy/$site_dest | ||
152 | rsync -a --exclude='vendor/' --exclude='.git/' vendor.fetch/$site_source/ vendor.copy/$site_dest | ||
153 | else | ||
154 | [ -n "$(ls -A vendor.copy/$site_dest/*.go 2> /dev/null)" ] && { echo "[INFO] vendor.fetch/$site_source -> $site_dest: go copy skipped (files present)" ; true ; } || { echo "[INFO] $site_dest: copying .go files" ; rsync -a --exclude='vendor/' --exclude='.git/' vendor.fetch/$site_source/ vendor.copy/$site_dest ; } | ||
155 | fi | ||
156 | done | ||
157 | } \ No newline at end of file | ||