Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

feat: Add util for waiting for container startup; use in dbcopyall8 #1198

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

timmc-edx
Copy link
Contributor

@timmc-edx timmc-edx commented Oct 4, 2023

make dev.dbcopyall8 doesn't work unless the mysql containers have been started and are ready to run. This is not the only place we need to wait for a functional check on a container, so in this commit I've gone ahead and started a utility for doing so.

This first pass only supports MySQL, but we should at least add Mongo as well, as that's also needed in one of the provisioning scripts.

I've moved the _db_copy8_targets from being an order-only prerequisite to being a recursive make call. I'm not sure why the order-only syntax was in use here, but in any case I needed to add in a script call before those targets were called, so it's likely moot.

Also:

  • Drop unneeded bash -c wrappers from db copy docker exec calls

I've completed each of the following or determined they are not applicable:

  • Made a plan to communicate any major developer interface changes (or N/A)

`make dev.dbcopyall8` doesn't work unless the mysql containers have been
started and are ready to run. This is not the only place we need to wait
for a functional check on a container, so in this commit I've gone ahead
and started a utility for doing so.

This first pass only supports MySQL, but we should at least add Mongo as
well, as that's also needed in one of the provisioning scripts.

I've moved the _db_copy8_targets from being an order-only prerequisite
to being a recursive make call. I'm not sure why the order-only syntax
was in use here, but in any case I needed to add in a script call
before those targets were called, so it's likely moot.

Also:

- Drop unneeded `bash -c` wrappers from db copy docker exec calls
@timmc-edx
Copy link
Contributor Author

xqueue provisioning test passed, so I'm cancelling the others.

@timmc-edx timmc-edx merged commit fa758e4 into master Oct 4, 2023
4 of 11 checks passed
@timmc-edx timmc-edx deleted the timmc/wait-db-copy branch October 4, 2023 19:21
nsprenkle pushed a commit that referenced this pull request Nov 21, 2023
…1198)

`make dev.dbcopyall8` doesn't work unless the mysql containers have been
started and are ready to run. This is not the only place we need to wait
for a functional check on a container, so in this commit I've gone ahead
and started a utility for doing so.

This first pass only supports MySQL, but we should at least add Mongo as
well, as that's also needed in one of the provisioning scripts.

I've moved the _db_copy8_targets from being an order-only prerequisite
to being a recursive make call. I'm not sure why the order-only syntax
was in use here, but in any case I needed to add in a script call
before those targets were called, so it's likely moot.

Also:

- Drop unneeded `bash -c` wrappers from db copy docker exec calls
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants