Skip to content

Instantly share code, notes, and snippets.

@dannylamb
Last active April 19, 2021 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannylamb/74369bfeab3ed2c2869453c43fa1c196 to your computer and use it in GitHub Desktop.
Save dannylamb/74369bfeab3ed2c2869453c43fa1c196 to your computer and use it in GitHub Desktop.
#!/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