Project

General

Profile

Artdaq-sl7-podman

Installing Podman

Assuming you are using SL7 (>=7.6), do the following:

sudo yum install yum-conf-extras
sudo yum install podman
host_dir=/scratch
container_dir=/scratch
# The following command is only tested on RHEL 8.
podman run  --privileged=true  -ti -e DISPLAY  --rm  -v $host_dir:$container_dir --net=host  dingpf/artdaq

Change the host_dir and container_dir appropriately (ref. man podman-run).

The Dockerfile used for the docker image dingpf/artdaq can be found at https://github.com/dingp/artdaq-docker, or on DockerHub https://cloud.docker.com/repository/docker/dingpf/artdaq/general.

Before running the above "podman run" command, one could:

# from someplace within/under your home directory...
mkdir artdaq_demo
cd artdaq_demo
wget https://cdcvs.fnal.gov/redmine/projects/artdaq-demo/repository/revisions/develop/raw/tools/quick-mrb-start.sh
chmod +x quick-mrb-start.sh

Then, run the podman command with host_dir=$PWD:
podman run  --privileged=true  -ti -e DISPLAY  --rm  -v $PWD:/scratch --net=host  dingpf/artdaq

Inside the container, do:
cd /scratch
./quick_mrb_start.sh
./run_demo.sh