-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graylog integration test #34
Conversation
mongodb: | ||
image: mongo:6.0.14 | ||
networks: | ||
- frontend | ||
|
||
opensearch: | ||
image: "opensearchproject/opensearch:2.12.0" | ||
environment: | ||
- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g" | ||
- "bootstrap.memory_lock=true" | ||
- "discovery.type=single-node" | ||
- "action.auto_create_index=false" | ||
- "plugins.security.ssl.http.enabled=false" | ||
- "plugins.security.disabled=true" | ||
# Can generate a password for `OPENSEARCH_INITIAL_ADMIN_PASSWORD` using a linux device via: | ||
# tr -dc A-Z-a-z-0-9_@#%^-_=+ < /dev/urandom | head -c${1:-32} | ||
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=+_8r#wliY3Pv5-HMIf4qzXImYzZf-M=M | ||
ulimits: | ||
memlock: | ||
hard: -1 | ||
soft: -1 | ||
nofile: | ||
soft: 65536 | ||
hard: 65536 | ||
restart: "on-failure" | ||
networks: | ||
- frontend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do these services have to do with Graylog?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cuz Graylog is dependent on the mongo db
and opensearch
.
That's what I thought... can it be deployed without them...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified. Graylog needs both to run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you want to test that logging works? This here only starts the service but doesn't check that messages arrive, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, I just wanted to test the github action if graylog can be started : D...
And I don't think we have to check if the log went through.
Testing the connection should be enough, no...?
And maybe checking if the configure works : D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this test the connection? How can you tell when a connection could not be made?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this PR is only about starting the graylog in the integration test environment.
Test is not added yet.
mongodb: | ||
image: mongo:6.0.14 | ||
networks: | ||
- frontend | ||
|
||
opensearch: | ||
image: "opensearchproject/opensearch:2.12.0" | ||
environment: | ||
- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g" | ||
- "bootstrap.memory_lock=true" | ||
- "discovery.type=single-node" | ||
- "action.auto_create_index=false" | ||
- "plugins.security.ssl.http.enabled=false" | ||
- "plugins.security.disabled=true" | ||
# Can generate a password for `OPENSEARCH_INITIAL_ADMIN_PASSWORD` using a linux device via: | ||
# tr -dc A-Z-a-z-0-9_@#%^-_=+ < /dev/urandom | head -c${1:-32} | ||
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=+_8r#wliY3Pv5-HMIf4qzXImYzZf-M=M | ||
ulimits: | ||
memlock: | ||
hard: -1 | ||
soft: -1 | ||
nofile: | ||
soft: 65536 | ||
hard: 65536 | ||
restart: "on-failure" | ||
networks: | ||
- frontend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified. Graylog needs both to run
Docker services related to graylog is also added to the docker file.