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

Include convenience bash script for running rabbit mq locally #668

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

Relm-Arrowny
Copy link

fix #615

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.62%. Comparing base (24c7e35) to head (cf06c77).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #668   +/-   ##
=======================================
  Coverage   92.62%   92.62%           
=======================================
  Files          35       35           
  Lines        1654     1654           
=======================================
  Hits         1532     1532           
  Misses        122      122           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@callumforrester callumforrester left a comment

Choose a reason for hiding this comment

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

Looking good, thanks! Just a few small changes.

src/script/stomp_config.yml Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should: If possible, I would like to use an image from dockerhub rather than build our own. Do we know of any that give us what we want (STOMP plugin etc.)?

Paging @DiamondJoseph

docs/tutorials/quickstart.md Outdated Show resolved Hide resolved
Copy link
Contributor

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

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

I came here after not being able to get ActiveMQ to work but this works great, thanks! Some comments in code though. Particularly I think the path issue is important

docs/tutorials/quickstart.md Show resolved Hide resolved
docs/tutorials/quickstart.md Outdated Show resolved Hide resolved
Comment on lines +42 to +47
An example of a config file that starts STOMP with default values can be found in:

```
src/script/stomp_config.yml
```

Copy link
Contributor

Choose a reason for hiding this comment

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

Should: As above with ActiveMQ vs RabbitMQ, if we're going to make rabbitMQ the default for new users then maybe this should be the default config?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It used to be, but I changed it. I think it's important for a complete beginner to clone -> build -> run with no extra steps, because once you add 1 extra step it's very easy to get into a "just one more..." mentality. The message bus is an optional feature that adds rich feedback and that we use in production, but configuring it is part 2 of the tutorial.

@callumforrester
Copy link
Collaborator

@Relm-Arrowny main is fixed if you want to try rebasing

Copy link
Contributor

@DominicOram DominicOram left a comment

Choose a reason for hiding this comment

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

My comments on the docs are addressed by #674, thanks @callumforrester

@callumforrester
Copy link
Collaborator

The sonarcloud error should be fixed by #664
Once that's merged could you rebase on top of it to check it works?

@@ -17,6 +24,7 @@ way to start it is to run it via a container:
podman run -it --rm --net host rmohr/activemq:5.15.9-alpine
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should: Also remove this reference to activemq

Copy link
Author

@Relm-Arrowny Relm-Arrowny Oct 29, 2024

Choose a reason for hiding this comment

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

I have removed activemq reference, a couple of things I notice while doing so which are the side effects of removing the Stomp default:

  1. The cli will forget/reload the env every time so
    blueapi controller run count '{"detectors": ["current_det", "image_det"]}
    in the quickstart guide will not work unless we set the env with add env loading #649 or do
    blueapi -c src/script/stomp_config.yml controller run count '{"detectors": ["current_det", "image_det"]}'
  2. blueapi serve will technically work but there will be half a page of warning ever 10 secs.

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.

Include convenience bash script for running RabbitMQ locally
3 participants