Dockerfile
==========

This repository contains dockerfiles to package MarbleMonitor
into a docker image.

The following hierarchy was built:

* EPICS environment

```bash
docker build -t lbnl-atg/epics_env -f Dockerfile.epics_env .
```

* EPICS MarbleMonitor

```bash
docker build -t lbnl-atg/marmon -f Dockerfile.marmon .
```

Another option is to use the Makefile:

```bash
make docker
```

This will build all the images.

How to run
==========

In order to run an image interactively:

```bash
docker run -it --rm --name=deb11marmon --net host lbnl-atg/marmon -P <P> -R <R> -i <IP>
```

To run the image in daemon mode:

```bash
docker run --rm  -d --name=deb11marmon --net host lbnl-atg/marmon -P <P> -R <R> -i <IP>
```

You can optionally pass some options to the FEED LCLS2 image:

```bash
 Options:
  -t                  Configure procServ telnet port
  -P                  Configure value of $(P) macro
  -R                  Configure value of $(R) macro
  -p                  Configure PORT
  -i                  Configure IP address
```
