-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
1,990 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
examples | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
common --noenable_bzlmod | ||
common --enable_workspace | ||
|
||
build:ci --verbose_failures --show_timestamps --announce_rc | ||
build:ci --noshow_progress --noshow_loading_progress --color=yes | ||
build:ci --define image.tag=ci | ||
|
||
test:ci --keep_going | ||
# Only show failing test targets to avoid scrolling past a long list of | ||
# successful tests in order to see error logs. | ||
test:ci --test_summary=terse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bazel-bin | ||
bazel-out | ||
bazel-rules_oci | ||
bazel-testlogs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
load("@bazel_gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary") | ||
|
||
# gazelle:prefix github.com/DataDog/rules_oci/examples | ||
# gazelle:go_naming_convention go_default_library | ||
# gazelle:lang go | ||
|
||
gazelle( | ||
name = "gazelle", | ||
gazelle = ":gazelle-binary", | ||
) | ||
|
||
gazelle_binary( | ||
name = "gazelle-binary", | ||
languages = DEFAULT_LANGUAGES, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
workspace(name = "examples") | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
################################################################################ | ||
# rules_go | ||
################################################################################ | ||
|
||
http_archive( | ||
name = "io_bazel_rules_go", | ||
sha256 = "f74c98d6df55217a36859c74b460e774abc0410a47cc100d822be34d5f990f16", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.47.1/rules_go-v0.47.1.zip", | ||
"https://github.com/bazelbuild/rules_go/releases/download/v0.47.1/rules_go-v0.47.1.zip", | ||
], | ||
) | ||
|
||
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") | ||
|
||
go_rules_dependencies() | ||
|
||
go_register_toolchains(version = "1.22.5") | ||
|
||
################################################################################ | ||
# rules_oci | ||
################################################################################ | ||
|
||
# Note: In this example, we use local_repository here, but in a real project, | ||
# you'll want to use http_archive to fetch the rules_oci repository | ||
local_repository( | ||
name = "com_github_datadog_rules_oci", | ||
path = "..", | ||
) | ||
|
||
load("@com_github_datadog_rules_oci//oci/repositories:01_direct_dependencies.bzl", "rules_oci_direct_dependencies") | ||
|
||
rules_oci_direct_dependencies() | ||
|
||
load("@com_github_datadog_rules_oci//oci/repositories:02_toolchains.bzl", "rules_oci_toolchains") | ||
|
||
rules_oci_toolchains( | ||
# Only set this if you have not already registered a go toolchain | ||
register_go_toolchain_version = None, | ||
|
||
# Only set this if you have not already registered a rust toolchain | ||
register_rust_toolchain_version = "1.82.0", | ||
) | ||
|
||
load( | ||
"@com_github_datadog_rules_oci//oci/repositories:03_third_party_go_and_rust_libraries.bzl", | ||
"rules_oci_third_party_go_and_rust_libraries", | ||
) | ||
|
||
rules_oci_third_party_go_and_rust_libraries() | ||
|
||
load("@com_github_datadog_rules_oci//oci/repositories:pull.bzl", "oci_pull") | ||
|
||
oci_pull( | ||
name = "ubuntu", | ||
# "noble" tag as of 2024-12-30 | ||
digest = "sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab", | ||
registry = "mirror.gcr.io", | ||
repository = "library/ubuntu", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/private/var/tmp/_bazel_brian.myers/9251ee5a9427acca66f6463298030490/execroot/examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.