-
Notifications
You must be signed in to change notification settings - Fork 149
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
EZP-27788: Update and cleanup docker config for Docker 17.06 features #192
Conversation
93580ef
to
8c09f88
Compare
15599d3
to
ce2f7c1
Compare
0b80a32
to
0c4a548
Compare
Now that Docker 17.06 stable release is out, `:cached` and other features are now available in stable versions and can be used (17.04/5: edge). Bumps compose version all the way up to 3.3 which came in 17.06 for future use and hopefully not having to bump in in a while.
Should theoretically get rid of the issue where app image starts up before mariadb is ready for connections, leading to user reaching 500 page. Note: The previous commit adding cached mounts for the sql file mostly fixes the issue, but this commit should in theory avoid app contianer starting to early.
Based on code from ezsystems/ezplatform-ee-demo#33
…ust compose files As a bonus this also shorten the paths when working with the files.
… are for Aslo rather add links to Launchpad for people wanting to get up and running easily.
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.
Looks good, but would appreciate if varnish' malloc setting is injected via environment variable as suggested
doc/docker/Dockerfile-varnish
Outdated
|
||
EXPOSE 80 6082 | ||
|
||
CMD ["varnishd", "-F", "-a", ":80", "-T", ":6082", "-f", "/etc/varnish/default.vcl", "-s", "malloc,256M"] |
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.
Would it not be nice if "256M" would be defined in a variable in .env ?
This is a setting which is typically customized....
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.
true, can try to use env variables in build args.
Volume not currently used in prod container, and for cases where there are not css/js/bundle assets amke sure folder is there so build does not break.
Docker 17.06 came out in June, and with it these notable features are now in stable channel which we haven't started using yet:
:cached
, partly improving mac/windows performance (as tested in [WIP] Update to use Docker 17.04 for improved performance #173)Todo / TBD
Currently blocked on bug in Docker 17.06 that is solved in 17.06.01-rcfalse poitive during testing, the issue was something else 😕Update doc to refer to launchpad for simple use cases_commited to active branches ahead of 1.11 release in 7f2abb5acd555a0c70a8a5c77c04814be2e3af41_doc/docker
and adapt yml/doc given it is about more then just docker-compose now ( and shorter paths ;) )Possible followups: