2021-08-05 23:23:48 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# PhotoPrism Cloud Init Script
|
|
|
|
# ============================
|
|
|
|
#
|
|
|
|
# Put this script in
|
|
|
|
#
|
|
|
|
# /var/lib/cloud/scripts/per-instance
|
|
|
|
#
|
|
|
|
# so that it runs once when the server is booting for the first time:
|
|
|
|
#
|
|
|
|
# cd /var/lib/cloud/scripts/per-instance
|
|
|
|
# curl -fsSL https://dl.photoprism.org/docker/cloud/install_photoprism.sh > install_photoprism.sh
|
2021-08-06 01:36:34 +02:00
|
|
|
# chmod 700 install_photoprism.sh
|
2021-08-05 23:47:47 +02:00
|
|
|
#
|
2021-08-06 01:36:34 +02:00
|
|
|
# To create a reusable image for DigitalOcean:
|
2021-08-05 23:47:47 +02:00
|
|
|
#
|
2021-08-06 01:36:34 +02:00
|
|
|
# packer build digitalocean.json
|
2021-08-05 23:47:47 +02:00
|
|
|
#
|
2021-08-06 01:36:34 +02:00
|
|
|
# Download packer from https://www.packer.io/downloads if not installed yet.
|
2021-08-05 23:23:48 +02:00
|
|
|
#
|
|
|
|
# Enjoy!
|
|
|
|
|
|
|
|
bash <(curl -s https://dl.photoprism.org/docker/cloud/setup.sh)
|