-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactoring Docker to utillise latest features of compose syntax vers… #20
Conversation
This shouldn't be merged yet. The only issue I can see is that Sorry, I don't know Sylius that well |
Nice, thanks! Is it a common practice to set up the application at the entrypoint? We've got bunch of different environments (prod, dev, test, test_cached) and we don't know which one is needed at the moment. |
Ideally you want people to be able to do For test runs, I'd suggest adding to the docs, Is there a way to make |
I guess that providing
app/console doctrine:database:create
app/console cache:warmup
app/console doctrine:migrations:migrate --no-interaction
app/console doctrine:phpcr:repository:init
app/console assets:install
npm run gulp The another issue is that we are using node.js for our frontend, I guess we can include it in our |
@@ -3,14 +3,15 @@ | |||
|
|||
imports: | |||
- { resource: "config.yml" } | |||
- { resource: "parameters_dev.yml" } |
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.
Hmm, it would be nice not to have it, but we will have to provide the correct hostname anyway :/
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.
I might have an idea for that - creating etc/docker/config/parameters.yml
with the following content:
parameters:
database_host: database
# any other settings specific for Docker
and then replacing the app/config/parameters.yml
with it before running the entrypoint.
The only drawback I can think of it's that the original file gets overwritten - can we avoid it by just mounting that file instead of copying it?
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.
Can't we just change a data of parameters.yml between composer install
and sylius:install
?
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.
That will change that file on the host machine too.
Thank you very much! I left some questions in between the code as it's the best chance for me to learn Docker in practice. There are also a few suggestions for tweaks to integrate it with Sylius even better. |
@rawkode |
Of course an environment flag can be attach also to no interaction mode. |
Thanks David! I'll make some Sylius related customizations and see how it looks in practice. |
OK, @pamil - once you've done that, I'll make some further tweaks that I hadn't had time to complete. Good work 👍 |
…ion 2