Skip to content

feat: allow to enable Docker support using an env var #776

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

Closed
wants to merge 1 commit into from

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Jun 10, 2021

Currently, it's not possible to execute the Docker-related configurators when running composer create-project because of a chicken and egg problem: the composer.json file doesn't exist yet, so it's not possible to set extra.symfony.docker to true. This PR allows to enable the Docker support by setting an environment variable called SYMFONY_DOCKER.

Needed by dunglas/symfony-docker#152.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

Might not be needed: create-project with --no-plugins, then patching, then composer i might do it in the Dockerfile.
Let us know if yes :)

@dunglas
Copy link
Member Author

dunglas commented Jun 11, 2021

Good idea @nicolas-grekas! It works.

@dunglas dunglas closed this Jun 11, 2021
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