GSTT-CSC / GSTT-CSC/MLOps

Create MAP build script

Open
#179 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
23
Forks
6
Avg merge
3h 56m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.