Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abqfix #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions abq2022hf1/Dockerfile → abq2022hf6/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=lbt:ifort
ARG BASE_IMAGE=kamaro:ifort
FROM ${BASE_IMAGE}
ARG user
ARG uid
Expand All @@ -17,14 +17,14 @@ RUN \
ls *.tar | xargs -i tar xf {}
RUN \
# download and unpack hotfixes
curl -O http://ftp.scc.kit.edu/pub/campus/ABAQUS/SIMULIA_2022/updates/2022.FP.CFA.2205.Part_SIMULIA_EstPrd.Linux64.tar && \
tar -xvf 2022.FP.CFA.2205.Part_SIMULIA_EstPrd.Linux64.tar
curl -O http://ftp.scc.kit.edu/pub/campus/ABAQUS/SIMULIA_2022/updates/2022.FP.CFA.2250.Part_SIMULIA_EstPrd.Linux64.tar && \
tar -xvf 2022.FP.CFA.2250.Part_SIMULIA_EstPrd.Linux64.tar
RUN \
# change `lsb_release --short --id |sed 's/ //g'` to "CentOS" in base installation and hotfixes
sed -i "s/\`lsb_release --short --id |sed 's\/ \/\/g'\`/\"CentOS\"/g" ./AM_SIM_Abaqus_Extend.AllOS/4/SIMULIA_EstablishedProducts/Linux64/1/inst/common/init/Linux.sh && \
sed -i "s/\`lsb_release --short --id |sed 's\/ \/\/g'\`/\"CentOS\"/g" ./AM_SIM_Abaqus_Extend.AllOS/5/SIMULIA_EstablishedProducts_CAA_API/Linux64/1/inst/common/init/Linux.sh && \
sed -i "s/\`lsb_release --short --id |sed 's\/ \/\/g'\`/\"CentOS\"/g" ./Part_SIMULIA_EstPrd.Linux64/1/Software/SIMULIA_EstPrd.HF1.Linux64/1/inst/common/init/Linux.sh && \
sed -i "s/\`lsb_release --short --id |sed 's\/ \/\/g'\`/\"CentOS\"/g" ./Part_SIMULIA_EstPrd.Linux64/1/Software/CAASIMULIA_EstPrd.HF1.Linux64/1/inst/common/init/Linux.sh
sed -i "s/\`lsb_release --short --id |sed 's\/ \/\/g'\`/\"CentOS\"/g" ./Part_SIMULIA_EstPrd.Linux64/1/Software/SIMULIA_EstPrd.HF6.Linux64/1/inst/common/init/Linux.sh && \
sed -i "s/\`lsb_release --short --id |sed 's\/ \/\/g'\`/\"CentOS\"/g" ./Part_SIMULIA_EstPrd.Linux64/1/Software/CAASIMULIA_EstPrd.HF6.Linux64/1/inst/common/init/Linux.sh

# config file for 'silent' base installation
COPY --chown=${uid}:${uid} UserIntentions_CODE.xml "/UserIntentions_CODE.xml"
Expand All @@ -44,21 +44,21 @@ RUN \
RUN \
cd ./Part_SIMULIA_EstPrd.Linux64/1/Software/ && \
# CODE install hotfixes
./SIMULIA_EstPrd.HF1.Linux64/1/StartTUI.sh --silent /UserIntentions_CODE.xml && \
./SIMULIA_EstPrd.HF6.Linux64/1/StartTUI.sh --silent /UserIntentions_CODE.xml && \
# CAA install hotfixes
./CAASIMULIA_EstPrd.HF1.Linux64/1/StartTUI.sh --silent /UserIntentions_CAA.xml && \
./CAASIMULIA_EstPrd.HF6.Linux64/1/StartTUI.sh --silent /UserIntentions_CAA.xml && \
cd ../../../
RUN \
# remove archives, installation files and config files
rm /Part_SIMULIA_EstPrd.Linux64 -rf && \
rm /2022.FP.CFA.2205.Part_SIMULIA_EstPrd.Linux64.tar -f && \
rm /2022.FP.CFA.2250.Part_SIMULIA_EstPrd.Linux64.tar -f && \
rm /UserIntentions_CAA.xml /UserIntentions_CODE.xml
RUN \
# setup license
mkdir -p /var/DassaultSystemes/Licenses/ && \
echo 'scclic5.scc.kit.edu:4085' > /var/DassaultSystemes/Licenses/DSLicSrv.txt && \
echo 'scclic7.scc.kit.edu:4085' > /var/DassaultSystemes/Licenses/DSLicSrv.txt && \
# symlink abaqus to abq2022
ln /var/DassaultSystemes/SIMULIA/Commands/abq2022hf1 /usr/bin/abaqus
ln /var/DassaultSystemes/SIMULIA/Commands/abq2022hf6 /usr/bin/abaqus

RUN \
# install old dependency for pip
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion workspaces
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ declare -A WORKSPACES=(
['beteigeuze']='~/kamaro/beteigeuze_ws 192.168.1.42'
['virtualfre']='~/kamaro/fre21_ws'
['ros2']=' ~/kamaro/foxy_ws'
)
)