Skip to content

Commit

Permalink
Create a separate integration test image
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatnghiho committed Jan 24, 2025
1 parent 55621b1 commit a50c67f
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 63 deletions.
66 changes: 3 additions & 63 deletions tests/ci/docker_images/linux-x86/ubuntu-22.04_base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,107 +25,47 @@ RUN set -ex && \
apt-get -y --no-install-recommends install \
software-properties-common \
automake \
autoconf \
autoconf-archive \
autogen \
binutils-dev \
build-essential \
check \
cmake \
curl \
make \
ninja-build \
patch \
perl \
libunwind-dev \
pkg-config \
git \
gnutls-dev \
ca-certificates \
sudo \
wget \
clang-format \
doxygen \
gcovr \
gettext \
gobject-introspection \
gnupg \
gnutls-dev \
gperf \
groff \
iproute2 \
lcov \
lld \
llvm \
llvm-dev \
libcap-dev \
libcryptx-perl \
libcurl4-openssl-dev \
libevent-dev \
libfstrm-dev \
libftdi-dev \
libglib2.0-dev \
libgmp-dev \
libicu-dev \
libini-config-dev \
libio-socket-ssl-perl \
libipc-run-perl \
libjson-perl \
liblua5.4-dev \
libcap-ng-dev \
libcmocka0 \
libcmocka-dev \
libjemalloc-dev \
libjson-c-dev \
libltdl-dev \
liblz4-dev \
liblzo2-dev \
libnghttp2-dev \
libnet-dev \
libnet-ssleay-perl \
libnl-3-dev \
libnl-genl-3-dev \
libpam-dev \
libpam0g-dev \
libpcap-dev \
libperl-dev \
libpcre3-dev \
libpsl-dev \
libprotobuf-c-dev \
libpcre2-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libsystemd-dev \
libtool \
libudev-dev \
libunwind-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 \
socat \
uthash-dev \
zlib1g-dev \
dpkg-dev \
flex \
bison \
jq \
uuid-dev \
unzip && \
# Based on https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html
# The awscli is used to publish data to CloudWatch Metrics in some jobs. This requires additional IAM permission
pip3 install gcovr && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install --bin-dir /usr/bin && \
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 a50c67f

Please sign in to comment.