Skip to content

Commit

Permalink
Move prebuilt third party code to GCS
Browse files Browse the repository at this point in the history
Scanners prefer we host this code externally so these prebuilt binaries
are moved to our standard GCS bucket for distribution.

Fixes #309

Change-Id: Ib48d6f7173da46bae1c6d648891939a6e20a480c
  • Loading branch information
Kurt Kartaltepe authored and kurt-google committed Jan 9, 2023
1 parent c29fe3c commit fde9077
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 1,045 deletions.
1 change: 0 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ filegroup(
"//common/pkg/utils:all-srcs",
"//hack:all-srcs",
"//oracle:all-srcs",
"//third_party/runtime:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
Expand Down
22 changes: 22 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,28 @@ http_file(
urls = ["https://github.com/muttleyxd/clang-tools-static-binaries/releases/download/master-22538c65/clang-format-10_linux-amd64"],
)

http_archive(
name = "aio_runtime",
build_file_content = """
load("@rules_pkg//pkg:pkg.bzl", "pkg_tar")
pkg_tar(
name = "binaries_tar",
srcs = glob([
"*.so*",
"LICENSE.*",
]),
mode = "0755",
package_dir = "/lib/x86_64-linux-gnu",
visibility = ["@//oracle/build:__pkg__"],
)
""",
sha256 = "89aa0a7b53a70b2b1b4509b548b661e7da000a57ecf4f91210d722b1de59c435",
urls = [
"https://storage.googleapis.com/elcarro/prebuilt/runtime.tar.gz",
],
)

http_archive(
name = "oracle_instantclient",
build_file_content = """
Expand Down
2 changes: 1 addition & 1 deletion oracle/build/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ container_image(
ports = ["9161"],
symlinks = {"/monitoring_agent": "/monitoring"},
tars = [
"//third_party/runtime:binaries_tar",
"@aio_runtime//:binaries_tar",
"@oracle_instantclient//:binaries_tar",
],
)
Expand Down
26 changes: 0 additions & 26 deletions third_party/runtime/BUILD.bazel

This file was deleted.

514 changes: 0 additions & 514 deletions third_party/runtime/LICENSE.aio

This file was deleted.

503 changes: 0 additions & 503 deletions third_party/runtime/LICENSE.nsl

This file was deleted.

Binary file removed third_party/runtime/libaio.so.1
Binary file not shown.
Binary file removed third_party/runtime/libnsl.so.1
Binary file not shown.

0 comments on commit fde9077

Please sign in to comment.