-
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
18085a2
commit 2183b8e
Showing
17 changed files
with
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9867,11 +9867,19 @@ Contents of probable licence file $GOMODCACHE/github.com/elastic/elastic-agent-a | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/elastic/elastic-agent-client/v7 | ||
<<<<<<< HEAD | ||
Version: v7.0.0-20210727140539-f0905d9377f6 | ||
Licence type (autodetected): Elastic | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/elastic/elastic-agent-client/[email protected]/LICENSE.txt: | ||
======= | ||
Version: v7.0.1 | ||
Licence type (autodetected): Elastic | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/elastic/elastic-agent-client/[email protected]/LICENSE.txt: | ||
>>>>>>> 4f639d7ed6 (Update test versions of NGINX, Apache and MongoDB (#33789)) | ||
|
||
ELASTIC LICENSE AGREEMENT | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ Listen 80 | |
# Example: | ||
# LoadModule foo_module modules/mod_foo.so | ||
# | ||
LoadModule mpm_event_module modules/mod_mpm_event.so | ||
LoadModule authn_file_module modules/mod_authn_file.so | ||
#LoadModule authn_dbm_module modules/mod_authn_dbm.so | ||
#LoadModule authn_anon_module modules/mod_authn_anon.so | ||
|
@@ -190,7 +191,7 @@ ServerAdmin [email protected] | |
# | ||
# If your host doesn't have a registered DNS name, enter its IP address here. | ||
# | ||
#ServerName www.example.com:80 | ||
ServerName localhost | ||
|
||
# | ||
# Deny access to the entirety of your server's filesystem. You must | ||
|
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 |