diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..8afcf5489c666ba5fff0c64288595bde9d96c479 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +image: hpvm/gitlab-ci + +build: + stage: build + tags: + - hpvm + script: + - source activate hpvm + - cd hpvm + - ./install.sh -j32 -t "X86" + only: + - approx_hpvm_devops diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..a78b777f6ab29c5f1ef95aac695d6990cd63aa04 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +ARG IMAGE_NAME=nvidia/cuda +FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 + +# Install dependencies: cmake, python 3.6, wget +RUN apt-get update && apt-get install -y --no-install-recommends cmake python3 curl git + +# Install conda +RUN curl https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh -o anaconda.sh && \ + bash anaconda.sh -b && rm anaconda.sh + +# Set PATH to include conda +ENV PATH="/root/anaconda3/bin:${PATH}" + +# Send conda env spec into container +COPY . /root/hpvm/ + +# Create conda env named hpvm based on spec +RUN conda env create -n hpvm -f /root/hpvm/hpvm/env.yaml