Skip to content

Commit

Permalink
Prepare Docker image for CI integration jobs (#2126)
Browse files Browse the repository at this point in the history
### Description of changes: 
Install packages needed for running CI integration jobs successfully.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.

---------

Co-authored-by: Andrew Hopkins <[email protected]>
  • Loading branch information
nhatnghiho and andrewhop authored Jan 31, 2025
1 parent 35da9fe commit a38dc2e
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/ci/docker_images/linux-x86/build_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ docker build -t ubuntu-22.04:clang-14x-sde ubuntu-22.04_clang-14x-sde
docker build -t ubuntu-22.04:gcc-10x ubuntu-22.04_gcc-10x
docker build -t ubuntu-22.04:gcc-11x ubuntu-22.04_gcc-11x
docker build -t ubuntu-22.04:gcc-12x ubuntu-22.04_gcc-12x
docker build -t ubuntu-22.04:gcc-12x_integration ubuntu-22.04_gcc-12x_integration
docker build -t amazonlinux-2:base -f amazonlinux-2_base/Dockerfile ../dependencies
docker build -t amazonlinux-2:gcc-7x amazonlinux-2_gcc-7x
docker build -t amazonlinux-2:gcc-7x-intel-sde amazonlinux-2_gcc-7x-intel-sde
Expand Down
1 change: 1 addition & 0 deletions tests/ci/docker_images/linux-x86/push_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ tag_and_push_img 'ubuntu-22.04:clang-14x-sde' "${ECS_REPO}:ubuntu-22.04_clang-14
tag_and_push_img 'ubuntu-22.04:gcc-10x' "${ECS_REPO}:ubuntu-22.04_gcc-10x"
tag_and_push_img 'ubuntu-22.04:gcc-11x' "${ECS_REPO}:ubuntu-22.04_gcc-11x"
tag_and_push_img 'ubuntu-22.04:gcc-12x' "${ECS_REPO}:ubuntu-22.04_gcc-12x"
tag_and_push_img 'ubuntu-22.04:gcc-12x_integration' "${ECS_REPO}:ubuntu-22.04_gcc-12x_integration"
tag_and_push_img 'ubuntu-22.04:clang-14x_formal-verification-nsym-aarch64' "${ECS_REPO}:ubuntu-22.04_clang-14x_formal-verification-nsym-aarch64"
tag_and_push_img 'centos-7:gcc-4x' "${ECS_REPO}:centos-7_gcc-4x"
tag_and_push_img 'centos-8:gcc-8x' "${ECS_REPO}:centos-8_gcc-8x"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RUN set -ex && \
cmake \
curl \
make \
sudo \
ninja-build \
patch \
perl \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC

FROM ubuntu-22.04:gcc-12x

SHELL ["/bin/bash", "-c"]

RUN set -ex && \
apt-get update && \
apt-get -y --no-install-recommends upgrade && \
apt-get -y --no-install-recommends install \
autoconf \
autoconf-archive \
autogen \
binutils-dev \
build-essential \
clang-format \
doxygen \
gcovr \
gettext \
gobject-introspection \
gnupg \
gperf \
groff \
iproute2 \
lcov \
libcap-dev \
libcurl4-openssl-dev \
libevent-dev \
libfstrm-dev \
libftdi-dev \
libglib2.0-dev \
libgmp-dev \
libini-config-dev \
libcap-ng-dev \
libcmocka0 \
libcmocka-dev \
libjemalloc-dev \
libjson-c-dev \
libltdl-dev \
liblz4-dev \
liblzo2-dev \
libnghttp2-dev \
libnl-3-dev \
libnl-genl-3-dev \
libpam-dev \
libpcre3-dev \
libpsl-dev \
libprotobuf-c-dev \
libssl-dev \
libsystemd-dev \
liburcu-dev \
libusb-1.0-0-dev \
libuv1-dev \
libyaml-dev \
net-tools \
openjdk-11-jdk \
openssl \
pandoc \
procps \
protobuf-c-compiler \
python3 \
python3-docutils \
python3-pip \
python3-pytest \
python3-six \
python3-sphinx \
ruby \
uthash-dev \
uuid-dev && \
pip3 install gcovr && \
apt-get autoremove --purge -y && \
apt-get clean && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*

RUN adduser --disabled-password --gecos '' integration && \
adduser integration sudo && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

0 comments on commit a38dc2e

Please sign in to comment.