Skip to content

Create Docker file#1

Open
nselem wants to merge 1 commit intoWeitzGroup:masterfrom
nselem:patch-1
Open

Create Docker file#1
nselem wants to merge 1 commit intoWeitzGroup:masterfrom
nselem:patch-1

Conversation

@nselem
Copy link

@nselem nselem commented Aug 11, 2016

I want to use the scripts but formatdb is no longer available on new blast because is an older blast version. Docker is a way to package sripts and applications with their dependencies in order that they can still running (https://www.docker.com/). On this docker file I packaged Bioperl, blast2 (older blast) and your scripts. To use it you need to install docker as explained on https://docs.docker.com/engine/installation/linux/ Once docker is installed can be used in multiple applicactions. After docker installation genomic fluidity app must be build: docker build -t genomicfluidity . and run docker run -t -i -v /mygenomesDirectory:/usr/src/fluidity genomicfluidity /bin/bash`

And can be used.
It works fine for me on NCBI genomes, and may be useful for other people who has docker.
Unfortunately it doesn't work fine with RAST genomes gbk format.

I want to use the scripts but formatdb is no longer available on new blast because is an older blast version. Docker is a way to package sripts and applications with their dependencies in order that they can still running (https://www.docker.com/). On this docker file I packaged Bioperl, blast2 (older blast) and your scripts.  To use it you need to install docker as explained on ` https://docs.docker.com/engine/installation/linux/   Once docker is installed can be used in multiple applicactions.
After docker installation genomic fluidity app must be build:
`docker build -t genomicfluidity . `  
and run 
`docker run -t -i -v /mygenomesDirectory:/usr/src/fluidity genomicfluidity /bin/bash`

And can be used.
It works fine for me on NCBI genomes, and may be useful for other people who has docker.
Unfortunately it doesn't work fine with RAST genomes gbk format.
@spencer411
Copy link

spencer411 commented Sep 28, 2021

Can you explain in more detail as to how to do this. I am on a linux server that has docker preinstalled.

So when I run: docker build -t genomicfluidity

It just says ""docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage: docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile"

Am I missing a step? Do I need to download the file from somewhere?

@nselem
Copy link
Author

nselem commented Sep 29, 2021

Hello
You need to download this file https://github.com/WeitzGroup/Genomic-fluidity-scripts/pull/1/files (The WeitsGroup have not accepted the pull request yet)
Once you download the file, this file needs to be saved as "Dockerfile" this is a reserved name that Docker needs. Then place yourself in the directory where the docker file is located, and then run : docker build -t genomicfluidity . (including the dot at the end. Now you will have a docker-environment called genomicfluidity. Now to open this environment run at your terminal docker run -t -i -v /mygenomesDirectory:/usr/src/fluidity genomicfluidity /bin/bash You need to replace /mygenomesDirectory for your local directory where you have the genomes that you want to process. Please let me know if you need further help

@spencer411
Copy link

When I run:

docker build -t genomicfluidity .

it just hangs. I am definitely in the folder with the Dockerfile. Could it just be taking a long time?

@nselem
Copy link
Author

nselem commented Sep 30, 2021

Well, it takes a long time, but what you could do, is trying to comment on several lines of the docker file, just to test if it is working. Dockerfile is sequentially read, so you can add a number sign (#) at the beginning of every line except the first one, and see what happened. If you cant send an email and perhaps we can try a zoom meeting. I also think that with the docker file perhaps server admin can also help you?
Nelly

@spencer411
Copy link

spencer411 commented Oct 1, 2021

I am actually trying to run this directly on my mac through the docker desktop, and now get the following error when I attempt to build:

#6 3.778 Entering bioperl-live-master
#6 3.794 ! The distribution doesn't have a proper Makefile.PL/Build.PL See /root/.cpanm/work/1633090438.7/build.log for details.
#6 3.795 Configuring bioperl-live-master ... N/A

executor failed running [/bin/sh -c cpanm -v https://github.com/bioperl/bioperl-live/archive/master.tar.gz]: exit code: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants