Skip to content

Commit

Permalink
repo: Move examples to own repo (envoyproxy#35471)
Browse files Browse the repository at this point in the history
fix envoyproxy#32737

---------

Signed-off-by: Ryan Northey <[email protected]>

Signed-off-by: phlax <[email protected]>
  • Loading branch information
phlax committed Sep 20, 2024
1 parent 9dd7d28 commit d959662
Show file tree
Hide file tree
Showing 421 changed files with 41 additions and 33,366 deletions.
243 changes: 0 additions & 243 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,6 @@ updates:
#
# Please ensure any new ones are added here, and any that are removed are removed here also.

- package-ecosystem: "pip"
directory: "/examples/grpc-bridge/client"
groups:
examples-grpc-bridge:
patterns:
- "*"
schedule:
interval: "daily"
time: "06:00"

- package-ecosystem: "pip"
directory: "/examples/cache"
groups:
examples-cache:
patterns:
- "*"
schedule:
interval: "daily"
time: "06:00"

- package-ecosystem: "pip"
directory: "/examples/shared/python/aiohttp"
groups:
examples-shared-python:
patterns:
- "*"
schedule:
interval: "daily"
time: "06:00"

- package-ecosystem: "pip"
directory: "/examples/shared/python/postgres"
groups:
examples-postgres:
patterns:
- "*"
schedule:
interval: "daily"
time: "06:00"

- package-ecosystem: "pip"
directory: "/tools/base"
open-pull-requests-limit: 20
Expand All @@ -68,153 +28,6 @@ updates:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/ext_authz"
groups:
examples-ext-authz:
patterns:
- "*"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/fault-injection"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/golang-network"
groups:
examples-golang-network:
patterns:
- "*"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/grpc-bridge"
groups:
examples-grpc-bridge:
patterns:
- "*"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/kafka"
groups:
examples-kafka:
patterns:
- "*"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/local_ratelimit"
groups:
examples-local-ratelimit:
patterns:
- "*"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/mysql"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/opentelemetry"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/redis"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/shared/build"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/shared/echo"
schedule:
interval: daily
time: "06:00"

# TODO(phlax): just use above
- package-ecosystem: "docker"
directory: "/examples/shared/echo2"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/shared/golang"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/shared/jaeger"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/shared/node"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/shared/postgres"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/shared/python"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/shared/websocket"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/skywalking"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/udp"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "docker"
directory: "/examples/zipkin"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down Expand Up @@ -342,59 +155,3 @@ updates:
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "gomod"
directory: "/examples/ext_authz/auth/grpc-service"
groups:
examples-ext-authz:
patterns:
- "*"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "gomod"
directory: "/examples/load-reporting-service"
groups:
examples-load-reporting:
patterns:
- "*"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "gomod"
directory: "/examples/grpc-bridge/server"
groups:
examples-grpc-bridge:
patterns:
- "*"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "gomod"
directory: "/examples/golang-http/simple"
groups:
examples-golang-http:
patterns:
- "*"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "gomod"
directory: "/examples/golang-network/simple"
groups:
examples-golang-network:
patterns:
- "*"
schedule:
interval: daily
time: "06:00"

- package-ecosystem: "npm"
directory: "/examples/single-page-app/ui"
schedule:
interval: daily
time: "06:00"
1 change: 0 additions & 1 deletion .github/workflows/verify-requirements.in

This file was deleted.

7 changes: 0 additions & 7 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@ package_group(
],
)

package_group(
name = "examples_library",
packages = [
"//examples/...",
],
)

package_group(
name = "mobile_library",
packages = [
Expand Down
2 changes: 2 additions & 0 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ def envoy_dependencies(skip_targets = []):
external_http_archive("bazel_toolchains")
external_http_archive("bazel_compdb")
external_http_archive("envoy_build_tools")
external_http_archive(name = "envoy_examples")

_com_github_maxmind_libmaxminddb()

external_http_archive("rules_pkg")
Expand Down
14 changes: 14 additions & 0 deletions bazel/repository_locations.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,20 @@ REPOSITORY_LOCATIONS_SPEC = dict(
urls = ["https://github.com/bazelbuild/buildtools/archive/v{version}.tar.gz"],
use_category = ["test_only"],
),
envoy_examples = dict(
project_name = "envoy_examples",
project_desc = "Envoy proxy examples",
project_url = "https://github.com/envoyproxy/examples",
version = "ce2d7d0e5fa530734646477a622ea5ffe69d57cf",
sha256 = "7f5187f3d1485eb457bb6cd3ada47089226db031164a1f03285130b8d0f4d024",
strip_prefix = "examples-{version}",
urls = ["https://github.com/envoyproxy/examples/archive/{version}.tar.gz"],
use_category = ["test_only"],
release_date = "2024-09-20",
cpe = "N/A",
license = "Apache-2.0",
license_url = "https://github.com/envoyproxy/examples/blob/{version}/LICENSE",
),
rules_fuzzing = dict(
project_name = "Fuzzing Rules for Bazel",
project_desc = "Bazel rules for fuzz tests",
Expand Down
18 changes: 7 additions & 11 deletions ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,6 @@ function bazel_contrib_binary_build() {
bazel_binary_build "$1" "${ENVOY_CONTRIB_BUILD_TARGET}" "${ENVOY_CONTRIB_BUILD_DEBUG_INFORMATION}" envoy-contrib
}

function run_ci_verify () {
export DOCKER_NO_PULL=1
export DOCKER_RMI_CLEANUP=1
# This is set to simulate an environment where users have shared home drives protected
# by a strong umask (ie only group readable by default).
umask 027
chmod -R o-rwx examples/
"${ENVOY_SRCDIR}/ci/verify_examples.sh" "${@}"
}

CI_TARGET=$1
shift

Expand Down Expand Up @@ -976,7 +966,13 @@ case $CI_TARGET in
;;

verify_examples)
run_ci_verify "*" "win32-front-proxy|shared"
DEV_CONTAINER_ID=$(docker inspect --format='{{.Id}}' envoyproxy/envoy:dev)
bazel run --config=ci \
--action_env="DEV_CONTAINER_ID=${DEV_CONTAINER_ID}" \
--host_action_env="DEV_CONTAINER_ID=${DEV_CONTAINER_ID}" \
--sandbox_writable_path="${HOME}/.docker/" \
--sandbox_writable_path="$HOME" \
@envoy_examples//:verify_examples
;;

verify.trigger)
Expand Down
Loading

0 comments on commit d959662

Please sign in to comment.