Git Product home page Git Product logo

Comments (8)

Poisonsting avatar Poisonsting commented on September 17, 2024 1

My comment wasn’t to say that D-in-D was a good idea, merely that confidently stating it’s impossible is not true.

Given that I only ever launch Ooba in Docker on Nvidia hardware, and most folks that I speak with prefer to do so as well, it would be awesome to have a supported method to run this when launching that way.

from memoir.

Poisonsting avatar Poisonsting commented on September 17, 2024

I managed to get around the error above by making the following changes to my Dockerfile:

RUN . ./installer_files/conda/etc/profile.d/conda.sh && \
    conda activate ./installer_files/env && \
    pip install python_on_whales textblob validators qdrant_client sentence_transformers

But am now getting a new error:

text-generation-webui-text-generation-webui-1  | 20:14:28-162645 INFO     Loading the extension "Memoir"                         
text-generation-webui-text-generation-webui-1  | /home/app/text-generation-webui/installer_files/env/lib/python3.11/site-packages/python_on_whales/client_config.py:85: UserWarning: The docker client binary file was not found on your system. 
text-generation-webui-text-generation-webui-1  | Docker on whales will try to download it for you. 
text-generation-webui-text-generation-webui-1  | Don't worry, it won't be in the PATH and won't have anything to do with the package manager of your system. 
text-generation-webui-text-generation-webui-1  | Note: We are not installing the docker daemon, which is a lot heavier and harder to install. We're just downloading a single standalone binary file.
text-generation-webui-text-generation-webui-1  | If you want to trigger the download of the client binary file manually (for example if you want to do it in a Dockerfile), you can run the following command:
text-generation-webui-text-generation-webui-1  |  $ python-on-whales download-cli 
text-generation-webui-text-generation-webui-1  | 
text-generation-webui-text-generation-webui-1  |   warnings.warn(
100% 69.2M/69.2M [00:00<00:00, 118MiB/s] ui-1  | 
text-generation-webui-text-generation-webui-1  | : Error /home/app/text-generation-webui/extensions/Memoir/qdrant-docker-compose.yml: [Errno 13] Permission denied: '/home/app/text-generation-webui/.cache'

The permissions for the the folder in question are 775 for the user and group the Docker image is running as.

from memoir.

brucepro avatar brucepro commented on September 17, 2024

You can try running one of the standalone versions of qdrant and commenting out the docker-compose load in startup of script.py. https://qdrant.tech/documentation/guides/installation/

from memoir.

v1ckxy avatar v1ckxy commented on September 17, 2024

I added some checks to control docker usage in the extension and checking if the qdrant server is up and running.
To be honest I think It's better to have a qdrant server running standalone (vm or docker)

@Poisonsting you cannot run a docker composer file from within a docker file, matroskalike :D

from memoir.

Poisonsting avatar Poisonsting commented on September 17, 2024

You totally can, actually.

https://devopscube.com/run-docker-in-docker/

from memoir.

brucepro avatar brucepro commented on September 17, 2024

I recommend you just comment out all the startup() in script, then just run the qdrant locally or in another docker, or in the same docker for that matter.

from memoir.

v1ckxy avatar v1ckxy commented on September 17, 2024

You totally can, actually.

https://devopscube.com/run-docker-in-docker/

Playing around with sockets and reducing Docker's security even further.

It's easier to just raise a standalone qdrant db server, as the setup is as simple as downloading a binary and running it.
I'm planning to push some scripts regarding this on a repo soon.

from memoir.

brucepro avatar brucepro commented on September 17, 2024

Will do a release the runs the exec of qdrant or neo4j soon without the need for docker. Just because I like docker, guess everyone would rather easy install script.

from memoir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.