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

730 update docker resources #815

Merged
merged 3 commits into from
Aug 24, 2023
Merged

730 update docker resources #815

merged 3 commits into from
Aug 24, 2023

Conversation

kirkhauck
Copy link
Contributor

Summary

Resolves bug preventing running RITA with Docker Compose. Created a ready-to-go configuration file for Docker named rita_docker.yaml, which is just a copy of rita.yaml but with "localhost" replaced with "db" in ConnectionString. Removed "links" key from rita service in docker-compose.yml since it is no longer needed. Pointed the Dockerfile to rita_docker.yaml instead of rita.yaml.

The usage guide was updated to new docker compose syntax and to assume user is not in the docker group and needs to use sudo.

Related Issue

closes #730

Testing

Pull down RITA image

sudo docker pull quay.io/activecm/rita

Setup your variables (default config path is ./etc/rita_docker.yaml)

export CONFIG=/path/to/your/rita/config.yaml
export LOGS=/path/to/your/zeek/logs

Test the configuration

sudo -E docker compose run --rm rita test-config

Import a dataset

sudo -E docker compose run --rm rita import /logs your-dataset

Test a command (e.g. show-beacons)

sudo -E docker compose run --rm rita show-beacons your-dataset

There should be no errors when executing these commands.

Copy link
Contributor

@Zalgo2462 Zalgo2462 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested well 👍

@Zalgo2462 Zalgo2462 merged commit dc17f30 into master Aug 24, 2023
1 check passed
@Zalgo2462 Zalgo2462 deleted the 730-update-docker-resources branch August 24, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix/ Update Resources for Running RITA with Docker
2 participants