forked from willfurnass/abaqus-2017-centos-7-singularity
-
Notifications
You must be signed in to change notification settings - Fork 1
/
abaqus-centos-7.def
41 lines (31 loc) · 1.23 KB
/
abaqus-centos-7.def
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
BootStrap: docker
From: centos:7
OSVersion: 7
MirrorURL: http://mirror.centos.org/centos-%{OSVERSION}/%{OSVERSION}/os/$basearch/
Include: yum
%files
assets/2018/ /abqbuild/
assets/VirtualGL.repo /etc/yum.repos.d
assets/VirtualGL.key /abqbuild/
assets/graphicsConfig.env.ext /abqbuild/
%setup
mkdir -p ${SINGULARITY_ROOTFS}/iso-unpacked/
mkdir -p ${SINGULARITY_ROOTFS}/cfgs/
cp assets/VirtualGL.repo ${SINGULARITY_ROOTFS}/etc/yum.repos.d
cp assets/UserIntentions_DOC.xml ${SINGULARITY_ROOTFS}/cfgs/
cp assets/simulation-services-UserIntentions_CODE.xml ${SINGULARITY_ROOTFS}/cfgs/
cp assets/cae-UserIntentions_CODE.xml ${SINGULARITY_ROOTFS}/cfgs/
cp assets/UserIntentions_CAA_Additional.xml ${SINGULARITY_ROOTFS}/cfgs/
%post
cd /iso-unpacked/
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
until yum makecache -y --disablerepo='*' --enablerepo='VirtualGL'; do :;done
yum install -y ksh redhat-lsb-core perl VirtualGL libjpeg-turbo which gcc-gfortran vim gcc-c++ glibc.i686 glx-utils
yum clean all && rm -rf /var/cache/yum
mkdir /calc
%environment
export PATH=/opt/abaqus/Commands:/opt/abaqus/2017/Commands:$PATH
%runscript
vglrun abaqus cae -mesa
%labels
Version v0.2.1