Skip to content
Draft

WIP #137

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
24 changes: 19 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -797,11 +797,25 @@ RUN dnf install -y clang gcc-c++ && dnf clean all \
&& mkdir -p /usr/lib/llvm-${CLANG_VERSION}/lib \
&& ln -sf /usr/lib/clang /usr/lib/llvm-${CLANG_VERSION}/lib/clang

# The `manylinux` image comes with multiple Python versions. We'll use
# 3.10 to match our main build environment. Set up symlinks so `python`
# and `python3` point to Python 3.10.
RUN ln -sf /opt/python/cp310-cp310/bin/python /usr/local/bin/python \
&& ln -sf /opt/python/cp310-cp310/bin/python /usr/local/bin/python3 \
# The `manylinux` image comes with multiple Python versions, but all
# of them are built `--disable-shared` with no `libpython` installed,
# and embedding Python — which building `reboot_native.node` does —
# needs `-lpython3.10` at link time. Point `python` and `python3` at a
# python-build-standalone CPython 3.10 instead, which ships
# `libpython3.10.so`; it is the same build
# `reboot/nodejs/prepare_environment.sh` uses. `pip` and `pip3` stay
# on the manylinux 3.10, whose layout `auditwheel` and the wheel
# builds expect, so `python3` and `pip` deliberately name different
# installations.
RUN set -e; \
if [ "${TARGETARCH}" = "amd64" ]; then ARCH=x86_64; else ARCH=aarch64; fi; \
mkdir /tmp/python-build-standalone; \
wget -qO- "https://github.com/indygreg/python-build-standalone/releases/download/20240814/cpython-3.10.14+20240814-${ARCH}-unknown-linux-gnu-install_only.tar.gz" \
| tar -xzf - -C /tmp/python-build-standalone \
&& mv /tmp/python-build-standalone/python /opt/reboot-python \
&& rmdir /tmp/python-build-standalone \
&& ln -sf /opt/reboot-python/bin/python3 /usr/local/bin/python \
&& ln -sf /opt/reboot-python/bin/python3 /usr/local/bin/python3 \
&& ln -sf /opt/python/cp310-cp310/bin/pip /usr/local/bin/pip \
&& ln -sf /opt/python/cp310-cp310/bin/pip /usr/local/bin/pip3

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"jsdom": "^26.1.0",
"js-sha1": "0.7.0",
"esbuild": "^0.28.0",
"pyright": "1.1.413",
"express": "^5.1.0",
"lru-cache-idb": "^0.5.2",
"react": "19.2.1",
Expand Down
45 changes: 28 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 67 additions & 0 deletions rbt/dashboard/v1/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
load(
"@com_github_reboot_dev_reboot//reboot:rules.bzl",
"js_proto_library",
"js_reboot_library",
"js_reboot_react_library",
"py_reboot_library",
)
load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library")

proto_library(
name = "dashboard_proto",
srcs = [
":dashboard.proto",
],
visibility = ["//visibility:public"],
deps = [
"@com_github_reboot_dev_reboot//rbt/v1alpha1:options_proto",
],
)

py_reboot_library(
name = "dashboard_py_reboot",
proto = "dashboard.proto",
proto_library = ":dashboard_proto",
visibility = ["//visibility:public"],
)

js_proto_library(
name = "dashboard_js_proto",
package_json = ":package.json",
proto = "dashboard.proto",
proto_deps = [
":dashboard_proto",
# ISSUE(https://github.com/reboot-dev/mono/issues/3218): Until we can
# use `create_protoc_plugin_rule` we need to repeat the dependencies of
# the `proto_libraries` here.
"@com_github_reboot_dev_reboot//rbt/v1alpha1:options_proto",
"@com_google_protobuf//:descriptor_proto",
],
visibility = ["//visibility:public"],
)

js_reboot_library(
name = "dashboard_js_reboot",
srcs = [
":dashboard_proto",
],
proto = "dashboard.proto",
visibility = ["//visibility:public"],
deps = [
":dashboard_js_proto",
],
)

js_reboot_react_library(
name = "dashboard_js_reboot_react",
srcs = [
":dashboard_js_proto",
],
proto = "dashboard.proto",
proto_deps = [
":dashboard_proto",
"@com_github_reboot_dev_reboot//rbt/v1alpha1:options_proto",
"@com_google_protobuf//:descriptor_proto",
],
visibility = ["//visibility:public"],
)
Loading
Loading