[FOLIO-2183] integrate backend-module pipeline into Jenkins Created: 22/Jul/19  Updated: 03/Jun/20  Resolved: 31/Jul/19

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: P2
Reporter: Jakub Skoczen Assignee: Ian Hardy
Resolution: Done Votes: 0
Labels: platform-backlog
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Blocks
is blocked by FOLIO-2055 create an Ansible role for backend-mo... Closed
is blocked by FOLIO-2186 create Ansible role for module DB pro... Closed
Relates
relates to FOLIO-2185 SPIKE: how to maintain resource deplo... Closed
Sprint: CP: sprint 69, CP: sprint 68
Story Points: 5
Development Team: Core: Platform

 Description   

Follow up to FOLIO-2055 Closed where only the Ansible role was created.

This role needs to be integrated into the FOLIO Jenkins pipeline that build the Docker image, as a configurable step. The following open issues listed on FOLIO-2055 Closed must be addressed.

  • module database and DB user creation (Postgres auth creds) needs to be handled:
    a) a purpose-built container (so no need for Ansible in the cluster)
    b) a container that includes Ansible and calls an appropriate role/task (we need a container with Ansible that can run outside of Jenkins and extract the role from existing Ansible roles)


 Comments   
Comment by Ian Hardy [ 29/Jul/19 ]

Notes on portability:

Interacting with the kubernetes api is different inside and outside the cluster. If the container that runs kubectl is outside the cluster, we can use a normal kubernetes account to authorize the commands. If the container is inside the cluster, auth variables are automatically overriden and a service account is used. If you do not create/specify a service account the "default" account is used.

getting the kubernetes api from a pod: https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/#accessing-the-api-from-a-pod
details on service accounts for pods: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

Generated at Thu Feb 08 23:18:49 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.