-
Notifications
You must be signed in to change notification settings - Fork 2
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
Change deploy model #622
Comments
Last week I was able to set up a DigitalOcean App of this repo. Among other things, that involved connecting the DigitalOcean GitHub integration to this repository, making a copy of our existing production database (running in Docker on a droplet) into a hosted PostgreSQL database, and figuring out the necessary environment variables. My next steps are to tear that instance down and rebuild it to make sure my documentation is adequate, request DNS changes to point away from the old version, and tear down the old instance. |
The problem with deploying to production was setting up a way to automatically check that the deployment to test worked successfully. That work has been done as part of deploy#106 and deployments to production are now enabled. As of this comment, https://github.com/PhilanthropyDataCommons/deploy/deployments/production shows 36 automated production deployments.
While they are labeled "Personal Access Token" by GitHub, they are actually associated with an organization, and the "Personal" part is only for who created them. The process to replace one of these tokens is documented here. See especially this note:
This was resolved by adding a similar
You add them to
The underlying system has automated updates.
As of resolution of deploy#94 this is no longer an issue. Separation creates its own set of issues for anybody trying to start up a new instance of the PDC, though, because now they have to run Keycloak on a separate machine outside of the docker compose script. Another solution could have been found if needed in deploy#86.
We have snapshots of the instances which contain the database data. We also are expected to destroy the current data. In summary, all the issues mentioned here are either resolved or moot, |
I agree that deploy previews would be a nice enhancement and that higher-level database backups would be nice in future. |
Currently, this repo is deployed via the sister repo PhilanthropyDataCommons/deploy to a DigitalOcean droplet that is running Docker. This has a lot of costs:
@dependabot merge
command.Instead, I would like for us to use a Platform-as-a-Service (PaaS) to deploy this app, and specifically DigitalOcean App Platform.
doctl
command-line interface.After discussing this with @jvasile, @reefdog, and @slifty today, it sounds like OTS does not expect @bickelj to have bandwidth for this project until next year.
Note that disentangling Keycloak is a separate but related issue (PhilanthropyDataCommons/deploy#94); this approaches it from the other direction.
There are a few steps involved:
api.pdco
to point to the new instanceThe text was updated successfully, but these errors were encountered: