Skip to content

Instantly share code, notes, and snippets.

View mconcas's full-sized avatar
🌊

Matteo Concas mconcas

🌊
View GitHub Profile
+ case $ARCHITECTURE in
+ cmake /home/concas/alice/sw/SOURCES/Configuration/v1.2.0/v1.2.0 -DCMAKE_INSTALL_PREFIX=/home/concas/alice/sw/INSTALLROOT/8c3464c0c318b13c97636e9296872b25e7ac21e5/slc7_x86-64/Configuration/v1.2.0-1 -DCommon_ROOT=/home/concas/alice/sw/slc7_x86-64/Common-O2/v1.2.0-1 -DPROTOBUF_INCLUDE_DIR=/include -DPROTOBUF_LIBRARY=/lib/libprotobuf.so -DRAPIDJSON_INCLUDEDIR=/home/concas/alice/sw/slc7_x86-64/RapidJSON/1.1.0-1/include -DPPCONSUL_INCLUDE_DIRS=/include -DPPCONSUL_LIBRARY_DIRS=/lib -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is GNU 6.3.1
-- Check for working C compiler: /opt/rh/devtoolset-6/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-6/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
# Telegraf Configuration
#
# Telegraf is entirely plugin driven. All metrics are gathered from the
# declared inputs, and sent to the declared outputs.
#
# Plugins must be declared in here to be active.
# To deactivate a plugin, comment out the name and any variables.
#
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
# file would generate.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time, sys, signal, os
def signal_handler(signal, frame):
print("\nEh no, ora te li leggi tutti!\n")
# main-agioia
try:
@mconcas
mconcas / CVMFSinDocker.md
Last active May 24, 2016 19:47
Quick note to mount a cvmfs filesystem into a Docker container

Mount CVMFS inside a Docker container

RHEL7 or Ubuntu with apparmor in complain mode

On the host

Provided that FUSE is installed and loaded on your kernel, which is easily checked running:

~ $ sudo modprobe --first-time fuse
modprobe: ERROR: could not insert 'fuse': Module already in kernel
#!/bin/env python
import json
import time
from datetime import datetime
from elasticsearch import Elasticsearch
ncpus = 8
dummy_string = {'host': { 'ip': '193.205.66.55',
'hostname': 'ali55xl.to.infn.it',
@mconcas
mconcas / T20150930.md
Last active September 30, 2015 08:41

Turin, Wed 30 Sep - 2015

Deliverables:

  • We currently are able to deploy plancton daemon on every docker-compatible host (at least Python2.7 is required).
  • We currently can upgrade/modify plancton daemon and its configuration without access the hosts.

Goals achieved:

  1. Centos6/SCL6 based containers parrot+CVMFS aware, capable to have access to the experiment software.
  2. Condor cluster using containers as workers.
  3. An easily deployable daemonized python script capable to:

Turin, Wed 5 Aug - 2015

### Goals prefixed:

  1. Centos6/SCL6 based containers parrot+CVMFS aware, capable to run the experiment software.
  2. Condor cluster using containers as workers.
  3. A python script (daemon API based) capable to:
    1. perform a continuous check of resource availability on the bare metal host, and take decisions applying specific policies.
  4. pull always-up-to-date images.
@mconcas
mconcas / 99-common-debug-docker.config
Last active August 29, 2015 14:25
Condor common configuration for a working container. Assuming CONDOR_HOST = ali53xl.to.infn.it
MASTER_DEBUG = D_FULLDEBUG
SHARED_PORT_DEBUG = D_FULLDEBUG
@mconcas
mconcas / 20-common-schedd-docker.config
Last active August 29, 2015 14:25
Condor common configuration for a working container. Assuming CONDOR_HOST = ali53xl.to.infn.it
COLLECTOR_MAX_FILE_DESCRIPTORS = 1000000
HISTORY =
NEGOTIATOR_CONSIDER_PREEMPTION = FALSE
JOB_START_COUNT = 50
JOB_START_DELAY = 5
NEGOTIATOR_INTERVAL = 21
@mconcas
mconcas / 10-common-docker.config
Last active August 29, 2015 14:25
Condor common configuration for a working container. Assuming CONDOR_HOST = ali53xl.to.infn.it
CONDOR_ADMIN = root@$(CONDOR_HOST)
UID_DOMAIN = *
TRUST_UID_DOMAIN = TRUE
SOFT_UID_DOMAIN = TRUE
QUEUE_SUPER_USERS = root, condor
LOWPORT = 40000
HIGHPORT = 60000
SHARED_PORT_ARGS = -p 9618
DAEMON_LIST = $(DAEMON_LIST), SHARED_PORT
USE_SHARED_PORT = TRUE