Add debug docker container for jf-live-writer

This container is meant to run and test the jf-live-writer
locally without the need to install the PHDF5 library in
your local environment. Follow the instructions in
the README file.
This commit is contained in:
2021-04-08 13:18:58 +02:00
parent 026114ff37
commit f9e14cbd78
3 changed files with 24 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
cmake-build-*/
docker/
docs/
scripts/
+10
View File
@@ -3,6 +3,16 @@
The jf-live-writer is packaged as a Docker container for development and
testing.
# Using the docker container
The easiest way to build and test the jf-live-writer is to use the
provided docker container. You need to start it from the project **root**:
```bash
docker build -f jf-live-writer/debug.Dockerfile -t jf-live-writer .
```
(Running this command from the project root is mandatory as the entire project
folder needs to be part of the build context.)
## Building
In order to build this executable you need to specify the cmake variable
```
+10
View File
@@ -0,0 +1,10 @@
FROM paulscherrerinstitute/sf-daq_phdf5:1.0.0
COPY . /sf_daq_buffer/
RUN mkdir /sf_daq_buffer/build && \
cd /sf_daq_buffer/build && \
cmake3 -DBUILD_JF_LIVE_WRITER=ON .. && \
make jf-live-writer
WORKDIR /sf_daq_buffer/build