Project

General

Profile

Actions

Support #18074

closed

Set up automated update & deploy for cwlviewer

Added by Peter Amstutz over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Due date:
Story points:
-

Description

  1. New cwlviewer docker container will be published to docker hub
  2. Trigger via "push" (the publisher process logs into view.commonwl.org and triggers update) or "pull" (cron job checks for new container image)
  3. Pull new container image from docker hub
  4. Restart service with new container image, but using existing volumes that contain the database

=======================================================================================

The cwlviewer service runs with docker compose, with the docker images built locally from source. There are three containers involved.

The plan:

  • add a -dev instance (cwlviewer-dev.arvados.org), also running with composer, images built from source, that just gets updated whenever the git tree is (main). Ideally this happens somehow via Jenkins (so that non-sysadmins can see it happen and there is a record of the updated deploy).
  • for the production instance, add a Jenkins job that can be used to update the running copy (i.e. specifying a git commit hash, for a release published on github, ideally). This job can be triggered manually as needed.

Subtasks 1 (0 open1 closed)

Task #18085: ReviewResolvedPeter Amstutz09/14/2021Actions
Actions #1

Updated by Peter Amstutz over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Peter Amstutz over 2 years ago

  • Description updated (diff)
Actions #3

Updated by Peter Amstutz over 2 years ago

  • Target version changed from 2021-09-01 sprint to 2021-09-15 sprint
Actions #4

Updated by Peter Amstutz over 2 years ago

  • Assigned To deleted (Peter Amstutz)
Actions #5

Updated by Peter Amstutz over 2 years ago

  • Assigned To set to Ward Vandewege
Actions #6

Updated by Ward Vandewege over 2 years ago

  • Description updated (diff)
Actions #7

Updated by Ward Vandewege over 2 years ago

  • Status changed from New to In Progress
Actions #8

Updated by Ward Vandewege over 2 years ago

This is now done.

The staging site is at https://cwlviewer-dev.arvados.org, and is autodeployed from git (on a 1 minute poll timer) via https://ci.arvados.org/view/CWL/job/Deploy%20staging%20cwlviewer%20(cwlviewer-dev.arvados.org)/

The production site is currently at commit:6347e811536f7377a72eb2d83eed62955aa78523 (unchanged from before) and can now be deployed via Jenkins with https://ci.arvados.org/view/CWL/job/Deploy%20production%20cwlviewer%20(view.commonwl.org)/

There is not much to review here; the relevant commits are in the salt repo, tagged with #18074. You could do

git diff 132738c08702164fa53af9390357a3a3cacc9fb2..d6025e9926f65be52d2f5e855d73372d9da7bcec

to review the difference (ignore the ami change from an unrelated commit).

Actions #9

Updated by Ward Vandewege over 2 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF