Coder Social home page Coder Social logo

sudo docker build . about hap.py HOT 12 CLOSED

illumina avatar illumina commented on August 24, 2024
sudo docker build .

from hap.py.

Comments (12)

pkrusche avatar pkrusche commented on August 24, 2024

I have not seen this before. Could you maybe paste the output from running /opt/hap.py/bin/test_haplotypes?

Thanks!

from hap.py.

avilella avatar avilella commented on August 24, 2024

This is at the sudo docker build . step, so no binaries exist outside docker:
From the Dockerfile steps:

# run hap.py installer in the image
WORKDIR /opt/hap.py-source
RUN HG19=/opt/hap.py-data/hg19.fa python install.py /opt/hap.py
WORKDIR /
RUN rm -rf /opt/hap.py-source

from hap.py.

pkrusche avatar pkrusche commented on August 24, 2024

Could you check inside the container? You can get a shell using

docker run -it -d <container name> bin/bash

To find the container name, the most recent one from here should be it:

sudo docker ps -a

Another possible fix might be to clear the Docker cache, restart the daemon, and build again? Sometimes Docker loses its network connection, and the Docker installation process needs access to the internet.

from hap.py.

avilella avatar avilella commented on August 24, 2024

I tried a couple more times, it consistently complains about Boost Unit tests FAILED!:

[...]
Testing Ksw performance for Haplotype comparison.

size    klib    klibg
128     39712.3 192837
192     142299  424609
256     265642  742147
320     418948  1.15442e+06
384     655086  1.64458e+06
448     211312  2.23166e+06
512     1.75529e+06     2.88694e+06


*** 2391 failures detected in test suite "Master Test Suite"
Boost Unit tests FAILED!
Traceback (most recent call last):
  File "install.py", line 315, in <module>
    main()
  File "install.py", line 311, in main
    test_haplotypes(source_dir, python_shebang, args)
  File "install.py", line 191, in test_haplotypes
    subprocess.check_call(to_run, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'cd /opt/hap.py && /opt/hap.py-source/src/sh/run_tests.sh' returned non-zero exit status 1
The command '/bin/sh -c HG19=/opt/hap.py-data/hg19.fa python install.py /opt/hap.py' returned a non-zero code: 1

Then running the container only shows the data and source directories, no bin:

~/hap.py$ sudo docker run -it 20b5053dd999 /bin/bash
root@f18ed958b5d4:/opt/hap.py-source# cd /opt
root@f18ed958b5d4:/opt# ls -l
total 8
drwxr-xr-x 2 root root 4096 Dec  1 11:08 hap.py-data
drwxr-xr-x 7 root root 4096 Dec  1 11:05 hap.py-source

from hap.py.

pkrusche avatar pkrusche commented on August 24, 2024

Does this file exist inside the image: /opt/hap.py-data/hg19.fa ? Also, is it a valid hg19 reference sequence, and is it indexed?

To see which unit tests fail, this should work inside the Docker image:

cd /opt
mkdir hap.py-build
cd hap.py-build
../hap.py-source/configure.sh Release
make
bin/test_haplotypes &> test.log

Could you send the full output from test.log?

Thanks!

from hap.py.

pkrusche avatar pkrusche commented on August 24, 2024

Also, which Docker version are you using?

I have re-run the Dockerfile from scratch here, and cannot reproduce the issue.

from hap.py.

avilella avatar avilella commented on August 24, 2024

Find below:

ls -l /opt/hap.py-data/hg19.fa*


-rw-r--r-- 1 root root 3157608038 Dec  1 11:08 /opt/hap.py-data/hg19.fa
-rw-r--r-- 1 root root        788 Dec  1 11:08 /opt/hap.py-data/hg19.fa.fai

On Tue, Dec 1, 2015 at 11:33 AM, Peter Krusche [email protected]
wrote:

Does this file exist inside the image: /opt/hap.py-data/hg19.fa ? Also,
is it a valid hg19 reference sequence, and is it indexed?

To see which unit tests fail, this should work inside the Docker image:

cd /opt
mkdir hap.py-build
cd hap.py-build
../hap.py-source/configure.sh Release
make
bin/test_haplotypes &> test.log

Could you send the full output from test.log?

Thanks!


Reply to this email directly or view it on GitHub
#2 (comment).

from hap.py.

avilella avatar avilella commented on August 24, 2024

This is running on an Ubuntu 14.04 machine, with docker 1.9.1:

avilella@gonzo:~/hap.py$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:        14.04
Codename:       trusty
avilella@gonzo:~/hap.py$ docker --version
Docker version 1.9.1, build a34a1d5

On Tue, Dec 1, 2015 at 1:07 PM, Albert Vilella [email protected] wrote:

Find below:

ls -l /opt/hap.py-data/hg19.fa*


-rw-r--r-- 1 root root 3157608038 Dec  1 11:08 /opt/hap.py-data/hg19.fa
-rw-r--r-- 1 root root        788 Dec  1 11:08 /opt/hap.py-data/hg19.fa.fai

On Tue, Dec 1, 2015 at 11:33 AM, Peter Krusche [email protected]
wrote:

Does this file exist inside the image: /opt/hap.py-data/hg19.fa ? Also,
is it a valid hg19 reference sequence, and is it indexed?

To see which unit tests fail, this should work inside the Docker image:

cd /opt
mkdir hap.py-build
cd hap.py-build
../hap.py-source/configure.sh Release
make
bin/test_haplotypes &> test.log

Could you send the full output from test.log?

Thanks!


Reply to this email directly or view it on GitHub
#2 (comment).

from hap.py.

pkrusche avatar pkrusche commented on August 24, 2024

I have tried with this version of Docker (on Ubuntu 15.04), and was not able to reproduce the error.

The two things that I think are worth trying would be:

  • re-run the Docker build with a fresh clone of the repository (clearing out all containers / images before)
  • using the configure / make commands above inside the Docker image, find out which tests exactly are failing.

from hap.py.

avilella avatar avilella commented on August 24, 2024

Attached log file.

On Tue, Dec 1, 2015 at 1:52 PM, Peter Krusche [email protected]
wrote:

I have tried with this version of Docker (on Ubuntu 15.04), and was not
able to reproduce the error.

The two things that I think are worth trying would be:

  • re-run the Docker build with a fresh clone of the repository
    (clearing out all containers / images before)
  • using the configure / make commands above inside the Docker image,
    find out which tests exactly are failing.


Reply to this email directly or view it on GitHub
#2 (comment).

from hap.py.

pkrusche avatar pkrusche commented on August 24, 2024

The failure is unrelated to the reference sequence, but hard to diagnose without debugging it. Let's see if the automated build in #3 works out.

from hap.py.

pkrusche avatar pkrusche commented on August 24, 2024

Ok, the automated build is now available at https://hub.docker.com/r/pkrusche/hap.py/

To see if the tests are still failing, you can try this:

sudo docker pull pkrusche/hap.py
cd <hap.py-checkout-dir>
sudo docker run -it -v `pwd`:/opt/hap.py-source pkrusche/hap.py bin/bash
# ... shell is now in Docker container
cd /opt/hap.py
export HG19=/opt/hap.py-data/hg19.fa
/opt/hap.py-source/src/sh/run_tests.sh

... for me, this seems to work fine.

from hap.py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.