wtsi-hgi/docker-arvados-dev

Name: docker-arvados-dev

Owner: Wellcome Trust Sanger Institute - Human Genetics Informatics

Description: Docker container for Arvados development (and running tests)

Created: 2015-09-08 14:54:41.0

Updated: 2016-02-09 22:42:36.0

Pushed: 2016-02-09 22:42:35.0

Homepage: null

Size: 9

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

docker-arvados-dev

Docker container for Arvados development (and running tests)

Sets up an Arvados development/testing environment within a Docker container.

Developed based on documentation on Arvados Hacking Prerequisites and Running Arvados Tests. Uses a Debian Jessie base image and configures a custom entrypoint to which is passed a shell command to run in the test environment.

To build the docker container locally:

clone https://github.com/wtsi-hgi/docker-arvados-dev.git
er build -t local/docker-arvados-dev docker-arvados-dev

To run all tests against the master branch (of https://github.com/curoverse/arvados):

ker run -it --privileged local/docker-arvados-dev

or, equivalently:

er run -it --privileged local/docker-arvados-dev 'time ~/arvados-dev/jenkins/run-tests.sh WORKSPACE=~/arvados'

N.B. passing '–privileged' to docker run is required in order for the test framework to access FUSE (via /dev/fuse).

To run all tests against the staging branch:

ker run -it --privileged -e ARVADOS_GIT_REV="staging" local/docker-arvados-dev

To fetch both ~/arvados and ~/arvados-dev from an alternative git repo and checkout a specific revision/tag/branch:

er run -it --privileged -e ARVADOS_GIT_REPO="hgi https://github.com/wtsi-hgi/arvados.git" -e ARVADOS_GIT_REV="hgi/master" -e ARVADOS_DEV_GIT_REPO="hgi https://github.com/wtsi-hgi/arvados-dev.git" -e ARVADOS_DEV_GIT_REV="hgi/master" local/docker-arvados-dev

Note that there is also a trusted/automated build of this repository on docker hub, so you should be able to skip the docker build step above and replace local/docker-arvados-dev with mercury/docker-arvados-dev to run directly from docker hub's automated build.

For example, to pull the Docker image from Docker hub and run all tests against the wtsi-hgi branch, you could do:

er run -it --privileged -e ARVADOS_GIT_REPO="hgi https://github.com/wtsi-hgi/arvados.git" -e ARVADOS_GIT_REV="hgi/master" -e ARVADOS_DEV_GIT_REPO="hgi https://github.com/wtsi-hgi/arvados-dev.git" -e ARVADOS_DEV_GIT_REV="hgi/master" mercury/docker-arvados-dev

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.