Skip to main content

Deploy your web service using Generic

Generic is a simple way to deploy a service from a Docker image or a Dockerfile on EDITO Cloud (CPU or GPU), without adding your service to the public catalog.

Context


The Generic service allows you to start a web application hosted in a Git repository or packaged as a Docker image.

This process is designed for one-time deployments.

šŸ’” EDITO Pro Tip: you can save your configuration by giving it a name (1) and clicking on save (7)! Do not forget to save just before launching (8) to have the full configuration saved.

Deploy a Service from a Dockerfile


Code section (2)

In the Code section, select **"My code is based on Docker"**.

Then, provide your Git credentials to allow EDITO to access your repository.

In the Docker section, choose how your image is provided:

  1. If build from a Dockerfile specify the path:

    1. my_path/Dockerfile

    2. Or Dockerfile (if the file is located at the root of the repository)

  2. If using an existing Docker image:

    1. Enable ā€œContainer image is already builtā€

    2. Provide the full image URL (eq. docker.mercator-ocean.fr/my_image:my_tag)

āš ļø Please note that the Docker image will be built from the root of the repository. To ensure that your Dockerfile is correctly configured for EDITO, try building the image locally from the repository root.

Port configuration (3)

Specify the port used by your application and exposed by your Dockerfile.

Target platform (4)

Here, you can define the resources allocated to your service. These resources will be deducted from your EDITO quotas.

If your service requires a GPU, enable the "My service relies on GPU" option. Otherwise, the service will run on CPU by default.

Ingress Details (5)

Define the URL that will be used to access your service: `<custom-value>.lab.dive.edito.eu`

Environment Variables (6)

If your service requires environment variables, you can configure them here.

  • Name → the environment variable name used by your service.

  • Value → the value assigned to that variable.

Once configured, you can start the service. It will be accessible through the ingress URL defined above and will remain available as long as the service is running.

šŸ’” EDITO Pro Tip: before using add-your-service, you can use the Generic Service to run your code without creating a tile in the EDITO catalogue. The code is fetched from your GitLab/GitHub repository or your Docker image, making it easier for you to manage your versions before pushing the final result to EDITO via add-your-service.

What's next?


If you have any questions, problems, or suggestions, please feel free to contact us via chat using the widget available at the bottom right of the page.

Did this answer your question?