Skip to content

Dev instructions for testing on serf machine

Just thought I would leave this here from my notes, in case anyone needs to do this in future!

HOW TO EXAMINE A DOCKER IMAGE ON SERF MACHINE (as of 07/22/24) (NOTE: these instructions assume you are in your home directory, ~/, the entire time)

  • git clone --single-branch --branch develop https://gitlab.cern.ch/otsdaq/otsdaq-cms-burninbox-data.git
  • edit otsdaq-cms-burninbox-data/CreatorSetup.sh (I think CONTAINER=podman_something syntax is necessary)
  • source otsdaq-cms-burninbox-data/CreatorSetup.sh
  • mkdir OtsdaqData
  • ./otsdaq-cms-burninbox-data/Scripts/DockerCreator.sh $HOME $HOME

At this point, all first-time setup (for EACH new container) is done. (You only need to do the above once per container) Now, follow below for each run/test of a nicely set-up container:

  • docker start podman_testX (X is a number unique to each container
  • docker exec -it podman_testX bash
  • source otsdaq-cms-burninbox-data/SetupFiles/BurninBoxSetup.sh
  • ots
  • Go to new terminal tab
  • curl -v LINK_PRINTED_BY_OTS (make sure it prints positive-looking html info)
  • exit
  • docker stop podman_testX when you're done with the image
Edited by Lacey Dishman