Skip to content

Instantly share code, notes, and snippets.

@citizenrich
Last active June 28, 2017 18:40
Show Gist options
  • Save citizenrich/ebd4036e0f8eb8524e9788a1ff1e381c to your computer and use it in GitHub Desktop.
Save citizenrich/ebd4036e0f8eb8524e9788a1ff1e381c to your computer and use it in GitHub Desktop.

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"
version: '3'
services:
openinfoman:
image: basex/basexhttp:latest
volumes:
- "./openinfoman/repo:/repo/repo"
- "./openinfoman/webapp:/repo/webapp"
ports:
- 8984:8984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment