Step 1:
pip install docker
pip install tqdm
Step 2:
import docker
# Apache server configuration | |
# This sets up a Flask application over SSL with CERN SSO authentication via | |
# Shibboleth. | |
# Load the SSL and Shibboleth modules | |
LoadModule ssl_module modules/mod_ssl.so | |
LoadModule mod_shib /usr/lib64/shibboleth/mod_shib_24.so | |
# Disable TRACE HTTP requests on CERN advice | |
TraceEnable Off |
atrisovi@lxplus118: ~/panoramix > python $myPanoramix -u Vis/Panoramix/options/PanoramixNoGui.py | |
# setting LC_ALL to "C" | |
#### ['$PANORAMIXDATA/Sel_Bsmumu_2highest.dst'] | |
>>> Found database tags: {'DDDB': ['head-20110302'], 'ONLINE': ['HEAD'], 'DQFLAGS': ['tt-20110126'], 'LHCBCOND': ['head-20110524']} | |
# WARNING: Default tag requested for partition DDDB (using dddb-20150724) | |
# WARNING: Default tag requested for partition LHCBCOND (using cond-20151016) | |
# WARNING: Using default tag head-2015604 for partition CALIBOFF | |
# WARNING: file '/afs/cern.ch/lhcb/software/releases/DBASE/TCK/L0TCK/v4r43/options/L0DUConfig.opts' already included, ignored. | |
# WARNING: file '/afs/cern.ch/lhcb/software/releases/DBASE/TCK/L0TCK/v4r43/options/L0DUConfig.opts' already included, ignored. | |
# WARNING: file '/afs/cern.ch/lhcb/software/releases/DBASE/TCK/L0TCK/v4r43/options/L0DUConfig.opts' already included, ignored. |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
/* | |
zadatak: http://bubblebee.rs/problemi/01-Aritmetika/01-Formule/01-Poznate-formule/08-putovanje | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 |
WARNING:lb-run:trying old SetupProject ([Errno 2] cannot find file in ['.', '/cvmfs/lhcb.cern.ch/lib/lhcb/LHCBGRID/LHCBGRID_v12r0/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/COMPAT/COMPAT_v1r19/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/DAVINCI/DAVINCI_v36r1p2/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/DBASE/AppConfig/v3r324', '/cvmfs/lhcb.cern.ch/lib/lhcb/DBASE/FieldMap/v5r7', '/cvmfs/lhcb.cern.ch/lib/lhcb/PARAM/ParamFiles/v8r21', '/cvmfs/lhcb.cern.ch/lib/lhcb/PARAM/QMTestFiles/v1r3', '/cvmfs/lhcb.cern.ch/lib/lhcb/DBASE/PRConfig/v1r26', '/cvmfs/lhcb.cern.ch/lib/lhcb/DBASE/TCK/HltTCK/v3r18p6', '/cvmfs/lhcb.cern.ch/lib/lhcb/ANALYSIS/ANALYSIS_v13r1/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/STRIPPING/STRIPPING_v9r2/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/LBCOM/LBCOM_v16r1/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/lhcb.cern.ch/lib/lhcb/PHYS/PHYS_v19r2/InstallArea/x86_64-slc6-gcc48-opt', '/cvmfs/ |
Step 1:
pip install docker
pip install tqdm
Step 2:
import docker
Basic Dockerfile:
FROM continuumio/miniconda
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-get install -y vim.tiny
# run this as "python clean_code.py $PWD" | |
import os | |
import re | |
import sys | |
import glob | |
import codecs | |
import chardet | |
import fileinput | |
list_of_r_files = glob.glob("*.R") |
from flask import Flask, redirect, url_for | |
from celery import Celery | |
from celery import Task | |
from subprocess import PIPE, Popen | |
import logging, os | |
logging.basicConfig(level=logging.INFO) | |
logger = logging.getLogger(__name__) | |
# Running locally: |