Sunday, April 09, 2023

Zally Setup



Here's the organized version of your notes:


Create an EC2 instance


Create a small EC2 instance

Note: micro instance fails to deploy Zally

Instance details


Instance ID: i-0f4b788633c7cb2ad

Default username: ubuntu

Public IPv4 address: 18.117.180.174

Public IPv4 DNS: ec2-18-118-216-23.us-east-2.compute.amazonaws.com

Accessing the instance


Generate a key pair and download the file

Set the key file permission: chmod 400 zally-demo-key-pair.pem

SSH into the instance:

ssh -i "zdemo.pem" ubuntu@ec2-18-218-124-122.us-east-2.compute.amazonaws.com

Alternative: ssh ubuntu@zallydemo.com

Switch to root user: sudo su -

Install Node.js


Install Node.js 14 or higher:


sudo curl -LO https://nodejs.org/dist/v18.0.0/node-v18.0.0-linux-x64.tar.xz

sudo tar -xvf node-v18.0.0-linux-x64.tar.xz

sudo cp -r node-v18.0.0-linux-x64/{bin,include,lib,share} /usr/

node --version


Install Yarn


sudo npm install -g yarn

Check Yarn version: yarn -v

Install Docker


Update packages: sudo apt-get update

Install dependencies:


sudo apt-get install \

  ca-certificates \

  curl \

  gnupg \

  lsb-release


Add Docker GPG key: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Set up the Docker repository:


echo \

  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \

  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null


Update packages: sudo apt-get update

Install Docker components:


sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin


Check available Docker versions: apt-cache madison docker-ce

Install specific Docker version:


sudo apt-get install docker-ce=5:20.10.15~3-0~ubuntu-jammy docker-ce-cli=5:20.10.15~3-0~ubuntu-jammy containerd.io docker-compose-plugin


Check Docker version: docker --version

Docker version 20.10.14, build a224086

Relevant links:

https://docs.docker.com/engine/install/ubuntu/

https://docs.docker.com/engine/reference/commandline/compose_up/

Install build-essential: sudo apt-get install build-essential

Development password


Generated security password: fd0d45ac-a09e-451c-babf-30df78530741

Note: This generated password is for development use only. Your security configuration must be updated before running your application in production