5. Up and Running with Glusto-Tests in 5 Minutes (or less)
Supporting Info...
6. Install and Start Docker
●
Fedora from base (CentOS is similar)
# dnf install docker
# systemctl start docker.service
●
RHEL 7
– See “Getting Started with Containers”
under RHEL Atomic Host docs
●
From Docker repo
– See per platform docs on docker.com
7. Pull the Glusto-Tests Image
●
To test docker at first install…
# docker run hello-world
●
To pull Glusto-Test image from the
DockerHub repo…
# docker pull gluster/glusto-tests
8. Run a Test...
●
Example running a test from local directory
– Test directory is created/cloned locally and passed to the container
# git clone https://github.com/loadtheaccumulator/glusto
# docker run -it --rm –-privileged=true
-v /root/glusto:/glusto gluster/glusto-tests
glusto –pytest=’-v /glusto/tests/test_glusto_configs.py’
●
Example running a glusto-test/tests script
– Latest Glusto-tests/tests dir is included in container
# docker run -it –-rm -v ~/.ssh:/root/.ssh
-v /<local_path_to_configs>:<path_to_configs>
gluster/glusto-tests
glusto -c ‘<path_to_config>’
–-pytest=’-v /glusto-tests/<path_to_test>’