You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(docker exec"$MAPDL_INSTANCE" /bin/bash -c "mkdir -p /mapdl_logs && echo 'Successfully created directory inside docker container'") ||echo"Failed to create a directory inside docker container for logs."
21
+
(docker exec"$MAPDL_INSTANCE" /bin/bash -c "if compgen -G '$FILE*.out' > /dev/null ;then cp -f /file*.out /mapdl_logs && echo 'Successfully copied out files.'; fi") ||echo"Failed to copy the 'out' files into a local file"
22
+
(docker exec"$MAPDL_INSTANCE" /bin/bash -c "if compgen -G '$FILE*.err' > /dev/null ;then cp -f /file*.err /mapdl_logs && echo 'Successfully copied err files.'; fi") ||echo"Failed to copy the 'err' files into a local file"
23
+
(docker exec"$MAPDL_INSTANCE" /bin/bash -c "if compgen -G '$FILE*.log' > /dev/null ;then cp -f /file*.log /mapdl_logs && echo 'Successfully copied log files.'; fi") ||echo"Failed to copy the 'log' files into a local file"
24
+
(docker exec"$MAPDL_INSTANCE" /bin/bash -c "if compgen -G '$WDIR*.crash' > /dev/null ;then cp -f /*.crash /mapdl_logs && echo 'Successfully copied crash files.'; fi") ||echo"Failed to copy the 'crash' files into a local file"
25
+
26
+
docker cp "$MAPDL_INSTANCE":/mapdl_logs/. ./"$LOG_NAMES"/. ||echo"Failed to copy the 'log-build-docs' files into a local directory"
27
+
28
+
####
29
+
echo"Collecting local build logs..."
30
+
31
+
echo"Collecting docker run log..."
32
+
cp log.txt ./"$LOG_NAMES"/log.txt ||echo"MAPDL run docker log not found."
33
+
34
+
echo"Copying docker launch log..."
35
+
cp mapdl_launch_0.log ./"$LOG_NAMES"/mapdl_launch_0.log ||echo"MAPDL launch docker log not found."
36
+
cp mapdl_launch_1.log ./"$LOG_NAMES"/mapdl_launch_1.log ||echo"MAPDL launch docker log not found."
37
+
38
+
echo"Collecting file structure..."
39
+
ls -R > ./"$LOG_NAMES"/files_structure.txt ||echo"Failed to copy file structure to a file"
40
+
41
+
echo"Collecting docker file structure..."
42
+
docker exec"$MAPDL_INSTANCE" /bin/bash -c "ls -R"> ./"$LOG_NAMES"/docker_files_structure.txt ||echo"Failed to copy the docker structure into a local file"
43
+
44
+
echo"Tar files..."
45
+
tar cvzf ./"$LOG_NAMES".tgz ./"$LOG_NAMES"||echo"Failed to compress"
0 commit comments