From c378972b48988d09b33d4b8e3881ecd560f0e343 Mon Sep 17 00:00:00 2001 From: Jonathan Holloway Date: Thu, 15 Jun 2017 00:15:34 -0500 Subject: add docker dir with Dockerfile and README * Dockerfile for creating a glusto-tests container. * README with some basic information for now. Change-Id: I10d467371b430489a240e979ebc3893f7cc578dd Signed-off-by: Jonathan Holloway --- docker/Dockerfile | 14 ++++++++++++++ docker/README | 26 ++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 docker/Dockerfile create mode 100644 docker/README (limited to 'docker') diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 000000000..f51ab660d --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,14 @@ +FROM loadtheaccumulator/glusto +MAINTAINER loadtheaccumulator@gmail.com +# install glusto-tests libraries +RUN cd /; git clone http://github.com/gluster/glusto-tests +RUN cd /glusto-tests/glustolibs-gluster; python setup.py install +RUN cd /glusto-tests/glustolibs-io; python setup.py install +RUN cd /glusto-tests/glustolibs-misc; python setup.py install +# install gdeploy +#RUN pip install --upgrade pip +#RUN dnf install -y gcc +#RUN pip install --upgrade git+git://github.com/gluster/gdeploy.git +RUN dnf install -y wget +RUN wget -q https://copr-be.cloud.fedoraproject.org/results/sac/gdeploy/fedora-25-x86_64/00549451-gdeploy/gdeploy-2.0.2-7.noarch.rpm +RUN dnf install -y gdeploy-* diff --git a/docker/README b/docker/README new file mode 100644 index 000000000..d9a985165 --- /dev/null +++ b/docker/README @@ -0,0 +1,26 @@ +This Dockerfile adds the Gluster glustolibs libraries on top of the Glusto container to provide the complete environment required to run Gluster QE tests under Glusto. +This container is currently based on Fedora and also installs gdeploy as required by NFS Ganesha tests. + +This is currently a minimal implementation. More to come. + +To use the glusto-tests container, you can run tests using the pre-gen'd container or create a Dockerfile and customize to fit your own needs. + +To use the pre-gen'd image... + +1. Pull the docker image down to your local system. + + # docker pull loadtheaccumulator/glusto-tests + +2. Run the image with docker. + + # docker run -it --rm --privileged=true -v : docker.io/loadtheaccumulator/glusto-tests /bin/bash + + ... or for example to run a test directly... + + # docker run -it --rm --privileged=true \ + -v : \ + docker.io/loadtheaccumulator/glusto-tests \ + /usr/bin/glusto -c \ + --pytest="-vv /test_your_test_file.py" + +More robust docs and examples coming soon. -- cgit