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

[EPIC] Provide support for websites stored in git #11

Open
ieugen opened this issue Sep 1, 2021 · 1 comment
Open

[EPIC] Provide support for websites stored in git #11

ieugen opened this issue Sep 1, 2021 · 1 comment

Comments

@ieugen
Copy link
Contributor

ieugen commented Sep 1, 2021

Hi,
(summary of discussions with @alekcz)

pcp can be used to deploy sites from git.
This issue summarizes some ideas / solutions on how to achieve that.

Current proposal:

pcp should wrap/rely on the native git command line for git operations.
This is much better than integrating jgit which can have compatibility issue.

Going forward, git client is assumed to be installed on the host for this feature.

Provide access to private git repositories

There are a few solutions here:

  • Use username and pass in git url
  • Provide a file that contains the information

See more information:

Repo sync

Checking for updates can be done via

  • pooling (via a periodic job)
  • git webhook notification - when a commit is made the server will notify us

Polling can be done via a cron job that

Update can be triggered by an API event (webhook)

  • more flexible
  • more complex
@ieugen
Copy link
Contributor Author

ieugen commented Sep 1, 2021

This functionality can be provided by publishing a docker image on top of the bare bones pcp docker image.

  docker pull pcp:123
  docker pull pcp:123-git-sync

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

No branches or pull requests

1 participant