Skip to content

Commit 4aa9c5c

Browse files
Initial commit.
0 parents  commit 4aa9c5c

File tree

6 files changed

+60
-0
lines changed

6 files changed

+60
-0
lines changed

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM debian:jessie
2+
MAINTAINER Sam Minot <sam@onecodex.com>
3+
4+
# Update and install Python
5+
RUN apt-get update -y
6+
RUN apt-get install -y python python-pip
7+
RUN apt-get install -y git
8+
9+
# Install Bats
10+
RUN git clone https://github.com/sstephenson/bats.git /tmp/bats && \
11+
cd /tmp/bats && ./install.sh /usr/local
12+
13+
# Install requirements.txt (One Codex CLI)
14+
ADD requirements.txt /tmp/requirements.txt
15+
RUN pip install -r /tmp/requirements.txt && rm /tmp/requirements.txt
16+
17+
# Add binaries
18+
ADD bin/fastq-dump /usr/local/bin/fastq-dump
19+
20+
# Integration tests
21+
ADD test /tmp/test
22+
RUN bats /tmp/test

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
DOCKER = docker
2+
REPO = quay.io/refgenomics/docker-onecodex-cli
3+
4+
TAG = $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
5+
ifeq ($(TAG), master)
6+
TAG = latest
7+
else ifeq ($(TAG), HEAD)
8+
TAG = latest
9+
endif
10+
11+
all: release
12+
13+
release: test build
14+
$(DOCKER) push $(REPO)
15+
16+
build:
17+
$(DOCKER) build -t $(REPO):$(TAG) .

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# One Codex CLI + other tools Docker image
2+
3+
A collection of helpful tools (e.g., NCBI's `fastq-dump`) and the One Codex CLI in a minimal-ish Debian Docker image.

bin/fastq-dump

2.38 MB
Binary file not shown.

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Python dependencies installed in Dockerfile
2+
onecodex==0.0.10

test/ocx.bats

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bats
2+
3+
@test "Python 2.7.X should be installed" {
4+
V=$(python --version 2>&1)
5+
[[ $V == Python\ 2.7* ]]
6+
}
7+
8+
@test "fastq-dump v2.5.2" {
9+
F=$(fastq-dump --version)
10+
[[ $F == *2.5.2* ]]
11+
}
12+
13+
@test "One Codex CLI v0.0.10" {
14+
X=$(onecodex --version 2>&1)
15+
[[ $X == *0.0.10\ \(API\ v0\)* ]]
16+
}

0 commit comments

Comments
 (0)