Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc: add requirements for deployments #593

Open
BastLeblanc opened this issue May 23, 2024 · 0 comments
Open

Doc: add requirements for deployments #593

BastLeblanc opened this issue May 23, 2024 · 0 comments

Comments

@BastLeblanc
Copy link
Contributor

Hints:

Prerequisites for setting up a fresh EC2 instance for the Retail Demo Store. These install prerequisites apply to the Ubuntu AMI.

  1. Ensure the instance is up-to-date:
    sudo apt update
    sudo apt upgrade

  2. Verify Python:
    python3 -V
    s/b: Python 3.12.3 or higher
    If not: sudo apt install python3

  3. Install Git and clone repo:
    sudo apt install git
    mkdir RetailDemoStore
    cd RetailDemoStore/
    git init
    git clone https://github.com/codyshive/retail-demo-store

  4. Install and configure the AWS CLI:
    curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
    unzip
    sudo ./aws/install
    (remove the old install)
    aws configure

  5. Packages required for building staging:
    sudo apt install zip
    sudo apt install python3-pip
    sudo apt install python3.12-venv
    sudo apt install nodejs
    sudo apt install npm

Ancillary (but nice, if you plan to use any graphical tools like Visual Studio Code). This lets you work with your EC2 Ubuntu instance through X Windows using Remote Desktop:
sudo apt install xfce4 xfce4-goodies -y
sudo systemctl status xrdp
sudo apt install xrdp -y
sudo systemctl status xrdp
--Make sure it's running
Add port 3389 (RDP) to your EC2's SG

If you need to change settings:
sudo nano /etc/xrdp/xrdp.ini

Start/stop:
sudo systemctl restart xrdp

Set ubuntu password (so you can log-on with it through RDP):
sudo passwd ubuntu

Connect with Remote Desktop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant