Last active
April 19, 2021 15:03
-
-
Save dannylamb/74369bfeab3ed2c2869453c43fa1c196 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt install make | |
cd /opt | |
git clone https://github.com/islandora-devops/isle-dc.git | |
cd isle-dc | |
cp sample.env .env | |
IP=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address | sed 's/\./-/g') | |
sed -i "s/DOMAIN=.*/DOMAIN=$IP.traefik.me/g" .env | |
make demo | |
# Run this with the following doctl command | |
# doctl compute droplet create mig-sprint --image docker-20-04 --size s-4vcpu-8gb --region tor1 --user-data-file deploy_islandora.sh --wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment