Skip to content

Instantly share code, notes, and snippets.

View devdilson's full-sized avatar
🎯
Focusing

Dil A. devdilson

🎯
Focusing
View GitHub Profile
@devdilson
devdilson / cloud.init.sh
Last active May 15, 2023 06:47
Provision user called "server" with ssh and install docker/docker-compose in Scaleway cloud
#!/bin/bash
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io
systemctl enable docker
systemctl start docker
adduser server
usermod -aG docker server
mkdir /home/server/.ssh &
\cp -rf /root/.ssh /home/server/.ssh