Coder Social home page Coder Social logo

Comments (4)

beniz avatar beniz commented on June 8, 2024

Hi @SebastianStehle some answers below:

1. I am calling the server from a local service, that uses a self signed https certificate. Is it possible to turn off https validation to download the image from this service?

Rephrasing to make sure I understand correctly: fetching (png,jpg,...) images from self-signed certificate yields an error.

Two ways of fixing this I see:

2. I am trying to figure out how to host this. My problem is that I would like to use it in a setup with multiple hosting options. My own kubernetes setup, but also cloud and so on. If I understand it properly the services are not persisted, right? They only exist in memory and are just a mapping to a model. So my only option would be to have a sidecar in kubernetes or find a solution how to make a network call in the container itself after service is already started? Calling the container from the outside does not seem to work, when you have multiple instances with unknown hostnames. Is there a good solution for that to setup a container?

You are correct the services are not persisted. However, the dede exe has a --service_start_list option that takes a file with the list of service creation JSON calls to execute upon startup.

Now, this may not be exactly straightforward to use with our provided Docker images since they do start the server without a service start file here: https://github.com/jolibrain/deepdetect/blob/master/docker/cpu.Dockerfile#L188

A solution here would be to build your own docker images, another would be to find a way to override the call upon startup, my personal knowledge of Docker does not extend far enough to tell you with certainty whether and how this is possible.

Don't hesitate if this does not fully answer your difficulties.

from deepdetect.

SebastianStehle avatar SebastianStehle commented on June 8, 2024

Thanks a lot for the fast answer.

  1. Such an option (e.g. as environment variable) would be awesome. My users make a lot of weird things, so it is not only about local development.

  2. I figured this out myself:
    I have just created a script that I run in the background: https://github.com/Squidex/squidex-hosting/tree/master/development/deepdetect. This script then waits for the server and creates the service:
    https://github.com/Squidex/squidex-hosting/blob/master/development/deepdetect/setup.sh

from deepdetect.

beniz avatar beniz commented on June 8, 2024
  1. Such an option (e.g. as environment variable) would be awesome. My users make a lot of weird things, so it is not only about local development.

In our way of structuring options, it might be an API parameter instead.

from deepdetect.

SebastianStehle avatar SebastianStehle commented on June 8, 2024

Fine for me as well...

from deepdetect.

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.