unip-controller/tests/data/resources/pu-user1/apps/app2/exp-pipeline7.yaml
2025-04-15 20:56:15 +03:00

73 lines
2.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ============================================================
# Система: Единая библиотека, Центр ИИ НИУ ВШЭ
# Модуль: Тесты
# Авторы: Полежаев В.А., Хританков А.С.
# Дата создания: 2024 г.
# ============================================================
apiVersion: "unified-platform.cs.hse.ru/v1"
kind: ExperimentPipeline
metadata:
name: test-ep7
namespace: pu-user1-pa-app2
spec:
vars:
- name: input1
- name: input2
- name: input3
path: /use
mountFrom:
box:
name: user_data
boxPath: models
- name: output1
- name: output2
stages:
- name: stage1
image:
existingImageName: platform-reg.stratpro.hse.ru/pu-user1/test-model1:1.0.0-c25bfce
inputs:
- name: input1
- name: input2
- name: input3
outputs:
- name: output1
- name: output2
entryPoint:
cmd:
- bash
- -c
- >-
echo "input1 $UNIP_PIPELINE_INPUT1"
&& echo "ls -al input1"
&& ls -al "$UNIP_PIPELINE_INPUT1"
&& echo "input2 $UNIP_PIPELINE_INPUT2"
&& echo "cat input2"
&& cat "$UNIP_PIPELINE_INPUT2"
&& echo "input3 $UNIP_PIPELINE_INPUT3"
&& echo "ls -al input3"
&& ls -al "$UNIP_PIPELINE_INPUT3"
&& echo "ls -al input1 > output1/out.txt"
&& ls -al "$UNIP_PIPELINE_INPUT1" > "$UNIP_PIPELINE_OUTPUT1/out.txt"
&& echo "echo test> output2/data.txt"
&& echo "test\n" > "$UNIP_PIPELINE_OUTPUT2/data.txt"
&& echo "cat input2 >> output2/data.txt"
&& cat "$UNIP_PIPELINE_INPUT2" >> "$UNIP_PIPELINE_OUTPUT2/data.txt"
&& echo "output1 $UNIP_PIPELINE_OUTPUT1"
&& echo "cat output1/out.txt"
&& cat "$UNIP_PIPELINE_OUTPUT1/out.txt"
&& echo "output2 $UNIP_PIPELINE_OUTPUT2"
&& echo "cat output2/data.txt"
&& cat "$UNIP_PIPELINE_OUTPUT2/data.txt"
resourceLimits:
cpu: 500m
memory: 128M
env:
- name: VAR1
value: "100"
connectedBoxes:
- name: user_data
path: /data
default: true
mountS3Box:
s3BoxName: sized-default-s3-box