Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #20

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#
# A Dockerfile to get RUFUS running
#

# GCC 4.9 only available up to 16.04
FROM ubuntu:16.04

ARG DEBIAN_FRONTEND=noninteractive

COPY . /RUFUS

RUN set -ex; \
# Dependencies
BUILD_DEPS="cmake build-essential g++-4.9 zlib1g-dev libbz2-dev libbz2-dev liblzma-dev libncurses5-dev"; \
apt-get update; \
apt-get install -y software-properties-common; \
add-apt-repository ppa:ubuntu-toolchain-r/test; \
apt-get install -y python wget git bc libgomp1 $BUILD_DEPS; \
# Build
mkdir -p /RUFUS/bin; \
cd /RUFUS/bin; \
cmake ../ -DCMAKE_C_COMPILER=$(which gcc) -DCMAKE_CXX_COMPILER=$(which g++); \
make; \
# Cleanup
apt-get purge -y --auto-remove $BUILD_DEPS; \
apt-get clean; \
echo done

# Runtime tools

# Setup samtools 1.11
RUN set -ex; \
BUILD_DEPS="cmake build-essential libncurses5-dev zlib1g-dev libbz2-dev libbz2-dev liblzma-dev"; \
apt-get install -y $BUILD_DEPS; \
# Get samtools and build it
cd /; \
wget https://github.com/samtools/samtools/releases/download/1.11/samtools-1.11.tar.bz2; \
tar -xjf samtools-1.11.tar.bz2; \
cd samtools*; \
./configure; \
make; \
make install; \
cd /; \
rm -rf samtools*; \
# Cleanup
apt-get purge -y --auto-remove $BUILD_DEPS; \
apt-get clean; \
echo done

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ __Note:__ RUFUS is only supported on linux environments.

## Installing RUFUS

### With Docker
Build the Dockerfile using Docker.
```
docker build -t rufus .
```

### Manually
**1) Download**
```
git clone https://github.com/jandrewrfarrell/RUFUS.git
Expand Down
2 changes: 1 addition & 1 deletion src/RUFUS.interpret.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ string SamRead::createStructGenotype(int spot)
{
ss <<"\t" << ShittyGenotyper(ParAlt[i], ParRef[i]) << ":" << ParAlt[i]+ParRef[i] << ":" << ParRef[i] << ":" << ParAlt[i];
}
cout << "returning " << ss << endl;
cout << "returning " << ss.str() << endl;
return ss.str();
}
int SamRead::BreakPoint()
Expand Down