Skip to content

Commit

Permalink
ci: Custom ubuntu18 image (#3513)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch authored Sep 27, 2022
1 parent 72918cb commit c947a22
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 53 deletions.
2 changes: 1 addition & 1 deletion codebuild/bin/install_openssl_3_0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mkdir -p $INSTALL_DIR
$CONFIGURE shared -g3 -fPIC \
no-md2 no-rc5 no-rfc3779 no-sctp no-ssl-trace no-zlib \
no-hw no-mdc2 no-seed no-idea enable-ec_nistp_64_gcc_128 no-camellia\
no-bf no-ripemd no-dsa no-ssl2 no-ssl3 no-capieng \
no-bf no-ripemd no-dsa no-ssl2 no-ssl3 no-capieng no-dtls \
-DSSL_FORBID_ENULL -DOPENSSL_NO_DTLS1 -DOPENSSL_NO_HEARTBEATS \
--prefix="$INSTALL_DIR"

Expand Down
17 changes: 17 additions & 0 deletions codebuild/spec/buildspec_omnibus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: sawHMACPlus
SAW: true
Expand All @@ -31,6 +32,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: tls
SAW: true
Expand All @@ -52,6 +54,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: valgrind
GCC_VERSION: 6
Expand All @@ -63,6 +66,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: valgrind
GCC_VERSION: 9
Expand All @@ -74,6 +78,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: valgrind
GCC_VERSION: '6'
Expand All @@ -85,6 +90,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: valgrind
GCC_VERSION: '6'
Expand All @@ -96,6 +102,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: valgrind
GCC_VERSION: '6'
Expand All @@ -107,6 +114,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: asan
GCC_VERSION: '6'
Expand All @@ -119,6 +127,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: asan
GCC_VERSION: '6'
Expand All @@ -130,6 +139,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_SMALL
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: unit
GCC_VERSION: '9'
Expand Down Expand Up @@ -163,6 +173,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: interning
BUILD_S2N: 'true'
Expand All @@ -172,6 +183,7 @@ batch:
env:
privileged-mode: true
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
variables:
TESTS: interning
BUILD_S2N: 'true'
Expand All @@ -181,6 +193,7 @@ batch:
buildspec: codebuild/spec/buildspec_ubuntu.yml
env:
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
privileged-mode: true
variables:
GCC_VERSION: '6'
Expand All @@ -190,6 +203,7 @@ batch:
buildspec: codebuild/spec/buildspec_ubuntu.yml
env:
compute-type: BUILD_GENERAL1_SMALL
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
privileged-mode: true
variables:
TESTS: sharedandstatic
Expand All @@ -199,6 +213,7 @@ batch:
- buildspec: codebuild/spec/buildspec_ubuntu.yml
env:
compute-type: BUILD_GENERAL1_LARGE
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
privileged-mode: true
variables:
BUILD_S2N: true
Expand All @@ -211,6 +226,7 @@ batch:
- buildspec: codebuild/spec/buildspec_ubuntu.yml
env:
compute-type: BUILD_GENERAL1_SMALL
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
privileged-mode: true
variables:
BUILD_S2N: 'true'
Expand All @@ -223,6 +239,7 @@ batch:
- buildspec: codebuild/spec/buildspec_ubuntu.yml
env:
compute-type: BUILD_GENERAL1_SMALL
image: 024603541914.dkr.ecr.us-west-2.amazonaws.com/docker:ubuntu18codebuild
privileged-mode: true
variables:
BUILD_S2N: 'true'
Expand Down
35 changes: 2 additions & 33 deletions codebuild/spec/buildspec_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,46 +19,15 @@ env:
CB_BIN_DIR: "./codebuild/bin"

phases:
install:
runtime-versions:
python: 3.x
commands:
- echo Entered the install phase...
- |
if [ -d "third-party-src" ]; then
cd third-party-src;
fi
- $CB_BIN_DIR/install_ubuntu_dependencies.sh
- echo "We need a test PPA for gcc-9."
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
- apt-get update -o Acquire::CompressionTypes::Order::=gz
- apt-get update -y
- |
if expr "${GCC_VERSION}" : "9" >/dev/null; then
apt-get install -y --no-install-recommends g++ g++-9 gcc gcc-9;
fi
- |
if expr "${GCC_VERSION}" : "6" >/dev/null; then
apt-get install -y --no-install-recommends g++ g++-6 gcc gcc-6;
fi
# Don't install old clang and llvm if LATEST_CLANG is enabled, handle it in install_clang.sh instead
- |
if expr "${LATEST_CLANG}" != "true" >/dev/null; then
apt-get install -y --no-install-recommends clang-3.9 llvm-3.9;
fi
- apt-get install -y --no-install-recommends indent iproute2 kwstyle lcov libssl-dev m4 make net-tools nettle-bin nettle-dev pkg-config psmisc python3-pip shellcheck sudo tcpdump unzip valgrind zlib1g-dev zlibc cmake tox libtool ninja-build
pre_build:
commands:
- |
if [ -d "third-party-src" ]; then
cd third-party-src;
ln -s /usr/local $CODEBUILD_SRC_DIR/third-party-src/test-deps;
fi
- $CB_BIN_DIR/install_default_dependencies.sh
build:
commands:
- printenv
- ln -s /usr/local $CODEBUILD_SRC_DIR/test-deps
- $CB_BIN_DIR/s2n_codebuild.sh
post_build:
commands:
- echo Build completed on `date`
21 changes: 2 additions & 19 deletions codebuild/spec/buildspec_ubuntu_integrationv2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,16 @@ env:
CB_BIN_DIR: "./codebuild/bin"

phases:
install:
runtime-versions:
python: 3.x
commands:
- echo Entered the install phase...
- |
if [ -d "third-party-src" ]; then
cd third-party-src;
fi
- codebuild-breakpoint
- $CB_BIN_DIR/install_ubuntu_dependencies.sh
# Don't install old clang and llvm if LATEST_CLANG is enabled, handle it in install_clang.sh instead
- |
if expr "${LATEST_CLANG}" != "true" >/dev/null; then
apt-get install -y --no-install-recommends clang-3.9 llvm-3.9;
fi
- apt-get install -y --no-install-recommends indent iproute2 kwstyle lcov libssl-dev m4 make net-tools nettle-bin nettle-dev pkg-config psmisc python3-pip shellcheck sudo tcpdump unzip valgrind zlib1g-dev zlibc cmake tox libtool ninja-build
pre_build:
commands:
- |
if [ -d "third-party-src" ]; then
cd third-party-src;
ln -s /usr/local $CODEBUILD_SRC_DIR/third-party-src/test-deps;
fi
- $CB_BIN_DIR/install_default_dependencies.sh
- $CB_BIN_DIR/s2n_setup_env.sh
build:
commands:
# For jdk integration test
- javac tests/integrationv2/bin/SSLSocketClient.java
- ln -s /usr/local $CODEBUILD_SRC_DIR/test-deps
- TOX_TEST_NAME=$INTEGV2_TEST TESTS=integrationv2 $CB_BIN_DIR/s2n_codebuild.sh

0 comments on commit c947a22

Please sign in to comment.