Skip to content

Commit

Permalink
fix: fix docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 committed Jun 17, 2024
1 parent 24fa784 commit 58aaebb
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 136 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,7 @@ doc/source/sg_execution_times.rst
*prin-stresses.html
doc/webserver.log
doc/webserver.pid


# Ignore any distributions directory to prevent accidental publications
distributions/
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"ansys-math-core": ("https://math.docs.pyansys.com/version/stable/", None),
}

suppress_warnings = ["label.*", "design.fa-build", "config.cache"]
suppress_warnings = ["label.*", "design.fa-build", "config.cache", "design.grid"]
sd_fontawesome_latex = True

# Graphviz diagrams configuration
Expand Down
98 changes: 0 additions & 98 deletions docker/Dockerfile

This file was deleted.

70 changes: 35 additions & 35 deletions docker/.dockerignore → docker/linux/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
**/aisol/lib/linx64/libaddress_sorting.so
**/aisol/lib/linx64/libans.autodyn.adbatch.so
**/aisol/lib/linx64/libans.autodyn.results_api.so
**/aisol/lib/linx64/libans.cadint.assemblycontainer231.so
**/aisol/lib/linx64/libans.cadint.assemblycontainerdrawing231.so
**/aisol/lib/linx64/libans.cadint.assemblycontainerdrawingold231.so
**/aisol/lib/linx64/libans.cadint.assemblycontainerserializer231.so
**/aisol/lib/linx64/libans.cadint.assemblycontainertesselation231.so
**/aisol/lib/linx64/libans.cadint.assemblycontainervirtualhelper231.so
**/aisol/lib/linx64/libans.cadint.assemblycontainer241.so
**/aisol/lib/linx64/libans.cadint.assemblycontainerdrawing241.so
**/aisol/lib/linx64/libans.cadint.assemblycontainerdrawingold241.so
**/aisol/lib/linx64/libans.cadint.assemblycontainerserializer241.so
**/aisol/lib/linx64/libans.cadint.assemblycontainertesselation241.so
**/aisol/lib/linx64/libans.cadint.assemblycontainervirtualhelper241.so
**/aisol/lib/linx64/libans.cadint.autovt.so
**/aisol/lib/linx64/libans.cadint.brepcomponent231.so
**/aisol/lib/linx64/libans.cadint.brepcomponentmeshinghelper231.so
**/aisol/lib/linx64/libans.cadint.brepcomponenttesselation231.so
**/aisol/lib/linx64/libans.cadint.brepgeometry231.so
**/aisol/lib/linx64/libans.cadint.brepserializer231.so
**/aisol/lib/linx64/libans.cadint.brepcomponent241.so
**/aisol/lib/linx64/libans.cadint.brepcomponentmeshinghelper241.so
**/aisol/lib/linx64/libans.cadint.brepcomponenttesselation241.so
**/aisol/lib/linx64/libans.cadint.brepgeometry241.so
**/aisol/lib/linx64/libans.cadint.brepserializer241.so
**/aisol/lib/linx64/libans.cadint.virtualtopo.so
**/aisol/lib/linx64/libans.modelmanager.core.so
**/aisol/lib/linx64/libans.modelmanager.engine.pm.so
Expand Down Expand Up @@ -151,32 +151,32 @@
**/aisol/StartPage
**/aisol/WBAddins
**/aisol/WBMWRegistry
**/ans_uninstall231
**/ans_uninstall241
**/ansys/bin/.change_ansysdir2022r2
**/ansys/bin/.change_ansysdir231
**/ansys/bin/.change_ansysdir241
**/ansys/bin/about.admin
**/ansys/bin/ans_admin
**/ansys/bin/ans_admin231
**/ansys/bin/ans_admin241
**/ansys/bin/ansconnect
**/ansys/bin/ansconnect231
**/ansys/bin/ansconnect241
**/ansys/bin/anshelp
**/ansys/bin/anshelp231
**/ansys/bin/anshelp241
**/ansys/bin/ansslurm
**/ansys/bin/ansslurm231
**/ansys/bin/ansslurm241
**/ansys/bin/anstclsh
**/ansys/bin/anstclsh231
**/ansys/bin/anstclsh241
**/ansys/bin/ansuge
**/ansys/bin/ansuge231
**/ansys/bin/ansuge241
**/ansys/bin/answish
**/ansys/bin/answish231
**/ansys/bin/answish241
**/ansys/bin/ansysts
**/ansys/bin/ansysts231
**/ansys/bin/ansysts241
**/ansys/bin/bintst
**/ansys/bin/bintst231
**/ansys/bin/bintst241
**/ansys/bin/launcher
**/ansys/bin/launcher231
**/ansys/bin/launcher241
**/ansys/bin/launchertcl
**/ansys/bin/launchertcl231
**/ansys/bin/launchertcl241
**/ansys/bin/linx64/.ansys_installed
**/ansys/bin/linx64/lsdyna_dp.e
**/ansys/bin/linx64/lsdyna_dp_mpp.e
Expand All @@ -185,27 +185,27 @@
**/ansys/bin/linx64/lsl2a.e
**/ansys/bin/linx64/lsl2a_dp.e
**/ansys/bin/lsdyna
**/ansys/bin/lsdyna231
**/ansys/bin/lsdyna241
**/ansys/bin/lsl2a
**/ansys/bin/lsl2a231
**/ansys/bin/lsl2a241
**/ansys/bin/lsrun
**/ansys/bin/lsrun231
**/ansys/bin/lsrun241
**/ansys/bin/nlhist
**/ansys/bin/nlhist231
**/ansys/bin/nlhist241
**/ansys/bin/rdresu
**/ansys/bin/rdresu231
**/ansys/bin/rdresu241
**/ansys/bin/rdsubs
**/ansys/bin/rdsubs231
**/ansys/bin/rdsubs241
**/ansys/bin/ResRdDemo
**/ansys/bin/ResRdDemo231
**/ansys/bin/ResRdDemo241
**/ansys/bin/ResWrDemo
**/ansys/bin/ResWrDemo231
**/ansys/bin/ResWrDemo241
**/ansys/bin/userprog
**/ansys/bin/userprog231
**/ansys/bin/userprog241
**/ansys/bin/wrtres
**/ansys/bin/wrtres231
**/ansys/bin/wrtres241
**/ansys/bin/wrtsub
**/ansys/bin/wrtsub231
**/ansys/bin/wrtsub241
**/ansys/bin/xansadmin.tcl
**/ansys/data
**/ansys/docu/ansadmin.hlp
Expand Down
129 changes: 129 additions & 0 deletions docker/linux/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Use Ubuntu 22.04 as the base image
FROM ubuntu:22.04

