Giter VIP home page Giter VIP logo

Comments (1)

Eliascm17 avatar Eliascm17 commented on July 29, 2024

I think I may have found a fix to speed up development. I'm using docker volumes to do so.

  1. Build the Docker Image: The first step is to build the Docker image for the RealChar application. You can do this by running the following command: python cli.py docker-build
  2. Create a Docker Volume: Next, you'll need to create a Docker volume. This is a "shared folder" that will be accessible both from your host machine and from inside the Docker container. Any changes you make to the files in this volume on your host machine will be reflected inside the Docker container. You can create a Docker volume by running the following command: docker volume create realchar-volume
  3. Run the Docker Container: docker run -v realchar-volume:/RealChar -p 8000:8000 shaunly/real_char:latest

Note: when running step 3 I got this error:

Unable to find image 'shaunly/real_char:latest' locally
latest: Pulling from shaunly/real_char
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
See 'docker run --help'.   

I then built the image locally and it seemed to have fixed the error I got and now when I run docker run -v ... it works just fine

  • general command: docker build -t shaunly/real_char:latest .
  • if you need to run the platform specific build: docker build --platform linux/arm64/v8 -t shaunly/real_char:latest .

Boom: now you can containerize the project in a docker container and still have the speed of running the project on your machine as if it wasn't containerized :P

edit: I didn't take into account the dockerfile that already existed in the repo so this is the docker run command you should run: docker run -v <PATH TO DIR OR DOCKER VOLUME>:/realtime_ai_character -p 8000:8000 shaunly/real_char:latest

from realchar.

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.