Skip to content

Commit

Permalink
fix amazonlinux and ubi8 base builds
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerZhongAWS committed Dec 20, 2024
1 parent 27c1de6 commit c9971aa
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM amazonlinux:2.0.20230307.0 as base
FROM amazonlinux:2 as base

ARG OPENSSL_VERSION=3.0.8

Expand All @@ -23,6 +23,10 @@ RUN yum -y update \
&& yum clean all \
&& rm -rf /var/cache/yum

WORKDIR /tmp
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/e7797b12-ce87-4df0-aa09-df4a272fc5d9/intel-vtune-2025.0.0.1130.sh \
&& sh ./intel-vtune-2025.0.0.1130.sh -a --silent --eula accept

###############################################################################
# Install OpenSSL 3.0.8
###############################################################################
Expand Down
28 changes: 12 additions & 16 deletions .github/docker-images/base-images/device-client/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ ARG OPENSSL_VERSION=3.0.8
# Install prereqs
###############################################################################
RUN yum -y update \
&& yum -y install \
&& yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

RUN yum -y install \
tar \
bzip2 \
git \
Expand All @@ -20,16 +22,22 @@ RUN yum -y update \
gcc-c++ \
perl-IPC-Cmd \
perl-Pod-Html \
softhsm \
openssl-devel \
&& yum clean all \
&& rm -rf /var/cache/yum

WORKDIR /tmp
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/e7797b12-ce87-4df0-aa09-df4a272fc5d9/intel-vtune-2025.0.0.1130.sh \
&& sh ./intel-vtune-2025.0.0.1130.sh -a --silent --eula accept

###############################################################################
# Install pre-built CMake
###############################################################################
WORKDIR /tmp
RUN curl -sSL https://github.com/Kitware/CMake/releases/download/v3.10.0/cmake-3.10.0.tar.gz -o cmake-3.10.0.tar.gz \
&& tar -zxvf cmake-3.10.0.tar.gz \
&& cd cmake-3.10.0 \
RUN curl -sSL https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0.tar.gz -o cmake-3.24.0.tar.gz \
&& tar -zxvf cmake-3.24.0.tar.gz \
&& cd cmake-3.24.0 \
&& ./bootstrap \
&& make \
&& make install
Expand All @@ -45,18 +53,6 @@ RUN wget https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz \
&& make \
&& make install

###############################################################################
# Install softhsm v2.3.0 from source
###############################################################################

WORKDIR /tmp
RUN wget https://dist.opendnssec.org/source/softhsm-2.3.0.tar.gz \
&& tar -xzf softhsm-2.3.0.tar.gz \
&& cd softhsm-2.3.0 \
&& ./configure --disable-gost \
&& make \
&& make install

###############################################################################
# Clone and build Google Test
###############################################################################
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ jobs:
file: .github/docker-images/Dockerfile
context: .
build-args: |
OS=amazonlinux:2022.0.20221207.4
OS=amazonlinux:2
BASE_IMAGE=public.ecr.aws/${{ env.ECR_BASE_REPO }}:x86_64-amazonlinux-latest
push: true
tags: |
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
file: .github/docker-images/Dockerfile
context: .
build-args: |
OS=amazonlinux:2022.0.20221207.4
OS=amazonlinux:2
BASE_IMAGE=public.ecr.aws/${{ env.ECR_BASE_REPO }}:aarch64-amazonlinux-latest
push: true
tags: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ jobs:
file: .github/docker-images/Dockerfile
context: .
build-args: |
OS=amazonlinux:latest
OS=amazonlinux:2
BASE_IMAGE=public.ecr.aws/${{ env.ECR_BASE_REPO }}:x86_64-amazonlinux-latest
push: true
tags: |
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
file: .github/docker-images/Dockerfile
context: .
build-args: |
OS=amazonlinux:latest
OS=amazonlinux:2
BASE_IMAGE=public.ecr.aws/${{ env.ECR_BASE_REPO }}:aarch64-amazonlinux-latest
push: true
tags: |
Expand Down

0 comments on commit c9971aa

Please sign in to comment.