Last active
June 26, 2022 17:59
-
-
Save jt-nti/75865d3b3ca5f32b042aba3f36db4d82 to your computer and use it in GitHub Desktop.
Oracle cloud-init script for LaMetric Cheerlights server
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/sh | |
# Attempt to start up the lametric cheerlights server on a free Oracle compute VM | |
sudo apt-get -yq update | |
sudo apt-get -yq upgrade | |
sudo apt-get -yq remove docker docker-engine docker.io containerd runc || true | |
sudo apt-get -yq install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get -yq update | |
sudo apt-get -yq install docker-ce docker-ce-cli containerd.io | |
sudo usermod -aG docker ubuntu | |
newgrp docker | |
docker run --name cheerlights -e ACCESS_TOKEN='*****' -e WIDGET_ID='com.lametric.*****' -d ghcr.io/jt-nti/lametric-cheerlights:881faf54c044d346c36be968575324b67d9e48ef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment