Coder Social home page Coder Social logo

ghost's People

Contributors

aboutte avatar pilwon avatar revollat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ghost's Issues

Installs outdated 0.4.2

The Dockerfile in this repo fetches the latest zip, which is 0.5, but when I install it from Docker hub I get 0.4.2. Can somebody please update it?

config.js not overridden

Manual says:

where <override-dir> is an absolute path of a directory that could contain:

  • config.js: custom config file copied from here (you must replace 127.0.0.1 with 0.0.0.0)

But you can create/remove/make invalid this file in <override-dir> because it is ignored by ghost and docker's startup script

Confirmation:

  • create&run new container
  • open blog page from it
  • open any blog entry
  • link to homepage, located at the top of entry's page, will always point to my-ghost-blog.com, regardless to config.js in override dir

su: System error - kernel 3.15

I have found an error in start.bash when running "su ghost << EOF". This happens when the kernel is 3.15. So to solve it downgrade to 3.14.

Check this issue on docker moby/moby#6792
This is a reference if you face this problem

Error in Ghost Setup

With a fresh docker build from dockerfiles/ghost, I get the following error when I try to setup the blog, causing the docker container to crash.

/ghost/core/server/mail.js:95
                if (data.error.errno === 'ENOTFOUND') {
                              ^
TypeError: Cannot read property 'errno' of null
    at EventEmitter.<anonymous> (/ghost/core/server/mail.js:95:31)
    at EventEmitter.g (events.js:180:16)
    at EventEmitter.emit (events.js:95:17)
    at DirectMailer.<anonymous> (/ghost/node_modules/nodemailer/node_modules/directmail/lib/mailer.js:138:30)
    at asyncCallback (dns.js:68:16)
    at Object.onanswer [as oncomplete] (dns.js:147:9)

npm ERR! Linux 3.18.2
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.10.36
npm ERR! npm  v2.3.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index'.
npm ERR! This is most likely a problem with the ghost package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index
npm ERR! You can get their info via:
npm ERR!     npm owner ls ghost
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /ghost/npm-debug.log

npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose config Skipping project config: /ghost/.npmrc. (matches userconfig)
5 verbose stack Error: ENOENT, open '/ghost/package.json'
6 verbose cwd /ghost
7 error Linux 3.18.2
8 error argv "node" "/usr/local/bin/npm" "start"
9 error node v0.10.36
10 error npm  v2.3.0
11 error path /ghost/package.json
12 error code ENOENT
13 error errno 34
14 error enoent ENOENT, open '/ghost/package.json'
14 error enoent This is most likely not a problem with npm itself
14 error enoent and is related to npm not being able to find a file.
15 verbose exit [ 34, true ]

Docker Version

Client version: 1.4.1
Client API version: 1.16
Go version (client): go1.3.3
Git commit (client): 5bc2ff8-dirty
OS/Arch (client): linux/amd64
Server version: 1.4.1
Server API version: 1.16
Go version (server): go1.3.3
Git commit (server): 5bc2ff8-dirty

Node version

v0.10.36

Add sendmail

Currently this Docker container does not have sendmail so Ghost is unable to send email on account creation or for password resets.

The host directory gets owned by wrong user

When you inject a host directory as /ghost-override, its owner gets replaced by any user on the machine whose uid and gid is 1000. This is because the chown command in start.bash changes not only the owner of the /ghost-override directory inside the container, but also the outside directory to ghost:ghost whose uid and gid are 1000.

Articles with similar issue:
http://stage1.io/blog/managing-permissions-in-your-docker-volumes/
http://chapeau.freevariable.com/2014/08/docker-uid.html

So one dirty solution would be to make an option to pass uid and gid to be used..

su: System error

I can't run the image:

$ docker run --rm -it dockerfile/ghost 
su: System error
$ docker version
Client version: 1.1.2
Client API version: 1.13
Go version (client): go1.2.1
Git commit (client): d84a070
Server version: 1.1.2
Server API version: 1.13
Go version (server): go1.2.1
Git commit (server): d84a070
$ docker images
REPOSITORY            TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
dockerfile/ghost      latest              c10adc1a93bf        3 hours ago         545.1 MB

Error bash: line 2: npm: command not found

Thanks for The Dockerfile 👍

But I found Error when running the container,
root@Host:~# docker run -d -p 2368:2368 dockerfile/ghost
96654236e290b6d95bc17c4fcff7232942d563fb42decf2818587f821b960f67

Container can't run, and this is logs for container :

root@Host:~# docker logs 96654
bash: line 2: npm: command not found

Thanks :)

Ghost Overrides not working right

When I add a theme to my ghost-overrides volume, it doesn't propagate to my new container. It isn't detected in the general settings.

can't build the docker image with error saying image not found

am trying to build a docker image from public repository - https://github.com/dockerfile/ghost. Actually I had built it successfully before, toady I wanted to update the image to latest one, so I removed the older image, and tried to pull the new image.

However, when I tried

$ docker pull dockerfile/ghost
Pulling repository dockerfile/ghost
FATA[0001] Error: image dockerfile/ghost:latest not found

I can't really understand why it doesn't work, it is supposed to be working.

pinned versions

I feel this automated build is lacking pinned versions of it's dependencies and ghost itself.

Additionally, it is using a Python environment based on Ubuntu as a base while I believe the node official repo would be a better starting point (much smaller).

I've created a docker image with pinned versions forked from thaiphan/ghost, but with the same build process as this repo. I realize that this will require to update the ghost version within the Dockerfile each time a new version is released and wonder if there is a better way to do this.

my repository: https://github.com/so0k/docker-ghost

looking forward for feedback

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.