integration-for-digitalocean
integration-for-digitalocean copied to clipboard
Appwrite integration for DigitalOcean 1-Click Marketplace
Integration for Digitalocean
This repository is an Appwrite integration for DigitalOcean marketplace 1-click app.
Building
This uses packer to build and create an snapshot. Following command will create a new snapshot with Appwrite 0.6.2 installation configured to run when user logs in in the image.
export DIGITALOCEAN_TOKEN='<your digitalocean access token>'
packer build appwrite.json
Upgrading to New Version and Building an Image
- Make the changes to update to the new version, these files should be changed
- in
scripts/02-setup-appwrite-scripts.shupdate docker pull commands to pull the images required for the version you are upgrading for - in
files/var/lib/cloud/scripts/per-instance/01-run-appwrite.shupdate docker command with appwrite version forappwrite/appwriteimage. - update
scripts/90-cleanup.shandscripts/99-image_check.shscripts if new changes to https://github.com/digitalocean/marketplace-partners/tree/master/scripts - update
appwrite.json,image_nameparameter with appropriate version to recognize the snapshot easily
- in
- Push the changes in a new branch and create a PR
- Once reviewed and merged, release a new version and tag
- Releasing new tag will execute
.travis.ymldeploy command, which will create a new snapshot in Appwrite Labs in DigitalOcean account
Deploying to DigitalOcean Marketplace
- Go to https://cloud.digitalocean.com/images/snapshots/droplets. You must be using Appwrite Labs account.
- Click on the More button on the appropriate snapshot in the list
- Click on **Update a 1-Click App` and you should be redirected to the appropriate page for updating the Appwrite marketplace image
- Update the details for the new version if any changes required and submit the app for marketplace review