forked from poeml/mirrorbrain
-
Notifications
You must be signed in to change notification settings - Fork 17
Local testing with docker
Andrii Nikitin edited this page May 28, 2020
·
1 revision
These docker tests require --privileged flag (to start services within containers), which means that theoretically docker tests can affect host environment.
- To acknowledge danger of starting docker containers with
--privileged
flag - the test require PRIVILEGED_TESTS environment variable to be set in the environment. (See warning above). - All prerequisites mentioned at: https://github.com/openSUSE/mirrorbrain/wiki/Local-testing-overview#common-prerequisites-for-running-docker-tests-and-environs-tests-in-docker
git clone https://github.com/coryb/osht
git clone https://github.com/openSUSE/mirrorbrain
cd mirrorbrain/t/docker
PRIVILEGED_TESTS=1 OSHT_LOCATION=$(pwd)/../../../osht/osht.sh ./01-smoke.sh
git clone https://github.com/coryb/osht
git clone https://github.com/openSUSE/mirrorbrain
cd mirrorbrain
PRIVILEGED_TESTS=1 OSHT_LOCATION=$(pwd)/../osht/osht.sh make test_docker