Add Dockerfile for testbed

To unify the testing platform, a docker image will be used. This image
will contain all of the test system prerequisites. This should make it
easier to run tests uniformly across developer machines and Travis CI.

This image will be published at https://hub.docker.com/r/yadm/testbed/
This commit is contained in:
Tim Byrne 2017-01-05 16:03:47 -06:00
parent 05ed83ea34
commit c4f2141e35
No known key found for this signature in database
GPG Key ID: 6CBE24C2FD8CF76E
1 changed files with 18 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM ubuntu:yakkety
MAINTAINER Tim Byrne <sultan@locehilios.com>
# Install prerequisites
RUN apt-get update && apt-get install -y git gnupg1 make shellcheck bats expect
# Force GNUPG version 1 at path /usr/bin/gpg
RUN ln -fs /usr/bin/gpg1 /usr/bin/gpg
# /yadm will be the work directory for all tests
# docker commands should mount the local yadm project as /yadm
WORKDIR /yadm
# Create a Makefile to be used if no /yadm volume is mounted
RUN echo "test:\n\t@echo 'The yadm project must be mounted at /yadm'\n\t@echo 'Try using a docker parameter like -v \"\$\$PWD:/yadm:ro\"'\n\t@false" > /yadm/Makefile
# By default, run all tests defined
CMD make test