Skip to content

Commit

Permalink
Merge pull request #1864 from standage/fix/docker-ci
Browse files Browse the repository at this point in the history
[MRG] Fix Docker build for CI
  • Loading branch information
betatim committed May 18, 2018
2 parents 3109aef + 31607a3 commit 5b38e1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ py-demos: sharedobj
python examples/python-api/mask.py

COMMIT ?= $(shell git rev-parse HEAD)
SLUG ?= $(TRAVIS_PULL_REQUEST_SLUG)
docker-container:
cd docker && docker build --build-arg=branch=$(COMMIT) .
cd docker && docker build --build-arg branch=$(COMMIT) --build-arg slug=$(SLUG) .

FORCE:

Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ WORKDIR /home

ARG branch
ENV branch ${branch:-v2.1.2}
ARG slug
ENV slug ${slug:-dib-lab/khmer}

RUN pip3 install git+https://github.com/dib-lab/khmer.git@${branch}
RUN pip3 install git+https://github.com/${slug}.git@${branch}

0 comments on commit 5b38e1d

Please sign in to comment.