Skip to the content.

COVID Policy Modelling Model Connector How-To: Deploying your connector

In this section, you will complete deployment of your connector. After completion, your connector will be deployed to a COVID-UI, making it available for policy makers and others to run simulations using it.

Contents

Assumptions

The main body of these instructions assume the following:

The instructions also contain additional notes to support any of the following:

Deploying your connector

  1. If your connector uses a common schema, refer to the notes below.

  2. Create a fork of the web-ui repository (if you have not already done so).

  3. Clone your forked repository to your machine (again, if you have not already done so).

  4. In your local repository, edit the file models.yml. Copy the contents of your connector’s meta.yml, appending them to the end of the file.

  5. Edit the file .override-staging/models.yml. Add lines specifying the latest version of your connector, e.g.

    <MODEL>:
      imageURL: ghcr.io/<OWNER>/<MODEL>-connector/<MODEL>-connector:<VERSION>
    
  6. Run the script script/generate-docs.

  7. Run git diff, and you should expect to see changes to public/openapi.json to reflect your new model.

  8. Run git commit and git push to push your changes back to your GitHub repository.

  9. Create a pull request against the web-ui repository with your changes.

  10. Maintainers of the web-ui repository should respond your PR, and may request further information or changes.

Next steps

Once the PR has been accepted, maintainers of the public covid-policy-modelling COVID-UI environment can deploy an updated version of the web-ui in order to make your connector available to users.

Additional steps for alternative approaches

The connector will use a custom schema

Before raising your PR, you must first publish your schema by submitting a PR with your changes to the schemas repository. After that has been completed, you can then prepare your web-ui changes. In addition to the changes listed above, you will also need to: