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

auth-utils: add support in the native image #19619

Merged
merged 16 commits into from Sep 20, 2023
2 changes: 1 addition & 1 deletion docker/py3-native/CHANGELOG.md
@@ -1,7 +1,7 @@
# py3-native Changelog

## Unreleased

* Added support for the **auth-utils** image.
## 8.4.0
* Added *jq* as a build dependency and updated chromedriver download script to be in line with chromium.
* Updated py3-native to be based on ubi-9.2.
Expand Down
7 changes: 4 additions & 3 deletions docker/py3-native/Dockerfile
Expand Up @@ -37,6 +37,7 @@ RUN dnf update --nodocs -y \
&& chromedriver --version \
&& dnf install -y --enablerepo=$ROCKY_DEVEL --enablerepo=$ROCKY_BASE --nodocs git automake make autoconf libtool zlib clang zlib-devel libjpeg libjpeg-devel libwebp libwebp-devel \
libtiff libtiff-devel libpng libpng-devel pango giflib giflib-devel dejavu-sans-mono-fonts \
krb5-pkinit krb5-server krb5-server-ldap krb5-libs \
&& git clone --depth 1 -b $LEPTONICA_VERSION https://github.com/DanBloomberg/leptonica \
&& cd leptonica \
&& ./autogen.sh && ./configure && make && make install && ldconfig \
Expand All @@ -61,13 +62,13 @@ RUN dnf update --nodocs -y \

# handles os dependencies for: crypto + readpdf + parse-emails + docxpy + sklearn + pandas + ippysocks-py3 + oauthlib
# unzip + py3ews + taxii2 + pan-os-python + slackv3 + google-api-py3 + boto3py3
# pyjwt3 + joe-security + slack + office-utils
# pyjwt3 + joe-security + slack + office-utils + auth-utils
ilappe marked this conversation as resolved.
Show resolved Hide resolved

# line 6 - since in ubi its 7za --> need to make it to run as 7z like our script
# lines 8-10 is the configuration for sklearn
# lines 12-14 - ssl fixes
RUN dnf install -y --nodocs --enablerepo=$ROCKY_RELEASE python3-devel gcc gcc-c++ make wget git poppler poppler-utils \
rust cargo libxml2-devel libxslt-devel \
rust cargo libxml2-devel libxslt-devel krb5-devel \
libffi-devel openssl-devel libffi libSM mesa-libGL \
openssh ca-certificates openssl less rsync libpng-devel freetype-devel gcc-gfortran openblas unzip libstdc++ libreoffice \
&& dnf install -y --nodocs --enablerepo=$FEDORA_EPEL p7zip unrar \
Expand All @@ -80,7 +81,7 @@ RUN dnf install -y --nodocs --enablerepo=$ROCKY_RELEASE python3-devel gcc gcc-c+
&& sed -i 's/##legacy = legacy_sect/legacy = legacy_sect/' /etc/pki/tls/openssl.cnf \
&& sed -i 's/##\[legacy_sect\]/\[legacy_sect\]/' /etc/pki/tls/openssl.cnf \
&& sed -i 's/##activate = 1/activate = 1/' /etc/pki/tls/openssl.cnf \
&& dnf remove -y python3-devel rust cargo libffi-devel openssl-devel gcc gcc-c++ make git platform-python-pip \
&& dnf remove -y python3-devel rust cargo libffi-devel openssl-devel gcc gcc-c++ make git platform-python-pip krb5-devel \
&& dnf clean all \
&& rm -rf /var/cache/dnf /root/.cargo \
&& pip uninstall -y pcodedmp
Expand Down
2 changes: 2 additions & 0 deletions docker/py3-native/README.md
Expand Up @@ -102,6 +102,7 @@ This README purpose is to clarify the following:
* slack
* office-utils
* netutils
* auth-utils


## Verifiers Folder
Expand Down Expand Up @@ -133,6 +134,7 @@ That is done in order to keep updated with the python dependencies the original
* **slack:** python3-devel gcc gcc-c++ make wget git libffi
* **office-utils:** LibreOffice_Linux_x86-64_rpm java-11-openjdk-headless cairo libSM libX11-xcb
* **netutils:** curl bind-utils openssl iputils nmap
* **auth-utils:** krb5-pkinit krb5-server krb5-server-ldap krb5-libs krb5-devel

## Good To Know
* The packages that are being removed by `dnf remove` at the end are packages that are required **only** during the installation of python dependencies, once the python packages are installed they can be removed.
Expand Down