Skip to content

Commit

Permalink
Improved container behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Oct 7, 2015
1 parent 33936ed commit ea26032
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ Fork this repository or create a new branch to work in. Within the new branch,
### Step 2: test the recipe

When the recipe
is ready, you can test it in the docker container with:
is ready first test it with your local conda installation via

docker run -t -v `pwd`:/tmp/conda-recipes bioconda/bioconda-builder /bin/build-packages.sh your_package
conda build recipes/your_package

Then, you can test it in the docker container with:

docker run -t -v `pwd`:/tmp/conda-recipes bioconda/bioconda-builder /tmp/conda-recipes --packages your_package

To optionally build for a specific Python version, provide the `CONDA_PY`
environmental variable. For example, to build specifically for Python 3.4:

docker run -e CONDA_PY=34 -t -v `pwd`:/tmp/conda-recipes bioconda/bioconda-builder /bin/build-packages.sh your_package
docker run -e CONDA_PY=34 -t -v `pwd`:/tmp/conda-recipes bioconda/bioconda-builder /tmp/conda-recipes --packages your_package

To optionally build all packages (if they don't already exist), leave off the
package name:
Expand Down
2 changes: 1 addition & 1 deletion scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ RUN conda install -y conda conda-build anaconda-client pyyaml toolz jinja2 nose
RUN conda config --add channels bioconda
COPY build-packages.py /bin/build-packages.py
ENTRYPOINT ["build-packages.py"]
CMD ["--help"]
CMD []
3 changes: 2 additions & 1 deletion scripts/build-packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def test_recipes():

if __name__ == "__main__":
p = argparse.ArgumentParser(description="Build bioconda packages")
p.add_argument("repository",
p.add_argument("--repository",
default="/bioconda-recipes",
help="Path to checkout of bioconda recipes repository.")
p.add_argument("--packages",
nargs="+",
Expand Down
4 changes: 2 additions & 2 deletions scripts/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if [[ $TRAVIS_OS_NAME = "linux" ]]
then
# run CentOS5 based docker container
docker run -e TRAVIS_BRANCH -e TRAVIS_PULL_REQUEST -e ANACONDA_TOKEN -e CONDA_PY -e CONDA_NPY -v `pwd`:/tmp/conda-recipes bioconda/bioconda-builder /tmp/conda-recipes
docker run -e TRAVIS_BRANCH -e TRAVIS_PULL_REQUEST -e ANACONDA_TOKEN -e CONDA_PY -e CONDA_NPY -v `pwd`:/bioconda-recipes bioconda/bioconda-builder
exit $?
else
# install conda
Expand All @@ -17,6 +17,6 @@ else
conda config --add channels bioconda

# build packages
scripts/build-packages.py .
scripts/build-packages.py --repository .
exit $?
fi

0 comments on commit ea26032

Please sign in to comment.