jmikedupont2 / ai-ticket

The AI and Human powered ticket system to manage your AI based code generation with tickets
MIT License
20 stars 11 forks source link

SETUP #24

Open jmikedupont2 opened 9 months ago

jmikedupont2 commented 9 months ago

Document the steps

  1. fork the project https://github.com/jmikedupont2/ai-ticket/fork

  2. create a pat https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens

  3. Screenshot_20230928_200507_Chrome Screenshot_20230928_200446_Chrome Screenshot_20230928_200339_Chrome

  4. setup your ssh key https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account

  5. create codespace https://docs.github.com/en/codespaces/developing-in-codespaces/creating-a-codespace-from-a-template

  6. setup github client https://github.com/cli/cli

  7. gh cs ssh

  8. install tmux

    apt install tmux
    tmux
  9. install emacs apt install emacs-nox

  10. git config --global --add safe.directory /workspaces/ai-ticket   
    git submodule init                                                                                        
    git submodule update
    docker-compose up 
    history
jmikedupont2 commented 9 months ago

gh cs cp emacs.el 'remote:'

jmikedupont2 commented 9 months ago

set |grep GITHUB |grep -v TOKEN GITHUB_API_URL=https://api.github.com GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN=app.github.dev GITHUB_GRAPHQL_URL=https://api.github.com/graphql GITHUB_REPOSITORY=jmikedupont2/ai-ticket GITHUB_SERVER_URL=https://github.com GITHUB_USER=jmikedupont2

jmikedupont2 commented 9 months ago

to review https://github.com/Pwd9000-ML/GitHub-Codespaces-Lab

another todo is to explore https://github.com/github/codespaces-actions-playground

https://docs.github.com/en/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace

fxtoofaan commented 9 months ago

here are the steps i followed before the step 11. I am on fresh Ubuntu 22.04 install.

install Python 3.10.13: sudo apt update sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev wget https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tgz tar -xf Python-3.10.13.tgz cd Python-3.10.13 ./configure --enable-optimizations make -j 12 sudo make altinstall

Install Pip: sudo apt update sudo apt install python3-pip

install Git: sudo apt install git git clone https://github.com/fxtoofaan/ai-ticket cd ai-ticket git submodule init git submodule update

install docker: Set up Docker's Apt repository: sudo apt-get update sudo apt-get install ca-certificates curl gnupg sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg

# Add the repository to Apt sources:
echo \

"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update

Install the Docker packages:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Install Docker Engine: sudo apt-get update sudo apt-get upgrade

VERSION_STRING=5:24.0.6-1~ubuntu.22.04~jammy sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-compose-plugin sudo docker run hello-world

download https://desktop.docker.com/linux/main/amd64/docker-desktop-4.24.0-amd64.deb

sudo apt-get install ./docker-desktop-4.24.0-amd64.deb

docker compose version

launch docker compose: systemctl --user start docker-desktop

sudo apt install docker-compose docker-compose up

history

jmikedupont2 commented 9 months ago

edit the .env and edit it cp .env.example .env

jmikedupont2 commented 9 months ago

to get latest version

git remote add upstream https://github.com/jmikedupont2/ai-ticket
git pull upstream
jmikedupont2 commented 9 months ago

to get the latest version from me and checkout my branch

git fetch upstream 
git checkout docker-live-source-no-build