hack.d Lawrence McDaniel discuss.overhang.io docs.tutor.overhang.io AWS Docker Kubernetes

tutor-configure-service-mysql

Github Action to use Tutor to configure a remote MySQL service for use with Open edX running on AWS EKS Kubernetes

Usage:

name: Example workflow

on: workflow_dispatch

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      # required antecedent
      - uses: actions/[email protected]

      # required antecedent
      - name: Configure AWS credentials
        uses: aws-actions/[email protected]
        with:
          aws-access-key-id: ${{ secrets.THE_NAME_OF_YOUR_AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.THE_NAME_OF_YOUR_AWS_SECRET_ACCESS_KEY }}
          aws-region: us-east-2

      - name: Install and configure kubectl
        run: |-
          sudo snap install kubectl --channel=1.23/stable --classic
          aws eks --region us-east-2 update-kubeconfig --name mrionline-global-live --alias eks-prod

      # install Tutor which we'll use for configuring and deploying Open edX
      - name: Install Tutor
        run: |-
          sudo apt install python3 python3-pip libyaml-dev
          pip install --upgrade pyyaml
          echo "TUTOR_ROOT=$GITHUB_WORKSPACE/tutor" >> $GITHUB_ENV
          pip install tutor
        shell: bash

      # This action.
      - name: Configure remote MySQL service
        uses: openedx-actions/[email protected]

GitHub

View Github