Skip to content
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

Merged
merged 10 commits into from
Jun 12, 2024
Merged

Graylog integration test #34

merged 10 commits into from
Jun 12, 2024

Conversation

YooSunYoung
Copy link
Contributor

Docker services related to graylog is also added to the docker file.

@YooSunYoung YooSunYoung mentioned this pull request Jun 11, 2024
Comment on lines +72 to +98
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

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?

Copy link
Contributor Author

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...?

Copy link
Contributor

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

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?

Copy link
Contributor Author

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

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?

Copy link
Contributor Author

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.

Comment on lines +72 to +98
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
Copy link
Contributor

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

@YooSunYoung YooSunYoung merged commit 4e881be into main Jun 12, 2024
3 checks passed
@YooSunYoung YooSunYoung deleted the graylog-integration-test branch June 12, 2024 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants