-
Notifications
You must be signed in to change notification settings - Fork 1
/
xsuite_2022.1
55 lines (44 loc) · 1.91 KB
/
xsuite_2022.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM gitlab-registry.cern.ch/linuxsupport/cs9-base
LABEL author="[email protected]"
RUN dnf -y install curl which bzip2 libgfortran git file man-db make \
gcc gcc-gfortran python3-pip python3-devel wget vim locmap-release
RUN dnf -y install locmap
RUN locmap --enable kerberos
RUN locmap --enable afs
RUN locmap --enable eosclient
RUN locmap --configure kerberos; exit 0
RUN locmap --configure afs; exit 0
RUN locmap --configure eosclient; exit 0
RUN dnf -y install eos-xrootd xrootd xrootd-client
WORKDIR /usr/local/xsuite
RUN wget https://github.com/conda-forge/miniforge/releases/download/4.14.0-0/Miniforge3-4.14.0-0-Linux-x86_64.sh
RUN bash Miniforge3-4.14.0-0-Linux-x86_64.sh -b -p /usr/local/xsuite/miniforge3
RUN rm Miniforge3-4.14.0-0-Linux-x86_64.sh
RUN source /usr/local/xsuite/miniforge3/bin/activate && \
conda init && \
conda create --name xsuite python=3.9 && \
conda activate xsuite && \
conda install pip && \
conda install compilers=1.5.1
RUN source /usr/local/xsuite/miniforge3/bin/activate && \
conda activate xsuite && \
conda install cupy=11.2 cudatoolkit=11.2.2
RUN source /usr/local/xsuite/miniforge3/bin/activate && \
conda activate xsuite && \
conda install matplotlib=3.6.1 numpy=1.23.4 scipy=1.9.1 pandas=1.5.0 lark=1.1.3 && \
conda install h5py=3.7.0 gpustat ipython=8.5.0 rich=12.6.0 cython=0.29.32 && \
pip install cpymad==1.10.0 && \
pip install PyHEADTAIL==1.16.0 && \
pip install xobjects==0.1.26 && \
pip install xdeps==0.0.10 && \
pip install xpart==0.9.2 && \
pip install xtrack==0.21.0 && \
pip list && \
conda clean --force-pkgs-dirs
RUN source /usr/local/xsuite/miniforge3/bin/activate && \
conda activate xsuite && \
git clone https://github.com/kparasch/xfields && \
cd xfields && \
git checkout develop-ecloud && \
pip install -e .
RUN echo "conda activate xsuite" >> ~/.bashrc