-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test versions of NGINX, Apache and MongoDB (#33789)
The old tests were based on Debian Jessie released in April 2015 (end-of-life on June 30, 2020). We started having problems with expired GPG keys when installing dependencies in our Docker files. Also: * Add the missing MPM module and the `ServerName` directive for Apache. * Add retries to Logstash tests because they are flaky * Do not install mage v1.14.0 * Update elastic-agent-client version to avoid broken agent dependency (cherry picked from commit 4f639d7) # Conflicts: # NOTICE.txt # go.mod # go.sum
- Loading branch information
1 parent
1b1416d
commit ad00eb5
Showing
17 changed files
with
54 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
ARG APACHE_VERSION=${APACHE_VERSION} | ||
FROM httpd:$APACHE_VERSION | ||
RUN sed -i "/jessie-updates/d" /etc/apt/sources.list | ||
RUN apt-get update && apt-get install -y curl | ||
RUN apt update && yes | apt install curl | ||
HEALTHCHECK --interval=1s --retries=90 CMD curl -f http://localhost | ||
COPY ./httpd.conf /usr/local/apache2/conf/httpd.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# all the versions have to be the valid semantic version syntax x.x.x | ||
# because of the test check for comparing against older field structure | ||
variants: | ||
- APACHE_VERSION: 2.4.12 | ||
- APACHE_VERSION: 2.4.20 | ||
- APACHE_VERSION: "2.4.54" | ||
- APACHE_VERSION: "2.4.12" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
version: '2.3' | ||
version: "2.3" | ||
|
||
services: | ||
apache: | ||
image: docker.elastic.co/integrations-ci/beats-apache:${APACHE_VERSION:-2.4.20}-1 | ||
image: docker.elastic.co/integrations-ci/beats-apache:${APACHE_VERSION:-2.4.54}-1 | ||
build: | ||
context: ./_meta | ||
args: | ||
APACHE_VERSION: ${APACHE_VERSION:-2.4.20} | ||
APACHE_VERSION: "${APACHE_VERSION:-2.4.54}" | ||
ports: | ||
- 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
ARG MONGODB_VERSION | ||
FROM mongo:${MONGODB_VERSION} | ||
RUN sed -i "/jessie-updates/d" /etc/apt/sources.list | ||
RUN apt-get update && apt-get install -y netcat | ||
RUN apt update && yes | apt install netcat | ||
HEALTHCHECK --interval=1s --retries=90 CMD nc -z localhost 27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
version: '2.3' | ||
version: "2.3" | ||
|
||
services: | ||
mongodb: | ||
image: docker.elastic.co/integrations-ci/beats-mongodb:${MONGODB_VERSION:-3.4}-1 | ||
build: | ||
context: ./_meta | ||
args: | ||
MONGODB_VERSION: ${MONGODB_VERSION:-3.4} | ||
MONGODB_VERSION: "${MONGODB_VERSION:-3.4}" | ||
command: mongod --replSet beats | ||
ports: | ||
- 27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
ARG NGINX_VERSION | ||
FROM nginx:${NGINX_VERSION} | ||
RUN sed -i "/jessie-updates/d" /etc/apt/sources.list | ||
RUN apt-get update && apt-get install -y curl | ||
RUN apt update && apt install -y curl | ||
HEALTHCHECK --interval=1s --retries=90 CMD curl -f http://localhost/nginx_status | ||
COPY ./nginx.conf /etc/nginx/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
version: '2.3' | ||
version: "2.3" | ||
|
||
services: | ||
nginx: | ||
image: docker.elastic.co/integrations-ci/beats-nginx:${NGINX_VERSION:-1.9}-1 | ||
build: | ||
image: docker.elastic.co/integrations-ci/beats-nginx:${NGINX_VERSION:-1.23.2}-1 | ||
build: | ||
context: ./_meta | ||
args: | ||
NGINX_VERSION: ${NGINX_VERSION:-1.9} | ||
NGINX_VERSION: "${NGINX_VERSION:-1.23.2}" | ||
ports: | ||
- 80 |