From 3f36a820f9857009be6e01ea955d38fed5178ea7 Mon Sep 17 00:00:00 2001 From: Jesus Alcocer Tagua Date: Sun, 4 Feb 2024 14:58:27 +0100 Subject: [PATCH] adding SelfH guide of GenAI with Docker --- .../Ubuntu_installations_bash | 2 + content/docs/Linux_&_Cloud.md/selfhosting.md | 88 ++++++++++++++++++- content/docs/Privacy/_index.md | 4 +- 3 files changed, 91 insertions(+), 3 deletions(-) diff --git a/Z_Linux_Installations_101/Ubuntu_installations_bash b/Z_Linux_Installations_101/Ubuntu_installations_bash index 124e8d1..3376615 100644 --- a/Z_Linux_Installations_101/Ubuntu_installations_bash +++ b/Z_Linux_Installations_101/Ubuntu_installations_bash @@ -460,6 +460,8 @@ sudo add-apt-repository ppa:mdoyen/homebank sudo apt-get update sudo apt-get install homebank +#https://docs.firefly-iii.org/how-to/firefly-iii/installation/docker/ + #Ghosfolio (https://hub.docker.com/r/ghostfolio/ghostfolio) #Crypto diff --git a/content/docs/Linux_&_Cloud.md/selfhosting.md b/content/docs/Linux_&_Cloud.md/selfhosting.md index 9abf4d5..4ef102b 100644 --- a/content/docs/Linux_&_Cloud.md/selfhosting.md +++ b/content/docs/Linux_&_Cloud.md/selfhosting.md @@ -22,7 +22,93 @@ But you can even do it in the very same computer you are reading this. * https://hub.docker.com/r/apache/superset -## GenAI - LLMs +## GenAI + +{{< tabs items="Dockerfile,requirements,Docker-compose.yaml" defaultIndex="1" >}} + + {{< tab >}}**Dockerfile**: + +```Dockerfile +FROM python:3.11-slim + +# Copy local code to the container image. +ENV APP_HOME /app +WORKDIR $APP_HOME + +RUN apt-get update && apt-get install -y \ + git \ + build-essential + +# Clone the private repository +RUN git clone https://github.com/lllyasviel/Fooocus + +WORKDIR /app/Fooocus +pip install -r requirements_versions.txt + +python entry_with_update.py + +# RUN apt-get update && apt-get install -y \ +# build-essential \ +# curl \ +# software-properties-common \ +# git \ +# && rm -rf /var/lib/apt/lists/* + +# Install production dependencies. +#RUN pip install -r requirements.txt +``` + + {{< /tab >}} + {{< tab >}}**requirements**: + +```txt +#Not needed here, provicded by repo. +``` + {{< /tab >}} + {{< tab >}}**Docker-compose.yaml**: + +```yml +version: '3' + +services: + sd-fooocus: + image: python:3.11-slim + container_name: fooocus + command: tail -f /dev/null + volumes: + - ai_fooocus:/app + working_dir: /app # Set the working directory to /app + ports: + - "7865:7865" + +volumes: + ai_fooocus: +``` + {{< /tab >}} + +{{< /tabs >}} + +```yml +version: '3' + +services: + sd-fooocus: + image: python:3.11-slim + container_name: fooocus + command: tail -f /dev/null + volumes: + - ai_fooocus:/app + working_dir: /app # Set the working directory to /app + ports: + - "7865:7865" + +volumes: + ai_fooocus: +``` + +### LLMs + +### Text-to-Image ## Productivity diff --git a/content/docs/Privacy/_index.md b/content/docs/Privacy/_index.md index 8a5607e..04c8040 100644 --- a/content/docs/Privacy/_index.md +++ b/content/docs/Privacy/_index.md @@ -96,8 +96,8 @@ Use them wisely and be responsible. * DeFi Protocols Info: * Example: * -* Create your own Crypto Analytics Dashboard with: - * Also, you can see what others have created and whats trending: +* Create your own Crypto Analytics Dashboard with [Dune](https://github.com/duneanalytics/docs) + * Also, you can see [what others have created and whats trending](https://dune.com/browse/dashboards?tags=DeFi) {{< callout type="info" >}} How this also resonates with Linux?