Check notice on line 2 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Healthcheck Instruction Missing

Rule ID: 173b76d2-0f47-4661-ae8a-14d8ed973e0f Severity: Low Resource: FROM={{ubuntu:22.04}} Ensure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working
Raw output
Expected: Dockerfile should contain instruction 'HEALTHCHECK'
Found: Dockerfile doesn't contain instruction 'HEALTHCHECK'

# Create the necessary directory
RUN mkdir -p /ansys_inc && \
echo "Directory created."

# Copy distribution files to /tmp
COPY distributions/*.tgz /tmp/

# Update package list, install tar, and extract the .tgz files in one RUN command
RUN apt-get update && \

Check warning on line 12 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y tar && cd /tmp && for file in *.tgz; do tar -xzf "$file" -C /ansys_inc; done && ls -l /ansys_inc && rm -rf /tmp/* && echo "Temporary files removed."}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'in' has version defined
Found: Package 'in' does not have version defined

Check warning on line 12 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y tar && cd /tmp && for file in *.tgz; do tar -xzf "$file" -C /ansys_inc; done && ls -l /ansys_inc && rm -rf /tmp/* && echo "Temporary files removed."}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'file' has version defined
Found: Package 'file' does not have version defined

Check warning on line 12 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y tar && cd /tmp && for file in *.tgz; do tar -xzf "$file" -C /ansys_inc; done && ls -l /ansys_inc && rm -rf /tmp/* && echo "Temporary files removed."}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'cd' has version defined
Found: Package 'cd' does not have version defined

Check warning on line 12 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y tar && cd /tmp && for file in *.tgz; do tar -xzf "$file" -C /ansys_inc; done && ls -l /ansys_inc && rm -rf /tmp/* && echo "Temporary files removed."}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'for' has version defined
Found: Package 'for' does not have version defined

Check warning on line 12 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y tar && cd /tmp && for file in *.tgz; do tar -xzf "$file" -C /ansys_inc; done && ls -l /ansys_inc && rm -rf /tmp/* && echo "Temporary files removed."}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'tar' has version defined
Found: Package 'tar' does not have version defined

Check notice on line 12 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

APT-GET Not Avoiding Additional Packages

Rule ID: 98f6c594-dedc-4db9-9eda-74c77e558d4a Severity: None Resource: FROM={{ubuntu:22.04}}.{{RUN apt-get update && apt-get install -y tar && cd /tmp && for file in *.tgz; do tar -xzf "$file" -C /ansys_inc; done && ls -l /ansys_inc && rm -rf /tmp/* && echo "Temporary files removed."}} Check if any apt-get installs don't use '--no-install-recommends' flag to avoid installing additional packages.
Raw output
Expected: 'RUN apt-get update &&     apt-get install -y tar &&     cd /tmp &&     for file in *.tgz; do tar -xzf "$file" -C /ansys_inc; done &&     ls -l /ansys_inc &&     rm -rf /tmp/* &&     echo "Temporary files removed."' uses '--no-install-recommends' flag to avoid installing additional packages
Found: 'RUN apt-get update &&     apt-get install -y tar &&     cd /tmp &&     for file in *.tgz; do tar -xzf "$file" -C /ansys_inc; done &&     ls -l /ansys_inc &&     rm -rf /tmp/* &&     echo "Temporary files removed."' does not use '--no-install-recommends' flag to avoid installing additional packages
apt-get install -y tar && \
cd /tmp && \
for file in *.tgz; do tar -xzf "$file" -C /ansys_inc; done && \
ls -l /ansys_inc && \
rm -rf /tmp/* && \
echo "Temporary files removed."

RUN apt-get update && apt-get install -y \

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libfreetype6' has version defined
Found: Package 'libfreetype6' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-image0' has version defined
Found: Package 'libxcb-image0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-keysyms1' has version defined
Found: Package 'libxcb-keysyms1' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxdmcp6' has version defined
Found: Package 'libxdmcp6' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-icccm4' has version defined
Found: Package 'libxcb-icccm4' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-xinerama0' has version defined
Found: Package 'libxcb-xinerama0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-xfixes0' has version defined
Found: Package 'libxcb-xfixes0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-util1' has version defined
Found: Package 'libxcb-util1' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libsm6' has version defined
Found: Package 'libsm6' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libmd0' has version defined
Found: Package 'libmd0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb1' has version defined
Found: Package 'libxcb1' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxkbcommon-x11-0' has version defined
Found: Package 'libxkbcommon-x11-0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libbsd0' has version defined
Found: Package 'libbsd0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-shm0' has version defined
Found: Package 'libxcb-shm0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libbrotli1' has version defined
Found: Package 'libbrotli1' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-sync1' has version defined
Found: Package 'libxcb-sync1' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-render-util0' has version defined
Found: Package 'libxcb-render-util0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-randr0' has version defined
Found: Package 'libxcb-randr0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libx11-6' has version defined
Found: Package 'libx11-6' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libice6' has version defined
Found: Package 'libice6' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxkbcommon0' has version defined
Found: Package 'libxkbcommon0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxau6' has version defined
Found: Package 'libxau6' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libpng16-16' has version defined
Found: Package 'libpng16-16' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxext6' has version defined
Found: Package 'libxext6' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-shape0' has version defined
Found: Package 'libxcb-shape0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libexpat1' has version defined
Found: Package 'libexpat1' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libx11-xcb1' has version defined
Found: Package 'libx11-xcb1' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-xkb1' has version defined
Found: Package 'libxcb-xkb1' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libfontconfig1' has version defined
Found: Package 'libfontconfig1' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxcb-render0' has version defined
Found: Package 'libxcb-render0' does not have version defined

Check warning on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libglib2.0-0' has version defined
Found: Package 'libglib2.0-0' does not have version defined

Check notice on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Lists Were Not Deleted

Rule ID: e890ec64-396e-4b66-85e0-bf45098bfa29 Severity: None Resource: FROM={{ubuntu:22.04}}.RUN={{apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} After using apt-get install, it is needed to delete apt-get lists
Raw output
Expected: After using apt-get install, the apt-get lists should be deleted
Found: After using apt-get install, the apt-get lists were not deleted

Check notice on line 20 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

APT-GET Not Avoiding Additional Packages

Rule ID: 98f6c594-dedc-4db9-9eda-74c77e558d4a Severity: None Resource: FROM={{ubuntu:22.04}}.{{RUN apt-get update && apt-get install -y libbrotli1 libbsd0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0 libice6 libmd0 libpng16-16 libsm6 libx11-6 libx11-xcb1 libxau6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxcb1 libxdmcp6 libxext6 libxkbcommon-x11-0 libxkbcommon0}} Check if any apt-get installs don't use '--no-install-recommends' flag to avoid installing additional packages.
Raw output
Expected: 'RUN apt-get update && apt-get install -y     libbrotli1     libbsd0     libexpat1     libfontconfig1     libfreetype6     libglib2.0-0     libice6     libmd0     libpng16-16     libsm6     libx11-6     libx11-xcb1     libxau6     libxcb-icccm4     libxcb-image0     libxcb-keysyms1     libxcb-randr0     libxcb-render-util0     libxcb-render0     libxcb-shape0     libxcb-shm0     libxcb-sync1     libxcb-util1     libxcb-xfixes0     libxcb-xinerama0     libxcb-xkb1     libxcb1     libxdmcp6     libxext6     libxkbcommon-x11-0     libxkbcommon0' uses '--no-install-recommends' flag to avoid installing additional packages
Found: 'RUN apt-get update && apt-get install -y     libbrotli1     libbsd0     libexpat1     libfontconfig1     libfreetype6     libglib2.0-0     libice6     libmd0     libpng16-16     libsm6     libx11-6     libx11-xcb1     libxau6     libxcb-icccm4     libxcb-image0     libxcb-keysyms1     libxcb-randr0     libxcb-render-util0     libxcb-render0     libxcb-shape0     libxcb-shm0     libxcb-sync1     libxcb-util1     libxcb-xfixes0     libxcb-xinerama0     libxcb-xkb1     libxcb1     libxdmcp6     libxext6     libxkbcommon-x11-0     libxkbcommon0' does not use '--no-install-recommends' flag to avoid installing additional packages
libbrotli1 \
libbsd0 \
libexpat1 \
libfontconfig1 \
libfreetype6 \
libglib2.0-0 \
libice6 \
libmd0 \
libpng16-16 \
libsm6 \
libx11-6 \
libx11-xcb1 \
libxau6 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-render0 \
libxcb-shape0 \
libxcb-shm0 \
libxcb-sync1 \
libxcb-util1 \
libxcb-xfixes0 \
libxcb-xinerama0 \
libxcb-xkb1 \
libxcb1 \
libxdmcp6 \
libxext6 \
libxkbcommon-x11-0 \
libxkbcommon0

ARG VERSION
ARG USERNAME=mapdl
ARG USER_UID=1000
ARG USER_GID=$USER_UID
ARG LICENSE_SERVER

ENV LICENSE_SERVER=$LICENSE_SERVER


# install the product
RUN /ansys_inc/INSTALL -silent -install_dir /ansys_inc -lic_server $LICENSE_SERVER


# Storing version in an env var
ENV ANSYS_VERSION=$VERSION

# Location env var
ENV AWP_ROOT222=/ansys_inc

# LABELS
LABEL description="MAPDL on Ubuntu"
LABEL email="[email protected]"

# OCI LABELS
LABEL org.opencontainers.image.documentation="https://mapdl.docs.pyansys.com"

# Update packages before installing dependencies

# Workaround for missing libxp.so
RUN apt install -y software-properties-common \

Check warning on line 82 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Pin Version Not Defined

Rule ID: e67722df-dbe0-4988-aa7a-0e96d0b5ed92 Severity: Medium Resource: FROM={{ubuntu:22.04}}.RUN={{apt install -y software-properties-common && add-apt-repository -y ppa:zeehio/libxp && apt-get update && apt-get install -y libxp6}} When installing a package, its pin version should be defined
Raw output
Expected: Package 'libxp6' has version defined
Found: Package 'libxp6' does not have version defined

Check warning on line 82 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Run Using apt

Rule ID: 08f558cd-22e2-4fa8-818a-521211e25375 Severity: Medium Resource: FROM={{ubuntu:22.04}}.{{RUN apt install -y software-properties-common && add-apt-repository -y ppa:zeehio/libxp && apt-get update && apt-get install -y libxp6}} apt is discouraged by the Linux distributions as an unattended tool as its interface may suffer changes between versions. Better use the more stable apt-get and apt-cache
Raw output
Expected: RUN instructions should not use the 'apt' program
Found: RUN instruction is invoking the 'apt' program

Check notice on line 82 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

Apt Get Install Lists Were Not Deleted

Rule ID: e890ec64-396e-4b66-85e0-bf45098bfa29 Severity: None Resource: FROM={{ubuntu:22.04}}.RUN={{apt install -y software-properties-common && add-apt-repository -y ppa:zeehio/libxp && apt-get update && apt-get install -y libxp6}} After using apt-get install, it is needed to delete apt-get lists
Raw output
Expected: After using apt-get install, the apt-get lists should be deleted
Found: After using apt-get install, the apt-get lists were not deleted

Check notice on line 82 in docker/linux/Dockerfile

View check run for this annotation

Wiz Inc. (572fc38784) / Wiz IaC Scanner

APT-GET Not Avoiding Additional Packages

Rule ID: 98f6c594-dedc-4db9-9eda-74c77e558d4a Severity: None Resource: FROM={{ubuntu:22.04}}.{{RUN apt install -y software-properties-common && add-apt-repository -y ppa:zeehio/libxp && apt-get update && apt-get install -y libxp6}} Check if any apt-get installs don't use '--no-install-recommends' flag to avoid installing additional packages.
Raw output
Expected: 'RUN apt install -y software-properties-common     && add-apt-repository -y ppa:zeehio/libxp     && apt-get update     && apt-get install -y libxp6' uses '--no-install-recommends' flag to avoid installing additional packages
Found: 'RUN apt install -y software-properties-common     && add-apt-repository -y ppa:zeehio/libxp     && apt-get update     && apt-get install -y libxp6' does not use '--no-install-recommends' flag to avoid installing additional packages
&& add-apt-repository -y ppa:zeehio/libxp \
&& apt-get update \
&& apt-get install -y libxp6

# Create the user
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME

# Cleaning up unnecessary files
RUN rm -rf /tmp/*

# Setting working directory
ENV WORKING_DIRECTORY=/jobs

# Setting home directory
ENV HOME=/home/$USERNAME

# Optional License server
# ENV LICENSE_SERVER=111.222.333.444
# ENV ANSYSLMD_LICENSE_FILE=1055@$LICENSE_SERVER

# Add a working directory and make it accessible to any user
RUN mkdir -p /home/$USERNAME/$WORKING_DIRECTORY \
&& chown -R $USERNAME:$USERNAME /home/$USERNAME/$WORKING_DIRECTORY \
&& chmod a+rwx /home/$USERNAME/$WORKING_DIRECTORY

# Setting other env vars
## For MAPDL awareness
ENV ON_DOCKER=TRUE
ENV OMPI_ALLOW_RUN_AS_ROOT=1
ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1

# Adding alias to ansys executable
RUN printf '#!/bin/bash\n/ansys_inc "$@"' > /usr/bin/ansys && \
chmod +x /usr/bin/ansys
RUN printf '#!/bin/bash\n/ansys_inc -grpc "$@"' > /usr/bin/ansysgrpc && \
chmod +x /usr/bin/ansysgrpc

# Setting user
USER $USERNAME
WORKDIR /home/$USERNAME/$WORKING_DIRECTORY

# Expose port
EXPOSE 50052

# Setting entrypoint
ENTRYPOINT [ "/ansys_inc", "-grpc", "-dir", "/home/$USERNAME/$WORKING_DIRECTORY" ]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ doc = [
"pypandoc==1.13",
"pytest-sphinx==0.6.3",
"pythreejs==2.4.2",
"pyvista[trame]==0.43.8",
"pyvista[trame]==0.43.9",
"sphinx-autobuild==2024.4.16",
"sphinx-autodoc-typehints==1.25.2",
"sphinx-copybutton==0.5.2",
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,3 @@ commands =
--env ANSYSLMD_LICENSE_FILE={env:ANSYSLMD_LICENSE_FILE} \
--name mapdl -p {env:LOCAL_MAPDL_PORT}:50052 \
{env:MAPDL_DOCKER_REGISTRY_URL} -smp

0 comments on commit 58aaebb

Please sign in to comment.