Skip to content

Create MAP build script #179

@AnilMistry

Description

@AnilMistry

Create a MAP build script to perform the following actions to complete a MAP docker build

  1. checkout build branch
  2. check branch is up to date - no oustanding commits
  3. check branch name - must be called "release_v"
  4. Perform pip-audit - ensures no vulnerabilities in the python packages
  5. perform unit tests
  6. check documentation version
  7. run monai-deploy package using appropriate base image (see below)
  • base image must be alpine or smaller
  • appropriately name intermediate step as as builder step.

Docker bloat minimisation techniques:

  1. Choose '_alpine' versions of base docker image. do not use 'XXX:latest'
  2. Ensure .docker_ignore file includes anything un needed in the script eg test images, README's, Documents
  3. Ensure the requirements.txt file is just for building the app.
  4. Perform a mutlistage build by installing requirements first as theyre not frequently going to change for minor updates.
  5. remove caches items for pip at the end of the dockerfile line
  6. use Slim Toolkit to further minimise the docker containers: https://github.com/slimtoolkit/slim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions