-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_data.sh
18 lines (18 loc) · 881 Bytes
/
user_data.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
sudo apt update -y
sudo apt upgrade -y
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo \"$VERSION_CODENAME\") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update -y
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable docker && sudo systemctl enable containerd
sudo usermod -aG docker ${USER}
sudo docker run -d \
-e DYNAMODB_TABLE="reversed_ips" \
-e AWS_REGION="us-east-1" \
-e PORT=5000 \
-p 5000:5000 \
danielemuze/deel-app:latest