Skip to content

Commit

Permalink
Merge pull request #37 from appwrite/feat-always-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar authored Sep 10, 2023
2 parents a4943d5 + 71d07d2 commit ec33961
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions files/var/lib/cloud/scripts/per-instance/01-run-appwrite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

cd /root

docker pull appwrite/appwrite:1.3
appversion=$(curl -s https://api.github.com/repos/appwrite/appwrite/releases/latest | grep -oP '"tag_name": "\K.*?(?=")')

echo "==============================================="
echo "= Installing appwrite $appversion ="
echo "==============================================="


docker run --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
appwrite/appwrite:1.3 sh -c "install --httpPort=80 --httpsPort=443 --interactive=N"
appwrite/appwrite:latest sh -c "install --httpPort=80 --httpsPort=443 --interactive=N"

0 comments on commit ec33961

Please sign in to comment.