-
Notifications
You must be signed in to change notification settings - Fork 11
/
abaqus-2017-centos-7.def
32 lines (27 loc) · 1.29 KB
/
abaqus-2017-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
BootStrap: docker
From: centos:7
%setup
mkdir -p ${SINGULARITY_ROOTFS}/iso-unpacked/
bsdtar xf Abaqus2017.iso -C ${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
yum install -y ksh redhat-lsb-core perl VirtualGL libjpeg-turbo
yum clean all && rm -rf /var/cache/yum
ksh ./1/SIMULIA_Documentation/AllOS/1/StartTUI.sh --silent /cfgs/UserIntentions_DOC.xml
ksh ./2/SIMULIA_AbaqusServices/Linux64/1/StartTUI.sh --silent /cfgs/simulation-services-UserIntentions_CODE.xml
ksh ./2/SIMULIA_Abaqus_CAE/Linux64/1/StartTUI.sh --silent /cfgs/cae-UserIntentions_CODE.xml
ksh ./2/SIMULIA_AbaqusServices_CAA_API/Linux64/1/StartTUI.sh --silent /cfgs/UserIntentions_CAA_Additional.xml
%environment
export PATH=/opt/abaqus/2017/Commands:$PATH
%runscript
vglrun abaqus cae
%labels
Maintainer willfurnass
Version v0.1