Skip to content
Snippets Groups Projects
Commit 4190f5c7 authored by Bram Veenboer's avatar Bram Veenboer
Browse files

Update Dockerfile to use Ansible

parent 49f20558
No related branches found
No related tags found
2 merge requests!5Combine new spack files + CI/CD branches,!4Update all the scripts/configuration to latest 'best known'
...@@ -3,35 +3,11 @@ ENV DEBIAN_FRONTEND=noninteractive ...@@ -3,35 +3,11 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \ RUN apt update && \
apt install -y \ apt install -y \
git \ ansible
ca-certificates \
python3 \
g++ \
gfortran \
zip \
xz-utils \
pkgconf \
bzip2 \
make \
cmake-curses-gui \
vim \
automake \
file \
wget \
kmod \
environment-modules
ENV SPACK_VERSION=0.22.1
ENV SPACK_DIR=/opt/spack/${SPACK_VERSION}
RUN git clone --depth 1 --branch v${SPACK_VERSION} https://github.com/spack/spack.git ${SPACK_DIR}
RUN ln -s ${SPACK_DIR}/bin/spack /usr/local/bin/
ENV SPACK_REPO_DIR=/opt/spack/repos
RUN mkdir -p ${SPACK_REPO_DIR}
RUN git clone --depth 1 https://gitlab.com/ska-telescope/ska-sdp-spack.git ${SPACK_REPO_DIR}/ska-sdp-spack
RUN mkdir -p $HOME/.spack
RUN echo "repos:\n- ${SPACK_REPO_DIR}/ska-sdp-spack" > $HOME/.spack/repos.yaml
COPY ansible.yaml /
COPY environment.yaml /
RUN ansible-playbook ansible.yaml
RUN wget -O NVIDIA-driver.run https://us.download.nvidia.com/tesla/570.124.06/NVIDIA-Linux-x86_64-570.124.06.run RUN wget -O NVIDIA-driver.run https://us.download.nvidia.com/tesla/570.124.06/NVIDIA-Linux-x86_64-570.124.06.run
RUN chmod +x NVIDIA-driver.run RUN chmod +x NVIDIA-driver.run
RUN ./NVIDIA-driver.run -s --no-kernel-modules RUN ./NVIDIA-driver.run -s --no-kernel-modules
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment