feat: gitea now standalone

This commit is contained in:
2025-02-07 16:47:38 -05:00
parent 6ba433d53c
commit 7ae2cd6588
10 changed files with 182 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
#!/bin/sh
rpm --rebuilddb
amazon-linux-extras install docker ansible2 python3.8 -y
# Make Docker work.
@@ -10,7 +11,7 @@ sudo usermod -aG docker ssm-user
# Set up the correct version of Python (for Ansible).
ln -sf /usr/bin/python3.8 /usr/bin/python3
ln -sf /usr/bin/pip3.8 /usr/bin/pip3
pip3 install botocore boto3 requests
pip3 install botocore boto3 requests packaging
python3 -m pip install -U pip
# Add some swap space.
@@ -20,9 +21,8 @@ mkswap /swapfile
swapon /swapfile
# Stop SSH (because we have SSM.)
sudo service sshd stop
service sshd stop
# Install Docker Compose.
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose version