diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 14 | ||||
-rw-r--r-- | docker/README | 26 |
2 files changed, 40 insertions, 0 deletions
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 <local_dir_path>:<container_dir_path> docker.io/loadtheaccumulator/glusto-tests /bin/bash + + ... or for example to run a test directly... + + # docker run -it --rm --privileged=true \ + -v <local_dir_path>:<container_dir_path> \ + docker.io/loadtheaccumulator/glusto-tests \ + /usr/bin/glusto -c <container_path_to_config> \ + --pytest="-vv <container_dir_path>/test_your_test_file.py" + +More robust docs and examples coming soon. |