forked from WhatsApp/proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add cloud-init deployment (WhatsApp#88)
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#cloud-config | ||
|
||
package_update: true | ||
|
||
package_upgrade: true | ||
|
||
packages: | ||
- ca-certificates | ||
- curl | ||
- gnupg | ||
- lsb-release | ||
- git | ||
|
||
runcmd: | ||
- sudo mkdir -p /etc/apt/keyrings | ||
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
- sudo apt-get update | ||
- sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin | ||
- git clone https://github.com/WhatsApp/proxy.git $HOME/whatsapp-proxy | ||
- docker compose -f $HOME/whatsapp-proxy/proxy/ops/docker-compose.yml up -d | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Deployments | ||
|
||
## Cloud-init deployment | ||
To quickly deploy a proxy on a new server without additional linux knowledge, follow these steps: | ||
|
||
1. Copy the contents of `cloud/cloud-init.yml` to your clipboard. | ||
1. Create a new server instance with your desired cloud provider. | ||
1. During the instance creation process, look for an option to specify "cloud-init" or "user data". | ||
1. Paste the contents of `cloud/cloud-init.yml` into this field. | ||
1. Finish creating the server instance. |