Skip to content

Commit

Permalink
feat(amazonlinux-2022): support and test amazonlinux 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Nov 7, 2022
1 parent 2e7fbba commit ba608b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ pipeline {
sh 'curl https://raw.githubusercontent.com/Kong/kong/master/scripts/setup-ci.sh | bash'
sh 'git clone --recursive --single-branch --branch ${KONG_SOURCE} https://github.com/Kong/kong-ee.git ${KONG_SOURCE_LOCATION}'
sh 'cp $PRIVATE_KEY_FILE kong.private.gpg-key.asc'
sh 'make RESTY_IMAGE_BASE=amazonlinux RESTY_IMAGE_TAG=2 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=centos RESTY_IMAGE_TAG=7 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=7.9 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=8.6 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=amazonlinux RESTY_IMAGE_TAG=2 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=amazonlinux RESTY_IMAGE_TAG=2022 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=centos RESTY_IMAGE_TAG=7 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=7.9 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=8.6 package-kong test cleanup'
}
}
stage('Kong Enterprise src & Alpine'){
Expand Down Expand Up @@ -229,6 +230,7 @@ pipeline {
sh 'git clone --single-branch --branch ${KONG_SOURCE} https://github.com/Kong/kong.git ${KONG_SOURCE_LOCATION}'
sh 'cp $PRIVATE_KEY_FILE kong.private.gpg-key.asc'
sh 'make RESTY_IMAGE_BASE=amazonlinux RESTY_IMAGE_TAG=2 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=amazonlinux RESTY_IMAGE_TAG=2022 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=centos RESTY_IMAGE_TAG=7 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=7.9 package-kong test cleanup'
sh 'make RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=8.6 package-kong test cleanup'
Expand Down
3 changes: 3 additions & 0 deletions fpm-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ elif [ "$PACKAGE_TYPE" == "rpm" ]; then
if [ "$RESTY_IMAGE_BASE" == "amazonlinux" ]; then
OUTPUT_FILE_SUFFIX=".aws"
FPM_PARAMS="$FPM_PARAMS -d /usr/sbin/useradd -d /usr/sbin/groupadd"
if [ "$RESTY_IMAGE_TAG" == "2022" ]; then
FPM_PARAMS="$FPM_PARAMS -d libxcrypt-compat"
fi
fi
if [ "$RESTY_IMAGE_BASE" == "centos" ]; then
OUTPUT_FILE_SUFFIX=".el${RESTY_IMAGE_TAG}"
Expand Down

0 comments on commit ba608b2

Please sign in to comment.