generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jacob Woffenden <[email protected]>
- Loading branch information
Jacob Woffenden
authored
Sep 25, 2024
1 parent
295880f
commit 1760405
Showing
5 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM public.ecr.aws/ubuntu/ubuntu@sha256:288b44a1b2dfe3788255c3abd41e346bece153b9e066325f461f605425afaf82 | ||
FROM public.ecr.aws/ubuntu/ubuntu@sha256:5b2fc4131b3c134a019c3ea815811de70e6ad9ee1626f59bf302558a95b436e5 | ||
|
||
LABEL org.opencontainers.image.vendor="Ministry of Justice" \ | ||
org.opencontainers.image.authors="Analytical Platform ([email protected])" \ | ||
|
@@ -7,19 +7,20 @@ LABEL org.opencontainers.image.vendor="Ministry of Justice" \ | |
org.opencontainers.image.url="https://github.com/ministryofjustice/analytical-platform-mlflow" | ||
|
||
ENV CONTAINER_USER="analyticalplatform" \ | ||
CONTAINER_UID="1001" \ | ||
CONTAINER_UID="1000" \ | ||
CONTAINER_GROUP="analyticalplatform" \ | ||
CONTAINER_GID="1001" \ | ||
CONTAINER_GID="1000" \ | ||
DEBIAN_FRONTEND="noninteractive" \ | ||
MLFLOW_ROOT="/mlflow" \ | ||
MLFLOW_VERSION="2.15.1" \ | ||
BOTO3_VERSION="1.35.0" \ | ||
PROMETHEUS_FLASK_EXPORTER_VERSION="0.23.1" \ | ||
MLFLOW_VERSION="2.16.2" \ | ||
BOTO3_VERSION="1.35.25" \ | ||
PSYCOPG2_BINARY_VERSION="2.9.9" | ||
|
||
SHELL ["/bin/bash", "-e", "-u", "-o", "pipefail", "-c"] | ||
|
||
RUN <<EOF | ||
userdel --remove --force ubuntu | ||
|
||
groupadd \ | ||
--gid ${CONTAINER_GID} \ | ||
${CONTAINER_GROUP} | ||
|
@@ -35,9 +36,9 @@ apt-get update --yes | |
|
||
apt-get install --no-install-recommends --yes \ | ||
"ca-certificates=20240203" \ | ||
"curl=8.5.0-2ubuntu10.3" \ | ||
"curl=8.5.0-2ubuntu10.4" \ | ||
"libpq-dev=16.4-0ubuntu0.24.04.2" \ | ||
"python3.12=3.12.3-1ubuntu0.1" \ | ||
"python3.12=3.12.3-1ubuntu0.2" \ | ||
"python3-pip=24.0+dfsg-1ubuntu1" | ||
|
||
apt-get clean --yes | ||
|
@@ -47,7 +48,6 @@ rm --force --recursive /var/lib/apt/lists/* | |
pip install --break-system-packages --no-cache-dir \ | ||
"mlflow==${MLFLOW_VERSION}" \ | ||
"boto3==${BOTO3_VERSION}" \ | ||
"prometheus-flask-exporter==${PROMETHEUS_FLASK_EXPORTER_VERSION}" \ | ||
"psycopg2-binary==${PSYCOPG2_BINARY_VERSION}" | ||
|
||
install --directory --owner ${CONTAINER_USER} --group ${CONTAINER_GROUP} --mode 0755 ${MLFLOW_ROOT} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters