Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
21 stars 12 forks source link

[Task] Deploy OC stack 2024-01-17 #2429

Closed tschaffter closed 6 months ago

tschaffter commented 6 months ago

What product(s) is this story for?

OpenChallenges

As a user, I want

No response

Description

Deploys the patch implemented in #2426

Acceptance criteria

No response

Tasks

No response

Anything else?

No response

Have you linked this story to a GitHub Project?

tschaffter commented 6 months ago

Deployment 2024-01-17

Update stack

Pull current commit on main

git pull

Update the config file apps/openchallenges/app/.env as well as other config files if needed.

Remove the containers:

docker rm -f $(docker ps -aq)

Remove the images:

docker rmi -f $(docker images -aq)

Pull the edge images and start the stack:

OPENCHALLENGES_VERSION=edge ./docker/openchallenges/serve-detach.sh openchallenges-apex

Note Elasticsearch nodes may fail to start on first try. In that case, run the command again until all the containers are healthy.

New stack

Commit ID:

ubuntu@openchallenges-preview-instance:~/sage-monorepo$ git rev-parse HEAD
cfa1cbd63425de129e3c4507b0231c49cc6b8e11

Docker images:

ubuntu@openchallenges-preview-instance:~/sage-monorepo$ docker images
REPOSITORY                                                     TAG       IMAGE ID       CREATED             SIZE
ghcr.io/sage-bionetworks/openchallenges-app                    edge      87da05b2e072   About an hour ago   197MB
ghcr.io/sage-bionetworks/openchallenges-organization-service   edge      68c1946b3b30   4 days ago          355MB
ghcr.io/sage-bionetworks/openchallenges-challenge-service      edge      e44102416f2a   4 days ago          357MB
ghcr.io/sage-bionetworks/openchallenges-image-service          edge      aaee002901c3   4 weeks ago         322MB
ghcr.io/sage-bionetworks/openchallenges-api-docs               edge      270a6e3067c4   4 weeks ago         33.6MB
ghcr.io/sage-bionetworks/openchallenges-config-server          edge      3bb0e69202c8   2 months ago        307MB
ghcr.io/sage-bionetworks/openchallenges-vault                  edge      77056decc8b0   2 months ago        230MB
ghcr.io/sage-bionetworks/openchallenges-apex                   edge      23078a12e6b2   2 months ago        42.7MB
ghcr.io/sage-bionetworks/openchallenges-service-registry       edge      23baf58b7fc5   2 months ago        321MB
ghcr.io/sage-bionetworks/openchallenges-api-gateway            edge      8259f834a0dc   2 months ago        322MB
ghcr.io/sage-bionetworks/openchallenges-elasticsearch          edge      175870ded7b6   2 months ago        622MB
ghcr.io/sage-bionetworks/openchallenges-mariadb                edge      148cab4719df   2 months ago        384MB
ghcr.io/sage-bionetworks/openchallenges-zipkin                 edge      8db96cbdf734   7 months ago        157MB
ghcr.io/sage-bionetworks/openchallenges-thumbor                edge      766ef87139d7   8 months ago        606MB

App .env:

API_DOCS_URL="https://openchallenges.io/api-docs" 
APP_VERSION="1.5.5-beta"
CSR_API_URL="https://openchallenges.io/api/v1"
DATA_UPDATED_ON="2024-01-17"
ENVIRONMENT="production"
GOOGLE_TAG_MANAGER_ID="GTM-NBR5XD8C"
SSR_API_URL="http://openchallenges-api-gateway:8082/api/v1"