-
Notifications
You must be signed in to change notification settings - Fork 314
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
Declaring content/ path as a VOLUME mount point causing problems #195
Comments
It's best practice to define the VOLUME in which the app is living in. Ghost lives inside /content per say. |
@pascalandy then how does one modify the content of the volume(say to add s3 storage adapter)? At the moment doing this doesn't work
declaring it as volume blows out that directory. https://docs.docker.com/engine/reference/builder/#volume
|
I don't know. But here is where you can know :) |
Am I missing something? I definitely checked that page before posting. It doesn't talk much about this issue. In fact, the solutions for s3 storage adapter does not work specifically for this reason. |
As I said, I don't use storage adapters. My gut feeling. Install the adapter like your did. (I would add this step in the original dockerfile Have you checked on https://forum.ghost.org/ ? |
But why do you need to move the adapter inside of ghost content? Shouldn't Line 74 in 20f003a
If it really needs to be in the ghost/3/debian/docker-entrypoint.sh Lines 10 to 20 in 20f003a
Related/duplicate of #212. |
Now as to the content
The way I understand it, the This is basically the same as the WordPress image; although it has to do all of WordPress instead of just a subdirectory docker-library/wordpress#232 (comment). |
For anyone wondering, the following dockerfile worked for me
Docker run:
I think how it works is that the code explicitly imports from a specific directory. see here: |
This is a confusing issue to me; is this an issue with your development workflow or deploying in production? Is this in a custom docker image? Seems like some additional advice on how to pre-seed content/plugins/config is needed in the README's and that it should be done like advised here by adding to content.orig. This was actually a point of frustration for me when first leveraging this image -- it's not a real pleasant experience learning how this image works and will trip up people who are weak system admins. |
Does this still work with v5? Is that I'm also having the same issue as not being able to add/change storage adapters to the projects that allready has mounted content path as volume. Added or changed storage become inside the |
I tried the approach putting adapter inside Line 48 in 4a77eba
So I can not update adapter. Only option that I see now is adding multiple volumes per each needed folder in volumes:
- settings:/var/lib/ghost/content/settings
- themes:/var/lib/ghost/content/themes
- data:/var/lib/ghost/content/data |
A while ago I opened this issue: #185, which was answered and closed before I had a chance to respond.
My problem is that this image prevents any modification of directories within
content/
, and I can't see why this is desirable or necessary. Probably I'm just being dense, but I can't work out how the proposed solution would enable me to use this image in a way that would make it possible to modify directories withincontent/
.Could the guidance be clarified/expanded, or, ideally, could the line declaring
content/
as a fixed volume be removed? What useful purpose is it serving?The text was updated successfully, but these errors were encountered: