...
1load("@rules_apko//apko:defs.bzl", "apko_image")
2load("@rules_oci//oci:defs.bzl", "oci_image")
3load("@rules_pkg//:pkg.bzl", "pkg_tar")
4load("//hack/build/rules/container:index.bzl", "container_push")
5
6apko_image(
7 name = "vncnginx_base",
8 config = "apko.yaml",
9 contents = "@vncnginx_lock//:contents",
10 tag = "vncnginx_base:latest",
11 tags = ["requires-network"],
12)
13
14pkg_tar(
15 name = "nginx_symlinks",
16 extension = "tgz",
17 symlinks = {
18 "/var/log/nginx/access.log": "/dev/stdout",
19 "/var/log/nginx/error.log": "/dev/stderr",
20 },
21 tags = [
22 "manual",
23 "no-remote-cache",
24 ],
25)
26
27oci_image(
28 name = "vncnginx-proxy",
29 base = ":vncnginx_base",
30 tars = [
31 ":nginx_symlinks",
32 ],
33)
34
35container_push(
36 image = ":vncnginx-proxy",
37 image_name = "vncnginx",
38 repository_file = "//hack/build/rules/container:workloads-repo",
39 tags = [
40 "manual",
41 "no-remote-cache",
42 ],
43 visibility = ["//visibility:public"],
44)
View as plain text