|
| 1 | +SAMPLE RUNS |
| 2 | + |
| 3 | +To build required images |
| 4 | +------------------------ |
| 5 | +Examples |
| 6 | + |
| 7 | + 1) ./build-docker.sh |
| 8 | + DEFAULT: build single-node system based on latest iRODS release |
| 9 | + |
| 10 | + 2) IRODS_PACKAGE_VERSION=4.2.12 NO_CACHE='1' ./build-docker.sh [ ... optional in-directory dockerfiles in sequence ... ] |
| 11 | + Build (ignoring docker cache) single-node system based on specified package version string. |
| 12 | + |
| 13 | +simple examples |
| 14 | +--------------- |
| 15 | +./docker_container_driver.sh tests/test_1.sh |
| 16 | +./docker_container_driver.sh tests/test_2.sh |
| 17 | + |
| 18 | +Any script in a subdirectory of the repo (mounted at /prc within the container) can be |
| 19 | +executed and will be able to find other scripts and source include files within the tree. |
| 20 | +[See "experiment.sh" example below.] |
| 21 | + |
| 22 | +Examples of options in driver script |
| 23 | +------------------------------------ |
| 24 | + |
| 25 | + 1. To start container and run test script: |
| 26 | + C=$( ./docker_container_driver.sh -c -L -u testuser ../scripts/experiment.sh ) |
| 27 | + |
| 28 | + 2. To manually examine results afterward: |
| 29 | + docker exec -it $C bash |
| 30 | + |
| 31 | +For both scripts, the environment variable DOCKER may be set to "podman" to run the alternative virtualizer. |
| 32 | + |
| 33 | +Demo / Demo hook / args |
| 34 | +------------------------ |
| 35 | + |
| 36 | +$ ~/python-irodsclient/irods/test/harness$ ./docker_container_driver.sh ../demo.sh |
| 37 | +ORIGINAL_SCRIPT_RELATIVE_TO_ROOT=[irods/test/demo.sh] |
| 38 | +image=[ssl-and-pam] |
| 39 | +.......-- HOOK RUNNING -- |
| 40 | +/prc/irods/test/demo.sh running |
| 41 | +args: |
| 42 | +1: [arg1] |
| 43 | +2: [arg2] |
| 44 | +Killed: 1358fbff6eadac24f0915ffb414f0367deedc84b0c3e4de69a23bd3a8726298f |
| 45 | +daniel@prec3431:~/python-irodsclient/irods/test/harness$ echo $? |
| 46 | +118 |
| 47 | + |
0 commit comments