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.

Building DockerFile fails at Stage 'Install CLIF binary''

See original GitHub issue

**Have you checked the FAQ? https://github.com/google/deepvariant/blob/r1.2/docs/FAQ.md**: yes

Describe the issue: I am building the deep variant Dockerfile (v1.2) off the Databricks Runtime base image (Ubuntu 18.04). Run into issues at Stage ‘Install CLIF binary’, I get the error,

ModuleNotFoundError: No module named 'apt_pkg'

I see in the build-prereq.sh script this comment,

Build clif binary from scratch. Might not be ideal because it installs a bunch of dependencies, but this works fine when we used this in a Dockerfile because we don't do build-prereq.sh in the final image.

Please advise how to get around this when building your own Docker Image

Cheers,

William

Setup

  • Operating system: Ununtu 18.04
  • DeepVariant version: 1.2
  • Installation method (Docker, built from source, etc.): Docker
  • Type of data: (sequencing instrument, reference genome, anything special that is unlike the case studies?)

Steps to reproduce:

  • Command:
  • Error trace: (if applicable)

Does the quick start test work on your system? Please test with https://github.com/google/deepvariant/blob/r0.10/docs/deepvariant-quick-start.md. Is there any way to reproduce the issue by using the quick start?

Any additional context:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
williambrandlercommented, Aug 10, 2021

Not at this time. Are there specific dependencies in Ubuntu 20.04 that are required? Or an older version of DV that has been tested on 18.04?

Would also like some clarification on this statement to help me figure out what is going on,

Build clif binary from scratch. Might not be ideal because it installs a bunch of dependencies, but this works fine when we used this in a Dockerfile because we don't do build-prereq.sh in the final image.

0reactions
pichuancommented, Aug 19, 2021

@williambrandler

The bazel: command not found line is likely ok because build-prereq.sh will plan to install bazel after that line.

curl: command not found - this might have happened here:

https://github.com/google/deepvariant/blob/r1.2/build-prereq.sh#L75

I’m surprised that at this point there isn’t curl, because it was installed here:

https://github.com/google/deepvariant/blob/r1.2/build-prereq.sh#L54

You can remove the > /dev/null from that line and see if it was installed currently.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker build command fails on yarn install step with error "gyp ...
I'm trying to follow the getting-started tutorial on a Raspberry Pi 4 with Debian 10 installed, but I'm running into some issues.
Read more >
python - Why I'm getting this error while building docker image?
Show activity on this post. I got the following error while building a docker image by "docker-compose build". ERROR: Couldn't connect to  ......
Read more >
Best practices for writing Dockerfiles - Docker Documentation
Best practices for writing Dockerfiles. This document covers recommended best practices and methods for building efficient images.
Read more >
9 Common Dockerfile Mistakes - Runnablog
9 Common Dockerfile Mistakes · 1. Running apt-get · 2. Using ADD instead of COPY · 3. Adding your entire application directory in...
Read more >
How to build tiny container images | Enable Sysadmin - Red Hat
Start without the cruft: Add what you need to a blank image. As friendly and easy-to-use as the Dockerfile is, there are tools...
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