summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorJonathan Holloway <jholloway@redhat.com>2017-06-15 00:15:34 -0500
committerJonathan Holloway <jholloway@redhat.com>2017-06-22 15:25:04 +0000
commitc378972b48988d09b33d4b8e3881ecd560f0e343 (patch)
treeb99f6905ebc603317fadcd62cbef6b1646748dcd /docker
parent14de79b69b466663fb72dd04d4a20b8a606e826d (diff)
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 <jholloway@redhat.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile14
-rw-r--r--docker/README26
2 files changed, 40 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..f51ab66
--- /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 0000000..d9a9851
--- /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.