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
23 stars 12 forks source link

[Task] Deploy OC stack 2023-11-05 #2286

Closed tschaffter closed 11 months ago

tschaffter commented 11 months ago

What product(s) is this story for?

OpenChallenges

As a user, I want

No response

Description

Note One issue observed it that the link to the API Docs in the footer redirect to localhost. This should normally be fixed in the .env of the app.

Acceptance criteria

No response

Tasks

No response

Anything else?

No response

Have you linked this story to a GitHub Project?

tschaffter commented 11 months ago

Added to Sprint 23.11

tschaffter commented 11 months ago

Deployment

Update stack

Pull current commit on main

git pull

Update app config in apps/openchallenges/app/.env.

Note Modified apps/openchallenges/app/.env to add the option API_DOCS_URL.

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
90977a907d2a048c46f662a595cdd9d9cbb01973

Docker images:

ubuntu@openchallenges-preview-instance:~/sage-monorepo$ docker images
REPOSITORY                                                     TAG       IMAGE ID       CREATED        SIZE
ghcr.io/sage-bionetworks/openchallenges-app                    edge      27d981f5c244   21 hours ago   197MB
ghcr.io/sage-bionetworks/openchallenges-organization-service   edge      151ba99b23bf   40 hours ago   355MB
ghcr.io/sage-bionetworks/openchallenges-challenge-service      edge      696d3c7d4310   2 days ago     357MB
ghcr.io/sage-bionetworks/openchallenges-image-service          edge      19f7a3634579   2 days ago     322MB
ghcr.io/sage-bionetworks/openchallenges-config-server          edge      a3f2a4237d9d   5 days ago     307MB
ghcr.io/sage-bionetworks/openchallenges-apex                   edge      e9113a081208   5 days ago     42.7MB
ghcr.io/sage-bionetworks/openchallenges-vault                  edge      6ea1b25e50d0   5 days ago     230MB
ghcr.io/sage-bionetworks/openchallenges-service-registry       edge      a979f646bb27   5 days ago     321MB
ghcr.io/sage-bionetworks/openchallenges-api-gateway            edge      7dcd6abb2cfd   5 days ago     322MB
ghcr.io/sage-bionetworks/openchallenges-elasticsearch          edge      0f2fdce1658d   5 days ago     622MB
ghcr.io/sage-bionetworks/openchallenges-api-docs               edge      655ff12dce11   5 days ago     33.6MB
ghcr.io/sage-bionetworks/openchallenges-mariadb                edge      251e30958f70   5 days ago     384MB
ghcr.io/sage-bionetworks/openchallenges-zipkin                 edge      5b843187f4dc   5 months ago   157MB
ghcr.io/sage-bionetworks/openchallenges-thumbor                edge      ee2435489e82   6 months ago   606MB
tschaffter commented 11 months ago

Deployment 2023-11-06

Update stack

Pull current commit on main

git pull

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
4addaa2ad44084f6b69ee6628d2f0efeca621005

Docker images:

ubuntu@openchallenges-preview-instance:~/sage-monorepo$ docker images
REPOSITORY                                                     TAG       IMAGE ID       CREATED          SIZE
ghcr.io/sage-bionetworks/openchallenges-challenge-service      edge      ea8a7fed66be   37 minutes ago   357MB
ghcr.io/sage-bionetworks/openchallenges-app                    edge      27d981f5c244   2 days ago       197MB
ghcr.io/sage-bionetworks/openchallenges-organization-service   edge      151ba99b23bf   2 days ago       355MB
ghcr.io/sage-bionetworks/openchallenges-image-service          edge      19f7a3634579   3 days ago       322MB
ghcr.io/sage-bionetworks/openchallenges-config-server          edge      a3f2a4237d9d   6 days ago       307MB
ghcr.io/sage-bionetworks/openchallenges-apex                   edge      e9113a081208   6 days ago       42.7MB
ghcr.io/sage-bionetworks/openchallenges-vault                  edge      6ea1b25e50d0   6 days ago       230MB
ghcr.io/sage-bionetworks/openchallenges-service-registry       edge      a979f646bb27   6 days ago       321MB
ghcr.io/sage-bionetworks/openchallenges-api-gateway            edge      7dcd6abb2cfd   6 days ago       322MB
ghcr.io/sage-bionetworks/openchallenges-elasticsearch          edge      0f2fdce1658d   6 days ago       622MB
ghcr.io/sage-bionetworks/openchallenges-api-docs               edge      655ff12dce11   6 days ago       33.6MB
ghcr.io/sage-bionetworks/openchallenges-mariadb                edge      251e30958f70   6 days ago       384MB
ghcr.io/sage-bionetworks/openchallenges-zipkin                 edge      5b843187f4dc   5 months ago     157MB
ghcr.io/sage-bionetworks/openchallenges-thumbor                edge      ee2435489e82   6 months ago     606MB