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

Fix for ARM processors #3

Merged
merged 3 commits into from Oct 11, 2022
Merged

Fix for ARM processors #3

merged 3 commits into from Oct 11, 2022

Conversation

richpjames
Copy link
Contributor

Tilt was not working on my MBP - probably due to the emulation load the community-api was putting on the machine.
Thanks to the work of @pezholio here a multiplatform version of the community-api was created.
However the ap-tools server start script was still failing due to the dependencies between the services as mentioned in this issue comment. With these removed and with some patience whilst waiting for the community-api to come up, the issue is resolved.

Copy link
Contributor

@pezholio pezholio left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Comment on lines 98 to 95
test: ["CMD", "wget", "-nv", "-t1", "--spider", "http://localhost:8080/api/health"]
test:
[
"CMD",
"wget",
"-nv",
"-t1",
"--spider",
"http://localhost:8080/api/health",
]
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we even need this test now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't seem like it, it's gone

@pezholio
Copy link
Contributor

It might also be worth changing the port in https://github.com/ministryofjustice/hmpps-approved-premises-tools/blob/main/bin/start-server#L36 from 3000 to 9590, so we're told the server's up and running once the Community API is running, which is the slowest thing to come up

Tilt doesn’t support dependencies so we have to remove them and
manually wait until the community-api is up tilt-dev/tilt#2210 (comment)
As community-api is the slowest service it make sense for us to wait for it to be up
@pezholio pezholio merged commit 81378b1 into main Oct 11, 2022
@pezholio pezholio deleted the fix-for-arm-processors branch October 11, 2022 16:40
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.

None yet

2 participants