This directory contains a Dockerfile for standing up an example whatrecord instance easily.
The docker-compose configuration starts up both a backend server and a frontend server. It is set to index the whatrecord package-provided test suite IOCs.
After building the image, you can run whatrecord directly (see below) to parse or lint single files / IOCs / etc.
$ docker-compose up
Then open a browser to http://localhost:8896/
Start the frontend alone by way of:
$ docker-compose up whatrecord-frontend
This won't be usable without the backend server, though.
Start the backend server example alone by way of:
$ docker-compose up whatrecord
The cache is stored as a shared volume in /docker/cache. To clear it, use
$ make clear-cache
Or delete the .json
files in that directory.
The standalone docker image can be used after building it via docker-compose. The following would build the image and then run the internal test suite:
$ make build-image run-tests
This will open up a bash session for you to browse the image.
$ make inspect
$ make
# Go to an IOC directory and:
$ docker run -v ${PWD}:/ioc -it pcdshub/whatrecord:latest whatrecord parse iocBoot/ioc-*/st.cmd