Skip to content

Documentation for MongoDB #720

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 1 commit into from
Jan 27, 2019
Merged

Conversation

alanpoulain
Copy link
Member

No description provided.

@@ -14,7 +14,8 @@ The easiest and most powerful way to get started is to download the API Platform
It contains:

* an API skeleton, including with [the server-side component](../core/index.md), [the Symfony 4
microframework](https://symfony.com/doc/current/setup/flex.html) and [the Doctrine ORM](http://docs.doctrine-project.org/projects/doctrine-orm/)
microframework](https://symfony.com/doc/current/setup/flex.html), [the Doctrine ORM](http://docs.doctrine-project.org/projects/doctrine-orm/)
Copy link
Member

Choose a reason for hiding this comment

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

We'll not "bloat" the distribution with MongoDB support by default, can you revert this one?

Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

Nice one! Can you just change the Docker related part and rebase?

@alanpoulain
Copy link
Member Author

I've added what to do manually in order to use MongoDB with the distribution.
As said here by @dunglas: api-platform/api-platform#968 (comment), it would be better to automate this by having a pack when the PR symfony/flex#128 is merged.

@alanpoulain
Copy link
Member Author

@vincentchalamon could you review this one please?

// api/Dockerfile

...
pecl install \
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pecl install \
docker-php-ext-install \

Right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Doesn't seem to be possible:

docker-php-ext-install -j4 intl mongodb pdo_pgsql zip
error: /usr/src/php/ext/mongodb does not exist

It's only available with PECL.

@alanpoulain alanpoulain merged commit 32d23e3 into api-platform:2.4 Jan 27, 2019
soyuka pushed a commit to soyuka/doc that referenced this pull request Feb 20, 2019
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.

3 participants