Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerise our ModelScan application #1621

Merged
merged 14 commits into from
Nov 19, 2024

Conversation

PE39806
Copy link
Contributor

@PE39806 PE39806 commented Nov 13, 2024

Write a Dockerfile for the REST Model Scan application.

The Dockerfile should expose the relevant ports.

The Image should be added to the dev docker compose build.

@PE39806 PE39806 marked this pull request as ready for review November 13, 2024 14:26
@@ -0,0 +1,19 @@
FROM python:3.12-slim
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you consider using a bullseye image rather than a slim one as we do here? https://github.com/gchq/Bailo/blob/main/backend/Dockerfile#L2

Copy link
Contributor Author

@PE39806 PE39806 Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had not. It looks like 3.12-slim resolves to 3.12-slim-bookend which is one major Debian release ahead of bullseye. I'm happy to downgrade to 3.12-slim-bullseye as there are no meaningful functionality changes.
Is there a reason we don't use the slim docker image for the docs build?

Copy link
Member

@JR40159 JR40159 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth fixing the example return objects in the Swagger docs

@PE39806 PE39806 merged commit 816381d into main Nov 19, 2024
17 checks passed
@PE39806 PE39806 deleted the feature/BAI-1502-dockerise-our-model-scan-application branch November 19, 2024 11:23
@PE39806 PE39806 added enhancement New feature or request docker Pull requests that update Docker code python Pull requests that update Python code labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Pull requests that update Docker code enhancement New feature or request python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants