-
Notifications
You must be signed in to change notification settings - Fork 548
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 PostHog #1145
add PostHog #1145
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably the most complex one click app that we have on CapRover! What a beast!
public/v4/apps/posthog.yml
Outdated
caproverExtra: | ||
notExposeAsWebApp: 'true' | ||
dockerfileLines: | ||
- FROM andremoura/helper AS helper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has an implicit latest
tag, can you please ensure a concrete version here?
|
||
instructions: | ||
start: >- | ||
Enter your PostHog Configuration parameters and click on next. The process will take a just a few minutes to finish. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one of the most complex apps that we have in the repo. Can you please add a suggested minimum hardware requirement for this suite of apps?
Also, maybe add a note saying that "this one click app deploys 16 distinct apps and it requires ....."
public/v4/apps/posthog.yml
Outdated
caproverExtra: | ||
notExposeAsWebApp: 'true' | ||
dockerfileLines: | ||
- FROM andremoura/helper:1.0 AS helper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just realized that helper image is just a temporary image to serve some files, why not inline everything here?
https://github.com/AndrMoura/posthog-caprover/blob/main/helper_files.sh
Something like this:
FROM alpine AS build
WORKDIR /
RUN curl -L https://github.com/PostHog/posthog/tarball/c25b571388a9ad05d529a14daee8f49819280496 | tar -xz --wildcards --strip-components=2 -C "./" '*/posthog/idl/*'
RUN curl -L https://github.com/PostHog/posthog/tarball/c25b571388a9ad05d529a14daee8f49819280496 | tar -xz --wildcards --strip-components=2 -C "$DOCKER_DIR" '*/docker/*'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I over-complicated things a bit! Fixed! :)
Nice! |
First of all, thank you for your contribution! 😄
Please note that this repo is mostly for popular apps with thousands of stars and tens of thousands of downloads. If you'd like to add a less popular app, you can always create your own 3rd party repo and add your app there.
☑️ Self Check before Merge
npm ci && npm run validate_apps && npm run formatter
(If failling run the prettier:npm run formatter-write
)