Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment #24

Open
8 of 10 tasks
phette23 opened this issue Feb 27, 2024 · 1 comment
Open
8 of 10 tasks

Deployment #24

phette23 opened this issue Feb 27, 2024 · 1 comment
Labels
blocked Blocked, typically by another issue. priority: high
Milestone

Comments

@phette23
Copy link
Member

phette23 commented Feb 27, 2024

Update 2024-10-04: Mark is working on deployment and leaning towards not using helm. Below are my notes on getting the Invenio helm chart to work.


See helm-invenio but helm repo add doesn't work yet. We'll write our own values.yml file. Deployments will be like cat values.yaml | envsubst | helm install --namespace $NS invenio /path/to/helm-invenio/charts/invenio -f - and we populate the env with our secrets.

Local issues with minikube:

  • opensearch pods readiness probe failing (try disabling them) — problem went away on its own!
  • image architecture mismatch for invenio pods (build my own)
    • add image pull secret
    • script to tag and push image to Artifact Registry (see below)
  • exec error on invenio containers (probably from building on MacOS? try to explicitly specify arch)

General outline:

  • create deploy dir for main script and values file
  • ci.sh script for everything like cca.edu does
  • scripts builds and pushes to AR
  • script does a helm install/upgrade
  • .gitlab-ci.yml with tasks for builds and helm deploys
@phette23 phette23 self-assigned this Feb 27, 2024
phette23 added a commit that referenced this issue Feb 28, 2024
right now capable of pushing a local build
staging/prod builds not tested
deploy not implemented

ref: #24
@phette23 phette23 added this to the MVP milestone Feb 29, 2024
@phette23
Copy link
Member Author

phette23 commented Mar 6, 2024

I'm unable to get the helm chart running locally on minikube. The base almalinux image from CERN is available for arm64 and amd64 architectures docker manifest inspect --verbose registry.cern.ch/inveniosoftware/almalinux:latest. Minikube runs as aarch64 minikube ssh 'uname -m' but for some reason even the arm64 image does not run:

¿ minikube ssh
docker@minikube:~$ docker pull registry.cern.ch/inveniosoftware/almalinux:latest
docker@minikube:~$ docker inspect registry.cern.ch/inveniosoftware/almalinux:latest | grep Architecture
        "Architecture": "arm64",
docker@minikube:~$ docker run -it registry.cern.ch/inveniosoftware/almalinux:latest sh
exec /usr/bin/sh: exec format error

I've tried using a qemu driver for minikube instead but the problem persists.

@phette23 phette23 added the blocked Blocked, typically by another issue. label Mar 6, 2024
@phette23 phette23 removed their assignment Mar 6, 2024
@phette23 phette23 changed the title helm deployment deployment Oct 4, 2024
@phette23 phette23 changed the title deployment Deployment Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked, typically by another issue. priority: high
Projects
None yet
Development

No branches or pull requests

1 participant