-
Notifications
You must be signed in to change notification settings - Fork 40
Feature/SK-1519 | FEDn container uses distroless image #868
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
base: master
Are you sure you want to change the base?
Conversation
| # Stage 1: Builder | ||
| ARG BASE_IMG=python:3.12-slim | ||
| FROM $BASE_IMG AS builder | ||
| FROM python:3.11-slim AS builder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why downgrade python?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The distroless image seems to be 3.11
| wget -qO /build/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ | ||
| chmod +x /build/grpc_health_probe; \ | ||
| fi | ||
| RUN mkdir /python-dist \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is fedn installed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUN mkdir /python-dist
&& pip install --upgrade pip
&& pip install --prefix=/python-dist --no-cache-dir 'setuptools>=65' .
Wrede
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On your note, there are no shell scripts running in the image? In the CI tests scripts are run in ubuntu images provided by github.
The "hooks" container did assume a shell existed, but that can be fixed. However, it won't be possible to run clients in these containers as they execute a script as a subprocess using "bash" (like the training script). |
Description
Switch to a "distroless" base image.
Note that it will not be possible to run shell scripts in this image, so integration tests are not working.