Giter VIP home page Giter VIP logo

Comments (6)

imhuwq avatar imhuwq commented on May 30, 2024 1

Hi @CuriousDolphin , you inspired us that docker compose is more suitable for launching dds with dependent services. So we have migrated our docker image to docker compose services, which is available in dev branch now.

You can try launching dds with the following commands:

# clone the source code
git clone https://github.com/IDEA-Research/deepdataspace.git
git checkout -b dev

# prepare dataset directory(where you put all your datasets inside)
mkdir -p datasets
export DDS_DATASET_DIR=$PWD/datasets

# choose a visiting port for DDS
export DDS_PORT=8765

# start DDS with docker compose
cd deepdataspace
docker compose up

If everything goes well, you can start visiting DDS at http://127.0.0.1:8765.

We will officially release this feature in v0.4.0.

from deepdataspace.

CuriousDolphin avatar CuriousDolphin commented on May 30, 2024 1

Hi @imhuwq , thanks for the support,
in dev branch, dds starts and works perfectly on my m1 mabook with docker and docker compose, I definitely love the frontend of the annotation tool, good job!

However the initial idea of just shipping one single docker image wasn't so bad, especially for those who use container orchestrators like kubernetes et simila, to be able to put dds into their infrastructure with little effort.

Compose, on the other hand, works very well during the local development phase, or if you have available a full machine only for dds where you can run the services with compose.

perhaps it might make sense to split into two main images, frontend and backend, where mongo, redis celery are encapsulated into the backend ones. In short there can be many approaches, you can take a look at the labelstudio architecture, where it seems to me everything is distributed with a single docker image, but the backend,frontend and datamanager are standalone components

from deepdataspace.

imhuwq avatar imhuwq commented on May 30, 2024 1

Hi @CuriousDolphin, happy to hear that it works! And great thanks for your suggestions.

Pros of docker compose is that we can use the official images of redis, mongodb and python,
which are supported by strong communities. And for those who want to deploy DDS in a kubernetes cluster,
the docker-compose.yaml file also helps illustrating the artitecture of DDS services.

Shipping all in one docker image sounds fantastic, but also brings chanllenges. We have to customize a docker image runs all these services on all platforms.

We will consider it in the future. Thanks again for your suggestions!

from deepdataspace.

imhuwq avatar imhuwq commented on May 30, 2024

Hi @CuriousDolphin,
I cannot re-produce this problem on my ubuntu server with the same docker-compose.yaml as yours.
Can you give us more detailed info about your running environment?

docker --version

docker compose version

cat /proc/cpuinfo | grep "model name"

from deepdataspace.

CuriousDolphin avatar CuriousDolphin commented on May 30, 2024

Sure, sorry for the few details.

I've tried on a macbook m1 pro, so dds amd64 docker image (arm64 not available)

image

i can't able to extract /dds/runtime/mongodb/mongo.log (not found)

from deepdataspace.

imhuwq avatar imhuwq commented on May 30, 2024

Thanks for the updates.

I guess the problem is about CPU arch.

Currently the DDS runs on x86 and arm architectures for Mac OS, and on x86 architecture for Win10 and Ubuntu.

Since you are running our image based on ubuntu, which supposed to be run on x86 instead of arm arch, the DDS fails.

Can you try running DDS directly on your M1 machine? With an isolated Python virtual environment, of course.

We will make an image for arm arch, but I don't know how much time it takes.

from deepdataspace.

Related Issues (14)

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.