question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to build a CPU based image

See original GitHub issue

Please have a look at FAQ’s and Troubleshooting guide, your query may be already addressed.

Your issue may already be reported! Please search on the issue tracker before creating one.

Context

I was trying to build a CPU based image but running the ./build_image.sh script leads to the following error:

Screenshot from 2022-05-23 11-29-01

I solved by adding RUN apt-get update && apt-get install -y gnupg2

  • Operating System and version: Ubuntu 22.04 LTS

Your Environment

  • Installed using source? [yes/no]:
  • Are you planning to deploy it using docker container? [yes/no]: yes
  • Is it a CPU or GPU environment?: CPU
  • Using a default/custom handler? [If possible upload/share custom handler/model]:default
  • What kind of model is it e.g. vision, text, audio?: text
  • Are you planning to use local models from model-store or public url being used e.g. from S3 bucket etc.? [If public url then provide link.]:
  • Provide config.properties, logs [ts.log] and parameters used for model registration/update APIs:
  • Link to your project [if any]:

Expected Behavior

Current Behavior

Possible Solution

Add RUN apt-get update && apt-get install -y gnupg2 as first line of Dockerfile.

Steps to Reproduce

  1. clone the repository
  2. run cd serve/docker
  3. run ./build_image.sh

Failure Logs [if any]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
BeMarinocommented, May 24, 2022

I tried to follow your suggestion, specifically i used the ubuntu:22.04 as base image but unfortunately the issue is still present.

1reaction
pjerryhucommented, Jun 8, 2022

@msaroufim - yes.

I was able to finally resolve this issue by following @BeMarinoGit 's solution on adding RUN apt-get update && apt-get install -y gnupg2 at line 25 in Dockerfile

Read more comments on GitHub >

github_iconTop Results From Across the Web

PC Won't POST? 4 Ways to Fix It - MakeUseOf
Incompatible components are one of the major reasons behind POST errors. Check if parts such as the RAM, motherboard, CPU, and graphics card...
Read more >
The Top 10 Computer Build Errors - How to troubleshoot a ...
Learn about the top 10 computer building errors with a Computer Engineer, in only 10 minutes!! A no-nonsense, straightforward video on the ...
Read more >
What to Do When Your Computer Screen Won't Show a Picture
Has your computer screen stopped working? Here are some troubleshooting steps to take if your monitor fails to display a picture.
Read more >
Five common PC problems and how to fix them - Newegg
When a computer turns on but doesn't show anything on the monitor, it means that either the monitor is faulty, or that the...
Read more >
python 3.x - Unable to use GPU from Docker. Building custom ...
Building custom docker container image on top of tensorflow GPU ... Model is loaded on CPU instead of GPU and inference in run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found