-
Notifications
You must be signed in to change notification settings - Fork 201
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (33 loc) · 1.68 KB
/
Copy pathDockerfile
File metadata and controls
39 lines (33 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC
FROM amazonlinux-2:gcc-7x
SHELL ["/bin/bash", "-c"]
ENV SDE_VERSION_TAG=sde-external-9.44.0-2024-08-22-lin
ENV SDE_MIRROR_URL="https://downloadmirror.intel.com/831748/sde-external-9.44.0-2024-08-22-lin.tar.xz"
# Enable the EPEL repository on Amazon Linux 2 before installing packages
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/add-repositories.html
# gcc 7.3.1 is the latest version versions `yum --showduplicates list gcc`
# Install Valgrind for Valgrind test target even though it is not needed for the base test target.
RUN set -ex && \
yum -y update && yum install -y \
# Without glibc.i686, running "./sde --help" generates error "bash: ./sde: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory"
glibc.i686 \
# This provides command `getenforce`, which can tell the current status of SELinux.
# Based on Interl SDE README, SELinux should be turned off to allow pin to work.
libselinux-utils \
wget \
xz \
tar && \
# Install Intel® Software Development Emulator
# This emulator is needed when running BoringSSL/AWS-LC code under Intel's SDE for each supported chip (like ice lake).
# https://software.intel.com/content/www/us/en/develop/articles/intel-software-development-emulator.html#system-configuration
wget ${SDE_MIRROR_URL} && tar -xJf "${SDE_VERSION_TAG}.tar.xz" && rm "${SDE_VERSION_TAG}.tar.xz" && \
yum clean packages && \
yum clean metadata && \
yum clean all && \
rm -rf /tmp/* && \
rm -rf /var/cache/yum
ENV CC=gcc
ENV CXX=g++
ENV SDEROOT="/${SDE_VERSION_TAG}"
ENV PATH="$SDEROOT:$PATH"