From 4df7c4c20889e6981d3ea6f257fd24be2532c094 Mon Sep 17 00:00:00 2001 From: Anastasia Yasakova Date: Wed, 1 Feb 2023 18:46:12 +0200 Subject: [PATCH] Fix SiamMask and TransT serverless functions (#5658) While deploying I got the following error: ``` ./Miniconda3-latest-Linux-x86_64.sh: 438: [[: not found ./Miniconda3-latest-Linux-x86_64.sh: 444: [[: not found CondaFileIOError: '/root/miniconda3/pkgs/envs/*/env.txt'. [Errno 2] No such file or directory: '/root/miniconda3/pkgs/envs/*/env.txt' ``` --- CHANGELOG.md | 1 + serverless/pytorch/dschoerk/transt/nuclio/function-gpu.yaml | 2 +- serverless/pytorch/dschoerk/transt/nuclio/function.yaml | 2 +- serverless/pytorch/foolwood/siammask/nuclio/function-gpu.yaml | 2 +- serverless/pytorch/foolwood/siammask/nuclio/function.yaml | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa93150a..fce7cd2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix the type of the credentials parameter of make_client from the Python SDK - Reduced number of noisy information on ortho views for 3D canvas () - Clean up disk space after a project is removed () +- SiamMask and TransT serverless functions () ### Security - Fixed vulnerability with social authentication () diff --git a/serverless/pytorch/dschoerk/transt/nuclio/function-gpu.yaml b/serverless/pytorch/dschoerk/transt/nuclio/function-gpu.yaml index 93d228b5..ea727a6c 100644 --- a/serverless/pytorch/dschoerk/transt/nuclio/function-gpu.yaml +++ b/serverless/pytorch/dschoerk/transt/nuclio/function-gpu.yaml @@ -32,7 +32,7 @@ spec: value: apt update && apt install -y --no-install-recommends wget git ca-certificates libglib2.0-0 libgl1 && rm -rf /var/lib/apt/lists/* # libxrender1 libxext6 - kind: RUN value: wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && - chmod +x Miniconda3-latest-Linux-x86_64.sh && ./Miniconda3-latest-Linux-x86_64.sh -b && + chmod +x Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b && rm -f Miniconda3-latest-Linux-x86_64.sh - kind: WORKDIR value: /opt/nuclio diff --git a/serverless/pytorch/dschoerk/transt/nuclio/function.yaml b/serverless/pytorch/dschoerk/transt/nuclio/function.yaml index be0ca949..6835f187 100644 --- a/serverless/pytorch/dschoerk/transt/nuclio/function.yaml +++ b/serverless/pytorch/dschoerk/transt/nuclio/function.yaml @@ -32,7 +32,7 @@ spec: value: apt update && apt install -y --no-install-recommends wget git ca-certificates libglib2.0-0 libgl1 && rm -rf /var/lib/apt/lists/* # libxrender1 libxext6 - kind: RUN value: wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && - chmod +x Miniconda3-latest-Linux-x86_64.sh && ./Miniconda3-latest-Linux-x86_64.sh -b && + chmod +x Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b && rm -f Miniconda3-latest-Linux-x86_64.sh - kind: WORKDIR value: /opt/nuclio diff --git a/serverless/pytorch/foolwood/siammask/nuclio/function-gpu.yaml b/serverless/pytorch/foolwood/siammask/nuclio/function-gpu.yaml index 154c1b78..608b0b77 100644 --- a/serverless/pytorch/foolwood/siammask/nuclio/function-gpu.yaml +++ b/serverless/pytorch/foolwood/siammask/nuclio/function-gpu.yaml @@ -30,7 +30,7 @@ spec: value: apt update && apt install -y --no-install-recommends wget git ca-certificates libglib2.0-0 libsm6 libxrender1 libxext6 && rm -rf /var/lib/apt/lists/* - kind: RUN value: wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && - chmod +x Miniconda3-latest-Linux-x86_64.sh && ./Miniconda3-latest-Linux-x86_64.sh -b && + chmod +x Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b && rm -f Miniconda3-latest-Linux-x86_64.sh - kind: WORKDIR value: /opt/nuclio diff --git a/serverless/pytorch/foolwood/siammask/nuclio/function.yaml b/serverless/pytorch/foolwood/siammask/nuclio/function.yaml index 2df32550..57bc1f63 100644 --- a/serverless/pytorch/foolwood/siammask/nuclio/function.yaml +++ b/serverless/pytorch/foolwood/siammask/nuclio/function.yaml @@ -30,7 +30,7 @@ spec: value: apt update && apt install -y --no-install-recommends wget git ca-certificates libglib2.0-0 libsm6 libxrender1 libxext6 && rm -rf /var/lib/apt/lists/* - kind: RUN value: wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && - chmod +x Miniconda3-latest-Linux-x86_64.sh && ./Miniconda3-latest-Linux-x86_64.sh -b && + chmod +x Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b && rm -f Miniconda3-latest-Linux-x86_64.sh - kind: WORKDIR value: /opt/nuclio