Skip to content

Commit

Permalink
Merge pull request #2125 from wazuh/2124-error-with-aws-cli-in-wpk-li…
Browse files Browse the repository at this point in the history
…nux-builder-container-to4.4

Updated Python 3.4 to 3.7 to resolve AWS CLI issues in WPK build container
  • Loading branch information
DFolchA authored Mar 14, 2023
2 parents 9e3756a + a53c1f1 commit c5f3306
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions wpk/linux/x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN rm /etc/yum.repos.d/* && echo "exactarch=1" >> /etc/yum.conf
COPY CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo

RUN yum -y install epel-release && \
yum -y install gcc make git python34 python34-pip python34-devel python34-cffi \
yum -y install gcc make git gcc-c++ \
jq sudo gnupg automake \
autoconf wget libtool policycoreutils-python \
yum-utils epel-release redhat-rpm-config rpm-devel \
Expand All @@ -17,8 +17,6 @@ RUN yum -y install epel-release && \
libarchive-devel elfutils-libelf-devel \
elfutils-libelf patchelf elfutils-devel libgcrypt-devel

RUN yum-builddep python34 -y

RUN curl -OL http://packages.wazuh.com/utils/gcc/gcc-9.4.0.tar.gz && \
tar xzf gcc-9.4.0.tar.gz && cd gcc-9.4.0/ && \
./contrib/download_prerequisites && \
Expand All @@ -41,7 +39,18 @@ RUN curl -OL http://packages.wazuh.com/utils/openssl/openssl-1.1.1a.tar.gz && \
tar xf openssl-1.1.1a.tar.gz && cd openssl-1.1.1a && \
./config --prefix=/usr/ --openssldir=/usr/ shared zlib && \
make -j$(nproc) && make install && echo "/usr/lib" > /etc/ld.so.conf.d/openssl-1.1.1a.conf && \
ldconfig -v && cd / && rm -rf openssl-1.1.1a*
ldconfig -v && cd / && rm -rf openssl-1.1.1a*

RUN yum install zlib-devel libffi-devel -y

RUN wget https://www.python.org/ftp/python/3.7.16/Python-3.7.16.tgz

RUN tar xvf Python-3.7.16.tgz

RUN cd Python-3.7.16 && \
./configure && \
make && \
make install

RUN pip3 install cryptography==2.9.2 typing awscli
RUN pip3 install --upgrade botocore==1.20.54
Expand Down

0 comments on commit c5f3306

Please sign in to comment.