From e92b396a37919e7a2dfdf02fbca47d42d5cb32f3 Mon Sep 17 00:00:00 2001 From: Sebastian <sebastian.karius@informatik.uni-halle.de> Date: Thu, 17 Oct 2024 11:33:14 +0200 Subject: [PATCH] add coder container for med --- docker-compose.yml | 6 +++++ docker/coder-med/Dockerfile | 54 +++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 docker/coder-med/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index 5e5f33d..b34b9e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,6 +29,12 @@ services: dockerfile: Dockerfile context: ./docker/coder-ubuntu_22-python + coder-med: + image: ${CI_REGISTRY}/studio-r215/containerize/coder-med:24 + build: + dockerfile: Dockerfile + context: ./docker/coder-med + libre-translate-cuda: image: ${CI_REGISTRY}/studio-r215/containerize/libre-translate:latest-cuda build: diff --git a/docker/coder-med/Dockerfile b/docker/coder-med/Dockerfile new file mode 100644 index 0000000..77b84c2 --- /dev/null +++ b/docker/coder-med/Dockerfile @@ -0,0 +1,54 @@ +FROM nvidia/cuda:12.6.2-devel-ubuntu24.04 +LABEL authors="sebastian" + +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get upgrade -y + +# install basic tools +RUN apt-get install -y git wget curl + +# install python, pip and venv +RUN apt-get install -y python3 python3-pip python3-venv + +# install pipx +ENV TZ=Europe/Berlin +RUN apt-get install -y pipx +RUN pipx ensurepath + +# install poetry +ENV PIPX_BIN_DIR="/usr/local/bin" +RUN pipx install poetry +RUN poetry completions bash >> ~/.bash_completion +RUN PIPX_BIN_DIR="~/.local/bin" + +# install conda +ENV PATH="${PATH}:/opt/conda/bin" +RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py312_24.4.0-0-Linux-x86_64.sh +RUN bash Miniconda3-py312_24.4.0-0-Linux-x86_64.sh -b -p /opt/conda +RUN rm Miniconda3-py312_24.4.0-0-Linux-x86_64.sh + +# prepare for coder usage +RUN apt-get install -y \ + htop \ + jq \ + locales \ + man \ + software-properties-common \ + sudo \ + systemd \ + systemd-sysv \ + unzip \ + rsync \ + vim \ + nano + +RUN useradd -ms /bin/bash coder +RUN usermod -aG sudo coder + +# clean up +RUN apt-get clean +RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +# switch to coder user +USER coder +WORKDIR /home/coder \ No newline at end of file -- GitLab