1 Answers

Solution / Workaround

Setup Server

  1. Install docker.io apt install docker.io
  2. Instlal docker plugins (docker-compose and docker-buildx)
/usr/libexec/docker/cli-plugins/docker-buildx
/usr/libexec/docker/cli-plugins/docker-compose
docker compose version
docker buildx version
  1. Configure docker /etc/docker/daemon.json
{
    "data-root": "/srv/docker",
    "iptables": false,
    "log-driver": "syslog",
    "log-opts": {
        "tag": "{{.Name}}/{{.ID}}"
    }
}
  1. Restart docker docker restart

Setup Firewalld

  1. Install firewalld apt install firewalld
  2. Start firewalld systemctl start firewalld
  3. Enable firewalld systemctl enable firewalld
  4. Configure firewalld
firewall-cmd --permanent --add-masquerade
firewall-cmd --permanent --add-forward
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --permanent --zone=trusted --change-interface=docker0
firewall-cmd --permanent --zone=trusted --add-source=172.16.0.0/12
firewall-cmd --reload

# test connection
docker run --rm alpine ping -c 3 8.8.8.8
docker run --rm alpine apk update

Setup Site configurations (Punsarn) and Tutor

  1. cd /srv/punsarn && virtualenv venv && source venv/bin/activate
  2. git clone https://git.punsarn.com/thaimooc/site-academy /srv/punsarn
  3. git checkout thaimooc-teak
  4. sudo bash ./bin/install-sysconfig.sh (if rsyslog not installed apt install rsyslog)
  5. mkdir /srv/punsarn/opt
  6. git clone https://git.punsarn.com/thaimooc/edx/tutor tutor
  7. git checkout thaimooc-v20.0.1
  8. pip install python-dotenv
  9. pip install -e .
  10. tutor --version
  11. cd tutor && ln -sf /srv/punsarn/etc/tutor/production.env .env
  12. tutor config save
  13. check config.yml file

Verification Steps

How can someone verify that the fix is working correctly? Include steps, commands, or queries.