Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
load("@gazelle//:def.bzl", "gazelle")
load("@rules_apko//apko:defs.bzl", "apko_bazelrc", "apko_lock")

# gazelle:prefix github.com/continusec/htvend
gazelle(name = "gazelle")

# Generates .apko/.bazelrc and .apko/range.sh for partial package fetches.
Expand Down
4 changes: 4 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
load("//:deps.bzl", "go_dependencies")

# gazelle:repository_macro deps.bzl%go_dependencies
go_dependencies()
22 changes: 11 additions & 11 deletions deps.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@gazelle//:deps.bzl", "go_repository")

def go_deps():
def go_dependencies():
go_repository(
name = "cat_dario_mergo",
importpath = "dario.cat/mergo",
Expand Down Expand Up @@ -904,14 +904,14 @@ def go_deps():
go_repository(
name = "org_golang_x_crypto",
importpath = "golang.org/x/crypto",
sum = "h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM=",
version = "v0.40.0",
sum = "h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=",
version = "v0.45.0",
)
go_repository(
name = "org_golang_x_net",
importpath = "golang.org/x/net",
sum = "h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE=",
version = "v0.43.0",
sum = "h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY=",
version = "v0.47.0",
)
go_repository(
name = "org_golang_x_oauth2",
Expand All @@ -928,20 +928,20 @@ def go_deps():
go_repository(
name = "org_golang_x_sys",
importpath = "golang.org/x/sys",
sum = "h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=",
version = "v0.35.0",
sum = "h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=",
version = "v0.38.0",
)
go_repository(
name = "org_golang_x_term",
importpath = "golang.org/x/term",
sum = "h1:NuFncQrRcaRvVmgRkvM3j/F00gWIAlcmlB8ACEKmGIg=",
version = "v0.33.0",
sum = "h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=",
version = "v0.37.0",
)
go_repository(
name = "org_golang_x_text",
importpath = "golang.org/x/text",
sum = "h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=",
version = "v0.28.0",
sum = "h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM=",
version = "v0.31.0",
)
go_repository(
name = "org_golang_x_time",
Expand Down
2 changes: 1 addition & 1 deletion examples/alpine-img/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ htvend_lock(
htvend_image(
name = "image",
blobs = "@alpine_img_blobs//:blobs",
)
)
2 changes: 1 addition & 1 deletion examples/java-spring-img/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ htvend_lock(
htvend_image(
name = "image",
blobs = "@java_spring_img_blobs//:blobs",
)
)
2 changes: 1 addition & 1 deletion examples/python3-img/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ htvend_lock(
htvend_image(
name = "image",
blobs = "@python3_img_blobs//:blobs",
)
)
2 changes: 1 addition & 1 deletion examples/ubuntu-img/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ htvend_lock(
htvend_image(
name = "image",
blobs = "@ubuntu_img_blobs//:blobs",
)
)
8 changes: 4 additions & 4 deletions offline-img-builder/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@rules_apko//apko:defs.bzl", "apko_bazelrc", "apko_lock", "apko_image")
load("@rules_apko//apko:defs.bzl", "apko_bazelrc", "apko_image", "apko_lock")
load("@rules_img//img:convert.bzl", "image_manifest_from_oci_layout")
load("@rules_img//img:image.bzl", "image_manifest")
load("@rules_img//img:layer.bzl", "image_layer")
Expand All @@ -23,8 +23,8 @@ image_manifest_from_oci_layout(
name = "wolfi_img",
src = ":wolfi_base",
architecture = "arm64",
os = "linux",
layers = ["application/vnd.oci.image.layer.v1.tar+gzip"],
os = "linux",
)

# adds our binary on top
Expand All @@ -39,11 +39,11 @@ image_layer(
# final image
image_manifest(
name = "image",
base = ":wolfi_img",
layers = [":htvend_layer"],
base = ":wolfi_img",
entrypoint = [
"/usr/local/bin/htvend",
],
layers = [":htvend_layer"],
working_dir = "/workspace",
)

Expand Down
Loading