Skip to content

Commit

Permalink
Build fixes after testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gary.archer committed Sep 3, 2024
1 parent 2f6489e commit e2cf66f
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 65 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ Pre-built binaries of this module are provided for the following versions of NGI
| Ubuntu 24.04 LTS (Noble Numbat) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/ubuntu.24.04.ngx_curity_http_phantom_token_module_1.25.5.so) | X | X | X | X |
| Amazon Linux 2 | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/amzn2.ngx_curity_http_phantom_token_module_1.25.5.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/amzn2.ngx_curity_http_phantom_token_module_1.25.3.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/amzn2.ngx_curity_http_phantom_token_module_1.25.1.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/amzn2.ngx_curity_http_phantom_token_module_1.23.4.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/amzn2.ngx_curity_http_phantom_token_module_1.23.2.so) |
| Amazon Linux 2023 | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/amzn2023.ngx_curity_http_phantom_token_module_1.25.5.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/amzn2023.ngx_curity_http_phantom_token_module_1.25.3.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/amzn2023.ngx_curity_http_phantom_token_module_1.25.1.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/amzn2023.ngx_curity_http_phantom_token_module_1.23.4.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/amzn2023.ngx_curity_http_phantom_token_module_1.23.2.so) |
| CentOS 7.0+ | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/centos.7.ngx_curity_http_phantom_token_module_1.25.5.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/centos.7.ngx_curity_http_phantom_token_module_1.25.3.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/centos.7.ngx_curity_http_phantom_token_module_1.25.1.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/centos.7.ngx_curity_http_phantom_token_module_1.23.4.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/centos.7.ngx_curity_http_phantom_token_module_1.23.2.so) |
| CentOS Stream 9.0+ | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/centos.stream.9.ngx_curity_http_phantom_token_module_1.25.5.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/centos.stream.9.ngx_curity_http_phantom_token_module_1.25.3.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/centos.stream.9.ngx_curity_http_phantom_token_module_1.25.1.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/centos.stream.9.ngx_curity_http_phantom_token_module_1.23.4.so) | [](https://github.com/curityio/nginx_phantom_token_module/releases/download/1.6.0/centos.stream.9.ngx_curity_http_phantom_token_module_1.23.2.so) |

## Status
Expand Down
5 changes: 1 addition & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ if [ "$LINUX_DISTRO" != 'alpine' ] &&
[ "$LINUX_DISTRO" != 'ubuntu24' ] &&
[ "$LINUX_DISTRO" != 'amazon2' ] &&
[ "$LINUX_DISTRO" != 'amazon2023' ] &&
[ "$LINUX_DISTRO" != 'centos7' ] &&
[ "$LINUX_DISTRO" != 'centosstream9' ]; then
echo "$LINUX_DISTRO is not a supported Linux distribution"
exit 1
Expand All @@ -39,9 +38,7 @@ function getLibraryPrefix() {
echo 'amzn2'
elif [ "$LINUX_DISTRO" == 'amazon2023' ]; then
echo 'amzn2023'
elif [ "$LINUX_DISTRO" == 'centos7' ]; then
echo 'centos.7'
elif [ "$PREFIX" == 'centosstream9' ]; then
elif [ "$LINUX_DISTRO" == 'centosstream9' ]; then
echo 'centos.stream.9'
fi
}
Expand Down
2 changes: 1 addition & 1 deletion buildall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
##################################################################################

NGINX_VERSIONS=('1.25.5' '1.25.3' '1.25.1' '1.23.4' '1.23.2')
LINUX_DISTROS=('alpine' 'debian11' 'debian12' 'ubuntu20' 'ubuntu22' 'ubuntu24' 'amazon2' 'amazon2023' 'centos7' 'centosstream9')
LINUX_DISTROS=('alpine' 'debian11' 'debian12' 'ubuntu20' 'ubuntu22' 'ubuntu24' 'amazon2' 'amazon2023' 'centosstream9')
rm log.txt 2>/dev/null

#
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/amazon2.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM amazonlinux:2 as amzn2-builder
FROM amazonlinux:2

RUN yum install -y \
gcc pcre-devel zlib-devel make
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/amazon2023.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM amazonlinux:2023 as amzn2023-builder
FROM amazonlinux:2023

RUN yum install -y \
gcc pcre-devel zlib-devel make
Expand Down
15 changes: 0 additions & 15 deletions dockerfiles/centos7.Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion dockerfiles/centosstream9.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/centos/centos:stream9 as centos-stream9-builder
FROM quay.io/centos/centos:stream9

RUN yum install -y \
gcc pcre-devel zlib-devel make
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/debian11.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye as debian11-builder
FROM debian:bullseye

RUN apt update && apt install -y \
build-essential git tree software-properties-common dirmngr apt-transport-https ufw libpcre2-dev zlib1g-dev
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/debian12.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bookworm as debian12-builder
FROM debian:bookworm

RUN apt update && apt install -y \
build-essential git tree software-properties-common dirmngr apt-transport-https ufw libpcre2-dev zlib1g-dev
Expand Down
16 changes: 0 additions & 16 deletions resources/memorytest/centos7/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions resources/memorytest/centos7/nginx.repo

This file was deleted.

2 changes: 1 addition & 1 deletion resources/memorytest/centosstream9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM quay.io/centos/centos:stream9
ARG NGINX_DEPLOY_VERSION

RUN yum install -y yum-utils
COPY centos7/nginx.repo /etc/yum.repos.d/nginx.repo
COPY centosstream9/nginx.repo /etc/yum.repos.d/nginx.repo
RUN yum-config-manager --enable nginx-mainline

# 'yum list available nginx --showduplicates' shows versions available
Expand Down
7 changes: 0 additions & 7 deletions resources/memorytest/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,6 @@ case $DISTRO in
MODULE_FOLDER='/etc/nginx/modules'
NGINX_PATH='/usr/sbin/nginx'
CONF_PATH='/etc/nginx/nginx.conf'
;;

'centos7')
MODULE_FILE="centos.7.ngx_curity_http_phantom_token_module_$NGINX_DEPLOY_VERSION.so"
MODULE_FOLDER='/etc/nginx/modules'
NGINX_PATH='/usr/sbin/nginx'
CONF_PATH='/etc/nginx/nginx.conf'
;;

'centosstream9')
Expand Down

0 comments on commit e2cf66f

Please sign in to comment.