Install Docker for Mac or Linux (or Windows). If Linux, then install docker-compose as well (it's automatically installed with Mac and Windows)
Next, create the testing folder.
mkdir openinfoman-test
cd openinfoman-test/
git clone https://github.com/openhie/openinfoman
Get the docker-compose.yml file from the gist.
wget https://gist.githubusercontent.com/citizenrich/ebd4036e0f8eb8524e9788a1ff1e381c/raw/docker-compose.yml
Launch the container.
docker-compose up -d
See running containers.
docker ps
Enter the running container using a shell.
docker-compose exec openinfoman bash
Run stuff in the container shell.
basex -Vc "REPO INSTALL http://files.basex.org/modules/expath/functx-1.0.xar"
cd /repo/repo
ls
# start installing
basex -Vc "repo install csd_base_library.xqm"
basex -Vc "repo install csd_base_library_updating.xqm"
basex -Vc "repo install csd_base_stored_queries.xqm"
# this one will fail
basex -Vc "repo install csd_webapp_config.xqm"