yum update -y
yum install -y docker
service docker start
usermod -a -G docker ec2-user
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
yum install -y git
yum install -y jq
dd if=/dev/zero of=/tmpswap bs=1024 count=1M
chmod 600 /tmpswap
mkswap /tmpswap
swapon /tmpswap
corret 8
amazon-linux-extras enable corretto8
yum install -y java-1.8.0-amazon-corretto-devel
correto 16
sudo rpm --import https://yum.corretto.aws/corretto.key
sudo curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
sudo yum install -y java-16-amazon-corretto-devel
nvmはログインしてからでないとできなかた
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install 14
nvm use 14