dockerfile / ghost Goto Github PK
View Code? Open in Web Editor NEWGhost Dockerfile for trusted automated Docker builds.
Home Page: http://dockerfile.github.io/#/ghost
License: MIT License
Ghost Dockerfile for trusted automated Docker builds.
Home Page: http://dockerfile.github.io/#/ghost
License: MIT License
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
My understanding is that the "Docker Official Image packaging for Ghost" has been migrated and is the one that is officially maintained - https://github.com/docker-library/ghost
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 replace127.0.0.1
with0.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:
my-ghost-blog.com
, regardless to config.js
in override dirI 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
Check the page https://support.google.com/webmasters/answer/83106?hl=en&ref_topic=6029673 it says I need to add the 301-redirect directives but with docker I don't have access to anything to do that.
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
I see that everything goes inside /ghost-override
What am I missing?
Thanks
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?
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 :)
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
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.
Currently this Docker container does not have sendmail so Ghost is unable to send email on account creation or for password resets.
It would be nice to have Analytics from Google in case passing the Google ID.
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..
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.