feat(lab): bind sealed component adapter images

This commit is contained in:
DCCONSTRUCTIONS
2026-08-31 19:19:47 +03:00
parent 35d99e40d5
commit 19c0bd70d0
4 changed files with 210 additions and 64 deletions
@@ -0,0 +1,35 @@
FROM ndc/mission-core-lab-v1-goose:sg3.2.0-cu117-v1
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /opt/nodedc/adapter
ARG NODEDC_SHARED_ADAPTER_SHA256
ARG NODEDC_COMPONENT_ADAPTER_SHA256
COPY portable_lab_v1_component_adapter.py ./portable_lab_v1_component_adapter.py
COPY run_portable_lab_v1_ddrnet_component.py ./run_portable_lab_v1_ddrnet_component.py
RUN test "$(sha256sum portable_lab_v1_component_adapter.py | cut -d' ' -f1)" = \
"${NODEDC_SHARED_ADAPTER_SHA256}" \
&& test "$(sha256sum run_portable_lab_v1_ddrnet_component.py | cut -d' ' -f1)" = \
"${NODEDC_COMPONENT_ADAPTER_SHA256}" \
&& chmod 0444 portable_lab_v1_component_adapter.py \
run_portable_lab_v1_ddrnet_component.py \
&& conda run --no-capture-output --name goose python -B -m py_compile \
portable_lab_v1_component_adapter.py \
run_portable_lab_v1_ddrnet_component.py \
&& rm -rf __pycache__
LABEL org.opencontainers.image.title="NODE.DC LAB V1 DDRNet adapter" \
com.nodedc.product="mission-core" \
com.nodedc.stack="observatory" \
com.nodedc.component="lab-v1-ddrnet" \
com.nodedc.authority="observation-only" \
com.nodedc.base-image.sha256="591cb382c099eeb05e7ec16e2371e0b2da54d2bb5c49ec0f4ac88dbf72b0f0cd" \
com.nodedc.shared-adapter.sha256="${NODEDC_SHARED_ADAPTER_SHA256}" \
com.nodedc.component-adapter.sha256="${NODEDC_COMPONENT_ADAPTER_SHA256}"
ENTRYPOINT ["conda", "run", "--no-capture-output", "--name", "goose", "python"]
CMD ["/opt/nodedc/adapter/run_portable_lab_v1_ddrnet_component.py"]
@@ -0,0 +1,37 @@
FROM nvcr.io/nvidia/tritonserver:26.06-py3@sha256:58df7489c3f2276f9591d500a012dee03e23d35543ce3c390b4c001e6bf90794
ENV HF_HUB_OFFLINE=1 \
TRANSFORMERS_OFFLINE=1 \
PYTHONNOUSERSITE=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /opt/nodedc/adapter
ARG NODEDC_SHARED_ADAPTER_SHA256
ARG NODEDC_COMPONENT_ADAPTER_SHA256
COPY portable_lab_v1_component_adapter.py ./portable_lab_v1_component_adapter.py
COPY run_portable_lab_v1_eomt_component.py ./run_portable_lab_v1_eomt_component.py
RUN test "$(sha256sum portable_lab_v1_component_adapter.py | cut -d' ' -f1)" = \
"${NODEDC_SHARED_ADAPTER_SHA256}" \
&& test "$(sha256sum run_portable_lab_v1_eomt_component.py | cut -d' ' -f1)" = \
"${NODEDC_COMPONENT_ADAPTER_SHA256}" \
&& chmod 0444 portable_lab_v1_component_adapter.py \
run_portable_lab_v1_eomt_component.py \
&& python3 -B -m py_compile portable_lab_v1_component_adapter.py \
run_portable_lab_v1_eomt_component.py \
&& rm -rf __pycache__
LABEL org.opencontainers.image.title="NODE.DC LAB V1 EoMT adapter" \
com.nodedc.product="mission-core" \
com.nodedc.stack="observatory" \
com.nodedc.component="lab-v1-eomt" \
com.nodedc.authority="observation-only" \
com.nodedc.base-image.sha256="58df7489c3f2276f9591d500a012dee03e23d35543ce3c390b4c001e6bf90794" \
com.nodedc.shared-adapter.sha256="${NODEDC_SHARED_ADAPTER_SHA256}" \
com.nodedc.component-adapter.sha256="${NODEDC_COMPONENT_ADAPTER_SHA256}"
ENTRYPOINT ["python3"]
CMD ["/opt/nodedc/adapter/run_portable_lab_v1_eomt_component.py"]