Giter Club home page Giter Club logo

Comments (6)

pascalandy avatar pascalandy commented on August 20, 2024 26

I solved it.

Explaination

I took a look at the Dockerfile. You can see here that the Docker Ghost 1.0 now use /var/lib/ghost/content and NOT /var/lib/ghost/

When I run it locally:

docker run -d \
--name ghostone \
-p 3001:2368 \
-v /Users/myusername/Documents/gstdatatest:/var/lib/ghost/content \
ghost:1.0.2-alpine

Docs

I will do a PR on the readme over here for this breaking change.

Please let me know if you guys can replicate :)

Cheers!
Pascal

from ghost.

weipah avatar weipah commented on August 20, 2024 1

I figured the problem is that I'm mapping a local drive from windows machine and tar somehow cannot update the access/read/edit (utime) time on the filesystem with tar.

For now I went on a simplyfied approach for the copying of the files in the entrypoint-script.

if [[ "$*" == node*current/index.js* ]] && ! ls $GHOST_CONTENT/* 1>/dev/null 2>&1; then
  cp -R $GHOST_INSTALL/content.orig/* $GHOST_CONTENT/
  chown -R node:node "$GHOST_CONTENT"
  knex-migrator-migrate --init --mgpath "$GHOST_INSTALL/current"
fi

Cheers,
Mark

from ghost.

pascalandy avatar pascalandy commented on August 20, 2024 1

I think we should close this issue :)

from ghost.

weipah avatar weipah commented on August 20, 2024

I ran into the same issue.

Happens only, when I mount an empty folder to /var/lib/ghost
When I don't mount a volume it works.

I tried
sudo docker run -it --name ghost-blog-1.0 -v /var/www/ghost:/var/lib/ghost -p 2368:2368 ghost:1.0

I think this doesn't work, because the /content/ folder is created in the Dockerfile and not in the entrypoint-script. A workaournd could be to create a symlink maybe, eg. ln -s $SOME_DIR /var/lib/ghost

Also I took note that the variable $BASH_SOURCE in entrypoint-script seems to be unrecognized from within the container. It's not declared in the Dockerfile.

from ghost.

weipah avatar weipah commented on August 20, 2024

Thanks, @pascalandy that was a real stupid one! sigh

Although now I'm running into another issue, but I don't think that is related.

tar: themes/casper: Cannot utime: Operation not permitted

from ghost.

acburdine avatar acburdine commented on August 20, 2024

Ok 😄

A solution has been posted by @pascalandy -> if the issue persists comment and we can reopen or create a new issue.

from ghost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.