The xenon images on https://hub.docker.com/u/nlesc/dashboard/ are now non-automated.
10K+
Image which will run the Xenon fixed client environment tests.
Will startup Docker containers to test against.
cd xenon-fixed-client
docker build -t nlesc/xenon-fixed-client .
To run the Xenon fixed client environment tests run from Xenon repo root dir run with:
cd Xenon
docker run \
--env MYUID=$UID \
--network host \
--volume $HOME/.gradle:/home/xenon/.gradle \
--volume $HOME/.m2:/home/xenon/.m2 \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $PWD:/code \
--tty --interactive --rm \
--name=xenon-fixed-client \
nlesc/xenon-fixed-client
The above command breaks down as follows:
docker run \
# The tests will output files which will be owned by my UID (the UID outside of the container)
--env MYUID=$UID \
# Tests will start other Docker containers, by using network=host the ports of sibling containers (slurm, sftp, etc.) are accessible by this Docker container.
--network host \
# Use gradle cache from outside container, so no new downloads are required
--volume $HOME/.gradle:/home/xenon/.gradle \
# Use maven cache from outside container, so no new downloads are required. (Maven cache is used by gradle plugins)
--volume $HOME/.m2:/home/xenon/.m2 \
# Tests will start other Docker containers, so will use the local Docker daemon inside this container
--volume /var/run/docker.sock:/var/run/docker.sock \
# Code on which to run the gradle test task
--volume $PWD:/code \
--tty --interactive --rm \
--name=xenon-fixed-client \
nlesc/xenon-fixed-client
By default, nlesc/xenon-fixed-client will run ./gradlew --no-daemon fixedClientEnvironmentTest; to run a different command, append the CMD you want to run, for example:
cd Xenon
docker run \
--env MYUID=$UID \
--network host \
--volume $HOME/.gradle:/home/xenon/.gradle \
--volume $HOME/.m2:/home/xenon/.m2 \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $PWD:/code \
--tty --interactive --rm \
--name=xenon-fixed-client \
nlesc/xenon-fixed-client \
./gradlew --no-daemon fixedClientEnvironmentTest --tests=*agent*
This will only run tests which contain the string agent in their package or class name.
Content type
Image
Digest
Size
517.1 MB
Last updated
over 7 years ago
docker pull nlesc/xenon-fixed-client