Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW_OTE_development
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yudian2002@sjtu.edu.cn
CEPCSW_OTE_development
Commits
ee50bae1
Commit
ee50bae1
authored
4 years ago
by
lintao@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
WIP: prepare a docker image for cepcsw.
parent
47a940da
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+49
-0
49 additions, 0 deletions
Dockerfile
with
49 additions
and
0 deletions
Dockerfile
0 → 100644
+
49
−
0
View file @
ee50bae1
##############################################################################
# Docker image for CEPCSW
##############################################################################
# # Instruction
# To build the docker image:
# $ docker build -t cepc/cepcsw .
# Or with CVMFS installed also
# $ docker build -t cepc/cepcsw-cvmfs . --build-args CVMFSMOD=INSIDE
FROM
centos:7
ARG
CVMFSMOD
# Basic
RUN
yum
install
-y
sudo
RUN
sudo
yum
install
-y
redhat-lsb wget
# Install singularity
RUN
sudo
yum update
-y
&&
\
sudo
yum
install
-y
epel-release
&&
\
sudo
yum update
-y
&&
\
sudo
yum
install
-y
singularity
# Install CVMFS
# Configure IHEP
# Enable /cvmfs/cepcsw.ihep.ac.cn and /cvmfs/container.ihep.ac.cn
RUN if
[
"
$CVMFSMOD
"
=
"INSIDE"
]
;
then
\
sudo
yum
install
-y
https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm
\
&&
sudo
yum
install
-y
cvmfs
\
&&
sudo mkdir
/etc/cvmfs/keys/ihep.ac.cn
\
&&
sudo
curl
-o
/etc/cvmfs/keys/ihep.ac.cn/ihep.ac.cn.pub http://cvmfs-stratum-one.ihep.ac.cn/cvmfs/software/client_configure/ihep.ac.cn/ihep.ac.cn.pub
\
&&
sudo
curl
-o
/etc/cvmfs/domain.d/ihep.ac.cn.conf http://cvmfs-stratum-one.ihep.ac.cn/cvmfs/software/client_configure/ihep.ac.cn.conf
\
&&
echo
"CVMFS_REPOSITORIES='sft.cern.ch,cepcsw.ihep.ac.cn,container.ihep.ac.cn'"
|
sudo tee
/etc/cvmfs/default.local
\
&&
echo
"CVMFS_HTTP_PROXY=DIRECT"
|
sudo tee
-a
/etc/cvmfs/default.local
\
&&
cat
/etc/cvmfs/default.local
\
&&
sudo mkdir
-p
/cvmfs/sft.cern.ch
\
&&
sudo mkdir
-p
/cvmfs/cepcsw.ihep.ac.cn
\
&&
sudo mkdir
-p
/cvmfs/container.ihep.ac.cn
;
\
fi
# START Container:
# # docker run --privileged --rm -i -t IMAGE /bin/bash
# Due to the fuse issue, following commands need to be run inside container when --privileged is specified
# $ mount -t sft.cern.ch /cvmfs/sft.cern.ch
# $ mount -t cvmfs container.ihep.ac.cn /cvmfs/container.ihep.ac.cn
# $ mount -t cvmfs cepcsw.ihep.ac.cn /cvmfs/cepcsw.ihep.ac.cn
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment