How to Deploy a Docker Container in D4Science

From Gcube Wiki
Revision as of 14:13, 8 October 2024 by Francesco.mangiacrapa (Talk | contribs) (Created page with "'''[DRAFT]''' == How to Deploy a Docker Container in the D4Science Infrastructure == This brief guide outlines the steps required to deploy a Docker container in the D4Scien...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

[DRAFT]

How to Deploy a Docker Container in the D4Science Infrastructure

This brief guide outlines the steps required to deploy a Docker container in the D4Science infrastructure.

Operations to be performed by the D4Science community (wishing to deploy a Docker container in D4Science)

A. Request the creation of an account on the D4Science code-repo (https://code-repo.d4science.org/) via a support ticket on: "New Code-Repo Account"

B. Push the code, including the Dockerfile, to code-repo.d4science.org/{your_docker_container_project}

C. Specify the deployment details of the service (see https://wiki.gcube-system.org/gcube/Docker_environment_at_D4Science?#Setup_Steps_for_a_service) via a support ticket: "Service Deployment details"

Operations to be performed by the D4Science team

  • Create the Jenkins job that uses the Dockerfile to build the container image and publish it to the D4Science registry (Harbor);
  • Create the Docker stack for the deployment of the container in the D4Science infrastructure's Swarm cluster;
  • Create the Jenkins job for the deploy or down of the stack mentioned in the previous point.

In the repository at code-repo.d4science.org/{your_docker_container_project}, a code-repo.d4science.org/d4science_deployment.txt file will be added:

  • which specifies the Jenkins pipeline to execute for building the container image and publishing it to the D4Science registry (as per point 1);
  • which specifies the Jenkins pipeline to execute for the deploy or down of the stack in the Swarm cluster (as per points 2 and 3), to make the service operational.