mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-03 19:14:12 +02:00
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:
@@ -0,0 +1,4 @@
|
||||
cmake-build-*/
|
||||
docker/
|
||||
docs/
|
||||
scripts/
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user