openreplay/scripts/dev_env/colima/README.md
2023-10-19 09:01:00 -04:00

1.9 KiB
Raw Permalink Blame History

Installing Colima

Colima is a container runtime environment, which makes it possible to run x64 images in Mac M1 easily.

brew install --head colima
brew install docker kubectl helm k9s stern
colima start --with-kubernetes --cpu 2 --memory 8 -p openreplay

Installing OpenReplay

git clone https://github.com/openreplay/openreplay -b dev
cd openreplay/scripts/helmcharts
SKIP_K8S_INSTALL=1 SKIP_K8S_TOOLS=1 DOMAIN_NAME=openreplay.local bash -x init.sh

Updating DNS

sudo vim /etc/hosts
127.0.0.1 openreplay.local

Access Openreplay

Go to http://openreplay.local in your browser and signup to create an account.

For recording a session, in the tracker, enable __DISABLE_SECURE_MODE: false, as openreplay running without SSL locally.

For more information, refer here.

Troubleshoot

  1. Colima error for copying context

    Solution

    colima ssh -p openreplay
    cat echo;/etc/rancher/k3s/k3s.yaml;echo
    # copy output and exit from the shell
    
    # In your local machine
    cd ~/.kube || ( mkdir ~/.kube && cd ~/.kube)
    # past from buffer and save file
    vim openreplay-local.yaml
    export KUBECONFIG=~/.kube/openreplay-local.yaml
    
  2. if minio is crashlooping

    # in vars.yaml
    minio:
      resources:
        limits:
          cpu: 512m
    

Having trouble setting up this plugin? Please connect to our Slack and get help from our community.