Skip to content
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

Add Ghost 4 pre-release version #245

Closed
wants to merge 1 commit into from

Conversation

tianon
Copy link
Member

@tianon tianon commented Feb 9, 2021

No description provided.

@acburdine
Copy link
Collaborator

acburdine commented Feb 9, 2021

@tianon just as a heads up - there might be more changes to the Ghost boot process prior to the official 4.0 release, so it might be worth holding off on releasing these until those changes are fully defined.

The update to Ghost-CLI supporting prerelease installs hasn't been released yet either 😬 so this image won't be able to build until then anyways.

@tianon
Copy link
Member Author

tianon commented Feb 9, 2021

I was just about to ping you with the Ghost-CLI failure that you're probably already aware of 😆 ❤️

@pascalandy

This comment has been minimized.

mkdir -p "$GHOST_INSTALL"; \
chown node:node "$GHOST_INSTALL"; \
\
su-exec node ghost install "$GHOST_VERSION" --db sqlite3 --no-prompt --no-stack --no-setup --dir "$GHOST_INSTALL"; \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should work now if you add --channel next to the arguments list

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I might've missed something because it's giving me Message: Version 4.0.0 does not exist 😅

(from ghost install 4.0.0-alpha.3 --channel next --db sqlite3 --no-prompt --no-stack --no-setup --dir /var/lib/ghost)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm that does appear to be a bug. I never tested specifying the exact alpha release to install 😅 will test and try to get a fix out

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it makes sense just to wait until 4.0 is officially released before creating the docker image?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷 we're happy to go either way -- we like to publish pre-releases for the same reason the upstreams usually do (more users testing before GA, hopefully finding more bugs), but we're happy to defer 👍

Copy link
Collaborator

@acburdine acburdine Mar 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tianon so it looks like the reason this fails is because semver.coerce() doesn't like prerelease versions 🤔 npm/node-semver#357

we currently run the version through semver.coerce and that strips the prerelease bit off of the version.

@acburdine
Copy link
Collaborator

since ghost v4 has been released, gonna create a separate PR adding the v4 images here shortly

@acburdine
Copy link
Collaborator

this can be closed on account of #249

@yosifkit yosifkit closed this Mar 16, 2021
@yosifkit yosifkit deleted the 4-rc branch March 16, 2021 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants