Skip to content

Commit

Permalink
🔧 Configuration updates (#62)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Woffenden <jacob.woffenden@justice.gov.uk>
  • Loading branch information
jacobwoffenden authored Dec 19, 2024
1 parent 0c34f0a commit 2b7cb8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ ENV CONTAINER_USER="analyticalplatform" \
CONTAINER_UID="1000" \
CONTAINER_GROUP="analyticalplatform" \
CONTAINER_GID="1000" \
ANALYTICAL_PLATFORM_DIRECTORY="/opt/analytical-platform" \
ANALYTICAL_PLATFORM_DIRECTORY="/opt/analyticalplatform" \
DEBIAN_FRONTEND="noninteractive" \
PIP_BREAK_SYSTEM_PACKAGES="1" \
AWS_CLI_VERSION="2.22.12" \
CUDA_VERSION="12.6.1" \
AWS_CLI_VERSION="2.22.20" \
CUDA_VERSION="12.6.3" \
NVIDIA_DISABLE_REQUIRE="true" \
NVIDIA_CUDA_CUDART_VERSION="12.6.77-1" \
NVIDIA_CUDA_COMPAT_VERSION="560.35.05-0ubuntu1" \
NVIDIA_VISIBLE_DEVICES="all" \
NVIDIA_DRIVER_CAPABILITIES="compute,utility" \
LD_LIBRARY_PATH="/usr/local/nvidia/lib:/usr/local/nvidia/lib64" \
PATH="/usr/local/nvidia/bin:/usr/local/cuda/bin:${HOME}/.local/bin:${PATH}"
PATH="/usr/local/nvidia/bin:/usr/local/cuda/bin:/home/analyticalplatform/.local/bin:${PATH}"

SHELL ["/bin/bash", "-e", "-u", "-o", "pipefail", "-c"]

Expand All @@ -50,7 +50,7 @@ apt-get update --yes
apt-get install --yes \
"apt-transport-https=2.7.14build2" \
"ca-certificates=20240203" \
"curl=8.5.0-2ubuntu10.5" \
"curl=8.5.0-2ubuntu10.6" \
"git=1:2.43.0-1ubuntu7.1" \
"jq=1.7.1-3build1" \
"python3.12=3.12.3-1ubuntu0.3" \
Expand Down Expand Up @@ -112,5 +112,5 @@ apt-get clean --yes
rm --force --recursive /var/lib/apt/lists/* 3bf863cc.pub nvidia.gpg
EOF

USER ${CONTAINER_USER}
USER ${CONTAINER_UID}
WORKDIR ${ANALYTICAL_PLATFORM_DIRECTORY}
14 changes: 7 additions & 7 deletions test/container-structure-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
schemaVersion: 2.0.0

containerRunOptions:
user: "analyticalplatform"
user: "1000"

commandTests:
- name: "ubuntu"
Expand Down Expand Up @@ -42,11 +42,11 @@ commandTests:
- name: "aws"
command: "aws"
args: ["--version"]
expectedOutput: ["aws-cli/2.22.12"]
expectedOutput: ["aws-cli/2.22.20"]

fileExistenceTests:
- name: "/opt/analytical-platform"
path: "/opt/analytical-platform"
- name: "/opt/analyticalplatform"
path: "/opt/analyticalplatform"
shouldExist: true
uid: 1000
gid: 1000
Expand All @@ -56,8 +56,8 @@ fileExistenceTests:
shouldExist: true

metadataTest:
user: "analyticalplatform"
workdir: "/opt/analytical-platform"
user: "1000"
workdir: "/opt/analyticalplatform"

labels:
- key: "org.opencontainers.image.vendor"
Expand Down Expand Up @@ -89,7 +89,7 @@ metadataTest:
value: "1000"

- key: "ANALYTICAL_PLATFORM_DIRECTORY"
value: "/opt/analytical-platform"
value: "/opt/analyticalplatform"

- key: "DEBIAN_FRONTEND"
value: "noninteractive"
Expand Down

0 comments on commit 2b7cb8f

Please sign in to comment.