acoustic-van-30942
09/03/2023, 5:56 AM~/.metaflowconfig/config.json in Lambdas.
I also tried setting the config values as env variables using os.environ but that didn't seem to work either. Any advice?limited-tomato-18674
09/03/2023, 6:14 AMacoustic-van-30942
09/03/2023, 6:46 AMacoustic-van-30942
09/03/2023, 7:34 AM/tmp/config.json and then set METAFLOW_HOME as /tmp. But it's still using local metaflow instead of the metadata service endpoint.ambitious-bird-15073
09/04/2023, 1:49 AMMETAFLOW_HOME to /tmp/config.json. I have a Docker image for my CI/CD tool that runs in PRs and I set mine to ENV METAFLOW_HOME="/root/.metaflowconfig" to get it to work.acoustic-van-30942
09/04/2023, 2:05 AMacoustic-van-30942
09/04/2023, 2:58 AMambitious-bird-15073
09/04/2023, 3:31 AMpublic.ecr.aws/lambda/python:3.9?acoustic-van-30942
09/04/2023, 3:31 AMalpineambitious-bird-15073
09/04/2023, 3:39 AMENV METAFLOW_HOME="/root/.config" instead?acoustic-van-30942
09/04/2023, 3:39 AMroot . I think only tmp is allowed.ambitious-bird-15073
09/04/2023, 3:41 AMacoustic-van-30942
09/04/2023, 3:41 AMacoustic-van-30942
09/04/2023, 3:42 AMenv variables in the lambda config would work?acoustic-van-30942
09/04/2023, 5:05 AM/tmp folder instead of my lambda's working dir?
"errorMessage": "[Errno 30] Read-only file system: '/home/app/metaflow.s3.w1lswxfk'",
"errorType": "OSError",ambitious-bird-15073
09/04/2023, 5:36 AMacoustic-van-30942
09/05/2023, 12:50 AMCONDA_PKGS_DIRS and CONDA_ENVS_PATH to /tmp , but still getting this error. It's still creating the cache files to /home/sbx_user , which isn't writeable.
Creating Conda environment 'torch_model'...
CondaError: Error encountered while attempting to create cache directory.
Directory: /home/sbx_user1051/.cache/conda/notices
Exception: [Errno 30] Read-only file system: '/home/sbx_user1051'ambitious-bird-15073
09/05/2023, 1:14 AMENV CONDA_DIR /opt/conda
ENV PATH=$CONDA_DIR/bin:$PATH
Gotta make sure that it downloads it to the CONDA_DIR:
RUN apt-get update && \
apt-get install -y \
unzip \
curl \
jq \
git \
wget \
&& apt-get clean \
&& curl "<https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip>" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install \
&& rm -rf awscliv2.zip \
&& rm -rf /var/lib/apt/lists/* \
&& wget --quiet <https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh> -O ~/miniconda.sh \
&& /bin/bash ~/miniconda.sh -b -p /opt/condaacoustic-van-30942
09/05/2023, 1:14 AM