-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Rework of Examples Section #125
Conversation
Hey @tilosp, thanks for starting to work on the examples section. Here a few thoughts on the folder structure. current version
This has the disadvantage that additional files would clutter the structure and users might ask themself what are these files for (e.g. when s.o. wants to build an I would prefer to differentiate between the base images (fpm/apache) in the last subfolder. That leaves three options: option 1
This has the advantage, that the additional files would not be redundant. As long as the additional files can be used in all base images it would be a very clean folder structure. option 2
Reintroduces redundency, but in cases where different additional files for the base images are needed, their would be no conflicts. Also it is possible to run the default commands option 3
This last option could be used to avoid the redundency issue by moving matching files to the parent folder. But at the same time the Dockerfiles get dependant on these directories. My opinion:option 1 is useful, if someone dislikes using to many subfolders 😉 |
@SnowMB i agree with you that option 2 is the cleanest one and i am fine with using many sub-directories. |
You're right. Missed that. But you unterstood what I tried to explain 😁 |
@@ -0,0 +1,12 @@ | |||
<? | |||
$CONFIG = array ( | |||
'memcache.local' => '\\OC\\Memcache\\APCu', |
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.
@SnowMB this line is redundant, it is already part of the image apcu.config.php
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.
done
b73e9f7
to
c7a0265
Compare
Hey @tilosp, I got a quick question: You have an app folder for each example creating a derived image copying the Are there any advantages / disadvantages that I miss? |
@SnowMB I forgot to do the same for the |
9650cc2
to
fab33e3
Compare
Ah, I see. Great solution for that case! 👍 |
@tilosp I reworked the proxy examples to fit your style and added a readme file. Please review and maybe add a few words to the readme. |
7127678
to
dee6524
Compare
dee6524
to
b8f6820
Compare
9c259ab
to
11793bf
Compare
@SnowMB please take a look. I removed the example with collabora for now because it does not work. The problem is that the nginx proxy is not setup to handle WebSocket connection and collabora requires WebSocket connection. I would like to merge this PR without a collabora example, we can add one in a later PR. But we should add a link to the main readme which links to the example readme. Maybe you have an idea where exactly this link should go. I would also suggest a rework of README.md#running-this-image-with-docker-compose. Maybe by just replacing it with a link to the docker-compose examples |
ping @SnowMB |
2520c67
to
eeb0d6a
Compare
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.
The link in the main readme is easier to add once it is merged, because it should to point to the master branch. I think we can finish this pr now and do some fine tuning in additional pr/issues.
LGTM so far 👍
.examples/README.md
Outdated
|
||
### insecure | ||
|
||
To use this example complete the following steps: |
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.
add a sentence why this setup is insecure and that it should not be used in production.
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.
done
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.
lgtm
Closes #103 Closes #98 Closes #95 Closes #75 Closes #86 Closes #104
TODO:
/var/www/html
since it's simpler and less error-prone (would prevent that "config directory not writeable"-error Permission denied error for config directory in examples #75 example docker-compose does not work on ubuntu 14.04.5 #86)${DOMAIN}
, it isn't explained anywherevolumes_from
in the fpm example since it isn't supported in docker-compose file version 3