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
5 changes: 3 additions & 2 deletions web/crux-ui/src/validations/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ const createOverlapTest = (
: true,
)

const portConfigRule = yup.mixed().when('portRanges', portRanges => {
if (!portRanges) {
// note: here yup passes reference as array
const portConfigRule = yup.mixed().when('portRanges', ([portRanges]) => {
if (!portRanges?.length) {
return yup
.array(
yup.object().shape({
Expand Down
Binary file added web/crux/assets/templates/mlflow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions web/crux/assets/templates/mlflow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "MLflow",
"description": "Open-source platform for the machine learning lifecycle.",
"technologies": ["Docker"],
"registries": [
{
"name": "Docker Hub MLflow",
"type": "hub",
"details": {
"imageNamePrefix": "adacotechjp"
}
}
],
"images": [
{
"name": "mlflow",
"registryName": "Docker Hub MLflow",
"image": "mlflow",
"tag": "2.4.0",
"config": {
"name": "mlflow",
"ports": [
{
"external": 5001,
"internal": 5000
}
],
"environment": [
{
"key": "TZ",
"value": "UTC"
}
],
"networks": ["mlflow"],
"networkMode": "bridge",
"restartPolicy": "unless-stopped",
"deploymentStrategy": "recreate"
}
}
]
}
5 changes: 3 additions & 2 deletions web/crux/src/domain/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@ const createOverlapTest = (
: true,
)

const portConfigRule = yup.mixed().when('portRanges', portRanges => {
if (!portRanges) {
// note: here yup passes reference as array
const portConfigRule = yup.mixed().when('portRanges', ([portRanges]) => {
if (!portRanges?.length) {
return yup
.array(
yup.object().shape({
Expand Down