Skip to content

Latest commit

 

History

History

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

What is this?

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 usage

$ docker-compose up

Then open a browser to http://localhost:8896/

Frontend server

Start the frontend alone by way of:

$ docker-compose up whatrecord-frontend

This won't be usable without the backend server, though.

Backend server

Start the backend server example alone by way of:

$ docker-compose up whatrecord

Clearing the cache

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.

Standalone docker image

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

Exploring the image

This will open up a bash session for you to browse the image.

$ make inspect

Parsing / linting tools

$ make
# Go to an IOC directory and:
$ docker run -v ${PWD}:/ioc -it pcdshub/whatrecord:latest whatrecord parse iocBoot/ioc-*/st.cmd