-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
PHPORM-28 Add Scout engine to index into MongoDB Search #3205
Changes from all commits
2eb8cf2
22f40a0
bd218ac
1ae5af1
b22192b
1ffcc19
aabec4d
cc31266
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,9 @@ jobs: | |
until docker exec --tty mongodb mongosh 127.0.0.1:27017 --eval "db.runCommand({ ping: 1 })"; do | ||
sleep 1 | ||
done | ||
until docker exec --tty mongodb mongosh 127.0.0.1:27017 --eval "db.createCollection('connection_test') && db.getCollection('connection_test').createSearchIndex({mappings:{dynamic: true}})"; do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll update it as part of PHPORM-287 |
||
sleep 1 | ||
done | ||
|
||
- name: "Show MongoDB server status" | ||
run: | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version: '3.5' | ||
|
||
services: | ||
app: | ||
tty: true | ||
|
@@ -16,11 +14,11 @@ services: | |
|
||
mongodb: | ||
container_name: mongodb | ||
image: mongo:latest | ||
image: mongodb/mongodb-atlas-local:latest | ||
ports: | ||
jmikola marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- "27017:27017" | ||
healthcheck: | ||
test: echo 'db.runCommand("ping").ok' | mongosh mongodb:27017 --quiet | ||
test: mongosh --quiet --eval 'db.runCommand("ping").ok' | ||
interval: 10s | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume this relies on |
||
timeout: 10s | ||
retries: 5 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
</testsuite> | ||
</testsuites> | ||
<php> | ||
<env name="MONGODB_URI" value="mongodb://mongodb/"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's the default localhost from the mongodb container, but from the other container, you need to specify the mongodb container name. |
||
<env name="MONGODB_URI" value="mongodb://mongodb/?directConnection=true"/> | ||
<env name="MONGODB_DATABASE" value="unittest"/> | ||
<env name="SQLITE_DATABASE" value=":memory:"/> | ||
<env name="QUEUE_CONNECTION" value="database"/> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure mongot is ready.