Skip to content

Commit c9971aa

Browse files
committed
fix amazonlinux and ubi8 base builds
1 parent 27c1de6 commit c9971aa

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

.github/docker-images/base-images/device-client/amazonlinux/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM amazonlinux:2.0.20230307.0 as base
1+
FROM amazonlinux:2 as base
22

33
ARG OPENSSL_VERSION=3.0.8
44

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

26+
WORKDIR /tmp
27+
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/e7797b12-ce87-4df0-aa09-df4a272fc5d9/intel-vtune-2025.0.0.1130.sh \
28+
&& sh ./intel-vtune-2025.0.0.1130.sh -a --silent --eula accept
29+
2630
###############################################################################
2731
# Install OpenSSL 3.0.8
2832
###############################################################################

.github/docker-images/base-images/device-client/ubi8/Dockerfile

+12-16
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ ARG OPENSSL_VERSION=3.0.8
88
# Install prereqs
99
###############################################################################
1010
RUN yum -y update \
11-
&& yum -y install \
11+
&& yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
12+
13+
RUN yum -y install \
1214
tar \
1315
bzip2 \
1416
git \
@@ -20,16 +22,22 @@ RUN yum -y update \
2022
gcc-c++ \
2123
perl-IPC-Cmd \
2224
perl-Pod-Html \
25+
softhsm \
26+
openssl-devel \
2327
&& yum clean all \
2428
&& rm -rf /var/cache/yum
2529

30+
WORKDIR /tmp
31+
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/e7797b12-ce87-4df0-aa09-df4a272fc5d9/intel-vtune-2025.0.0.1130.sh \
32+
&& sh ./intel-vtune-2025.0.0.1130.sh -a --silent --eula accept
33+
2634
###############################################################################
2735
# Install pre-built CMake
2836
###############################################################################
2937
WORKDIR /tmp
30-
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 \
31-
&& tar -zxvf cmake-3.10.0.tar.gz \
32-
&& cd cmake-3.10.0 \
38+
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 \
39+
&& tar -zxvf cmake-3.24.0.tar.gz \
40+
&& cd cmake-3.24.0 \
3341
&& ./bootstrap \
3442
&& make \
3543
&& make install
@@ -45,18 +53,6 @@ RUN wget https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz \
4553
&& make \
4654
&& make install
4755

48-
###############################################################################
49-
# Install softhsm v2.3.0 from source
50-
###############################################################################
51-
52-
WORKDIR /tmp
53-
RUN wget https://dist.opendnssec.org/source/softhsm-2.3.0.tar.gz \
54-
&& tar -xzf softhsm-2.3.0.tar.gz \
55-
&& cd softhsm-2.3.0 \
56-
&& ./configure --disable-gost \
57-
&& make \
58-
&& make install
59-
6056
###############################################################################
6157
# Clone and build Google Test
6258
###############################################################################

.github/workflows/e2e-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ jobs:
203203
file: .github/docker-images/Dockerfile
204204
context: .
205205
build-args: |
206-
OS=amazonlinux:2022.0.20221207.4
206+
OS=amazonlinux:2
207207
BASE_IMAGE=public.ecr.aws/${{ env.ECR_BASE_REPO }}:x86_64-amazonlinux-latest
208208
push: true
209209
tags: |
@@ -241,7 +241,7 @@ jobs:
241241
file: .github/docker-images/Dockerfile
242242
context: .
243243
build-args: |
244-
OS=amazonlinux:2022.0.20221207.4
244+
OS=amazonlinux:2
245245
BASE_IMAGE=public.ecr.aws/${{ env.ECR_BASE_REPO }}:aarch64-amazonlinux-latest
246246
push: true
247247
tags: |

.github/workflows/release-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ jobs:
206206
file: .github/docker-images/Dockerfile
207207
context: .
208208
build-args: |
209-
OS=amazonlinux:latest
209+
OS=amazonlinux:2
210210
BASE_IMAGE=public.ecr.aws/${{ env.ECR_BASE_REPO }}:x86_64-amazonlinux-latest
211211
push: true
212212
tags: |
@@ -247,7 +247,7 @@ jobs:
247247
file: .github/docker-images/Dockerfile
248248
context: .
249249
build-args: |
250-
OS=amazonlinux:latest
250+
OS=amazonlinux:2
251251
BASE_IMAGE=public.ecr.aws/${{ env.ECR_BASE_REPO }}:aarch64-amazonlinux-latest
252252
push: true
253253
tags: |

0 commit comments

Comments
 (0)