Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

O2DataInspector/DataInspector

Repository files navigation

DataInspector

Parameters

Program requires those environment variables to be declared:

  • WORK_DIR - path to alibuild work dir (i.e. ~/alice/sw)
  • ALIBUILD_ARCH_PREFIX - nam of the folder inside WORK_DIR where builds are stored (i.e. ubuntu2004_x86-64)
  • DI_DATASETS - path to folder, where available datasets for runs are stored (must be created - can be empty)
  • RUNS_PATH - points to directory in which runs will be started (and their output stored) (must be created)
  • MONGO_URL - mongo connection string (mongo can be started by exposing port 27017 in docker-compose.yaml and running sudo docker-compose up mongo)

Proxy expects two arguments to be provided:

  1. path to bash script used to execute workflows
  2. path to folder containing files which available O2/O2Physics builds:
    1. Filename: <name>.build
    2. Contest:
      1. Build name
      2. GitHub url (required - but not used at the moment)
      3. Branch name (required - but not used at the moment)
      4. Relative path from ALIBUILD_WORK_DIR for specific architecture (i.e. ~/alice/sw/$ALIBUILD_ARCH_PREFIX) to chosen build (same as in alienv, i.e. O2/data-inspector-cleaned-local1)

Local

Dependencies

  • cmake
  • arrow
  • libmongoc
  • root
  • boost
  • rapidjson
  • httplib

All dependencies can be installed by in simillar manner by following the example installation on Ubuntu 20.04 in Dockerfile.

Running

  1. Build proxy:
    1. mkdir build && cd build
    2. cmake ..
    3. cmake --build .
  2. Start MongoDB
  3. Declare all environment variables
  4. Run: ./proxy <execute-script-path> <builds-definitions-path>

Docker

Currently prepared Dockerfiles are working only on Ubuntu 20.04

Building O2

Force build for 'ubuntu2004_x86-64` with docker: aliBuild build O2 --defaults o2 -a ubuntu2004_x86-64 --docker

Before running

  1. Build docker image containing all dependencies: docker build -t di-proxy-builder builder/ (can take few hours)

Running

  1. Build docker image with proxy: docker build -t di-proxy .
  2. Update paths in docker-compose.yaml
  3. Environment variable ALIBUILD_WORK_DIR must be specified (created during aliBuild installation)
  4. Start proxy and MongoDB: docker-compose up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors