neo-ai / neo-ai-dlr

Neo-AI-DLR is a common runtime for machine learning models compiled by AWS SageMaker Neo, TVM, or TreeLite.
Apache License 2.0
492 stars 106 forks source link

Use public.ecr.aws/ubuntu/ubuntu:18.04 for inf containers #431

Closed apivovarov closed 2 years ago

apivovarov commented 2 years ago

I noticed several cases where CI CodeBuild projects for main branch failed because dockerhub refused to serve docker pull ubuntu:18.04 with error toomanyrequests.

Instead of hub.docker.com we can try to use public.ecr.aws to get ubuntu:18.04 docker image.

This PR updates inf containers to use public.ecr.aws/ubuntu/ubuntu:18.04

Full error from CodeBuild for

Step 1/40 : FROM ubuntu:18.04 AS base

154 | 18.04: Pulling from library/ubuntu 155 | toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit 156 |   157 | [Container] 2022/04/12 03:08:11 Command did not exit successfully docker build --build-arg APP=xgboost -t xgboost-cpu -f container/Dockerfile.cpu . exit status 1 158 | [Container] 2022/04/12 03:08:11 Phase complete: BUILD State: FAILED 159 | [Container] 2022/04/12 03:08:11 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: docker build --build-arg APP=xgboost -t xgboost-cpu -f container/Dockerfile.cpu .. Reason: exit status 1