Skip to content

Instantly share code, notes, and snippets.

@enricorotundo
Last active September 28, 2022 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enricorotundo/4c7f158f20ae4997e710e66531b8b54f to your computer and use it in GitHub Desktop.
Save enricorotundo/4c7f158f20ae4997e710e66531b8b54f to your computer and use it in GitHub Desktop.

Fix Docker issues

yum install -y yum-utils
yum install -y dnf
yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
yum update
dnf install docker-ce docker-ce-cli containerd.io
systemctl start docker.service
systemctl enable docker.service
yum update
yum install -y yum-plugin-priorities
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y https://repo.opensciencegrid.org/osg/3.5/osg-3.5-el7-release-latest.rpm
yum install -y osg-oasis
systemctl enable autofs
systemctl start autofs

vi /etc/auto.master.d/cvmfs.autofs # Put the content below:
/cvmfs /etc/auto.cvmfs

systemctl restart autofs
vi /etc/cvmfs/default.local # Put the content below
CVMFS_REPOSITORIES="`echo $(ls /cvmfs)|tr ' ' ,`"
CVMFS_CACHE_BASE=/wntmp/cvmfs
CVMFS_QUOTA_LIMIT=20000
CVMFS_HTTP_PROXY="DIRECT"
export CMS_LOCAL_SITE=/cvmfs/cms.cern.ch/SITECONF/T2_US_Caltech

# test
ls -l /cvmfs/cms.cern.ch

/wntmp - Separate disk for scratch space. Spec Suite will require from 20GB to ~40GB disk space. (Depends on N of cores)

Repo

yum -y install git
cd /wntmp
git clone https://github.com/cmscaltech/docker-hs06.git
cd docker-hs06/hepscore
yum install python3-pip -y
sh install.sh

yum install -y htop
sh run-all.sh &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment