Unable to configure the repository base url for v0.13.1 #2480
Unanswered
dummybot88
asked this question in
Q&A
Replies: 1 comment
-
hey @dummybot88 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I'm currently unable to understand how to configure repository base url, so that whenever the bento service save() is called, the bento should get saved to S3 storage from AWS linux2 Ec2 instance.
Initially, I have configured my application to use bentoml
v0.10.0
, where I was able to configure the repository url by CLI commandbentoml config set yatai_service.repository_base_url=s3://testingbentoml/
and run docker container for yatai serverdocker run -d -p 3000:3000 -p 50051:50051 \ bentoml/yatai-service
and then all my application's bento will go and get stored in the S3 bucket.
But with the latest bentoml version i.e.
v0.13.1,
I'm unable to achieve the same. I have configured a yml file with the below details:yatai: repository: type: s3 s3: url: s3://testingbentoml/
and then export the config file as
export BENTOML_CONFIG=/home/ec2-user/default_bentoml.yml
and then ran the docker container for yatai server. But no luck. I end up getting the below error:Could you please help me out in setting the bentoml in AWS linux2 ec2-instance that can save the bundle to S3?
Here is my Ec2 configuration:
Amazon Linux2 Ec2 Instance
Python Version : 3.8.5
Bentoml Version: 0.13.1
Java : 11
aws version: aws-cli/1.18.147 Python/2.7.18 Linux/4.14.275-207.503.amzn2.x86_64 botocore/1.18.6
PS: Surprisingly, when I simply ran the bentoml installation and configured the yml file in my Mac, even without running the yatai server docker container, I was able to list all the bundles that are previous available in the configured s3 bucket by executing the command
bentoml list
and was able to save the bundle directly on to the S3 storage. I have added my Mac configuration for reference.Mac Conf:
Python version : 3.8.3
Bentoml version: 0.13.1
Java: 11
aws version : aws-cli/2.0.49 Python/3.7.4 Darwin/21.2.0 exe/x86_64
Beta Was this translation helpful? Give feedback.
All reactions