File tree Expand file tree Collapse file tree 6 files changed +60
-0
lines changed
Expand file tree Collapse file tree 6 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 ) .
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 1+ # Python dependencies installed in Dockerfile
2+ onecodex == 0.0.10
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments