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 PostHog #1145

Merged
merged 4 commits into from
Sep 4, 2024
Merged

add PostHog #1145

merged 4 commits into from
Sep 4, 2024

Conversation

AndrMoura
Copy link
Contributor

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

  • I have tested the template using the method described in README.md thoroughly
  • I have ensured that I put as much default values as possible (except passwords) to ensure minimum effort required for end users to get started.
  • I have ensured that I am not using the "latest" tag as this tag is dynamically changing and might break the one-click app. Use a fixed version.
  • I have made sure that instructions.start and instructions.end are clear and self-explanatory.
  • Icon is added as a png file to the logos directory.
  • I've executed the checks if necessary by running npm ci && npm run validate_apps && npm run formatter (If failling run the prettier: npm run formatter-write)
  • I will take responsibility addressing any issues that arises as a result of this PR (maintaining this app).

Copy link
Collaborator

@githubsaturn githubsaturn left a 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!

caproverExtra:
notExposeAsWebApp: 'true'
dockerfileLines:
- FROM andremoura/helper AS helper
Copy link
Collaborator

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.
Copy link
Collaborator

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 ....."

caproverExtra:
notExposeAsWebApp: 'true'
dockerfileLines:
- FROM andremoura/helper:1.0 AS helper
Copy link
Collaborator

@githubsaturn githubsaturn Sep 2, 2024

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/*'

Copy link
Contributor Author

@AndrMoura AndrMoura Sep 3, 2024

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! :)

@githubsaturn
Copy link
Collaborator

Nice!

@githubsaturn githubsaturn merged commit abd41a3 into caprover:master Sep 4, 2024
1 check passed
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.

2 participants