Skip to content

Improve Docker configuration in the package #304

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

Merged
merged 11 commits into from
Aug 9, 2022

Conversation

meili-bot
Copy link
Contributor

@meili-bot meili-bot commented Jun 1, 2022

This PR is auto-generated.

Add a basic Docker configuration based on this integration-guides issue.

  • load meilisearch host from environment variable ProcessInfo.processInfo.environment["MEILISEARCH_HOST"]

@meili-bot meili-bot added the enhancement New feature or request label Jun 1, 2022
@brunoocasali brunoocasali marked this pull request as ready for review August 3, 2022 03:42
@brunoocasali brunoocasali force-pushed the meili-bot/docker branch 3 times, most recently from 354b957 to e566465 Compare August 3, 2022 03:45
aronbudinszky and others added 3 commits August 4, 2022 17:25
* Add FoundationNetworking imports for Linux support.

* Remove autoreleasepool.
@brunoocasali brunoocasali changed the base branch from main to linux_support August 5, 2022 14:59
@brunoocasali brunoocasali requested a review from bidoubiwa August 5, 2022 16:01
client = try! MeiliSearch(host: "http://localhost:7700", apiKey: "masterKey", session: session)
client = try! MeiliSearch(host: currentHost(), apiKey: "masterKey", session: session)

let semaphore = XCTestExpectation(description: "Setup: delete all keys")
Copy link
Member

Choose a reason for hiding this comment

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

I thought XCTestExpectation should be used for expectations only inside of test cases, but it seems to be the recommended way from Apple to do async operations in the setup/teardown hooks.

The weirdest issue is related to the multi-env problem. When I ran that old configuration on Mac no issue at all. But when I ran locally on Docker, I got flaky tests! 😮‍💨

Copy link
Contributor

Choose a reason for hiding this comment

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

There are still flacky tests in docker ?

Copy link
Member

Choose a reason for hiding this comment

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

No, as far as I know!

Copy link
Contributor

@bidoubiwa bidoubiwa left a comment

Choose a reason for hiding this comment

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

LGTM 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants