Skip to content
Snippets Groups Projects
Commit 668ff2d9 authored by Corné Lukken's avatar Corné Lukken
Browse files

Working spack compile

parent 784d81b6
No related branches found
No related tags found
1 merge request!1Draft: Integrate CI/CD into COBALT spack builds
Pipeline #114314 passed
Pipeline: cobalt-installation

#114315

    ...@@ -22,17 +22,20 @@ RUN apt update && \ ...@@ -22,17 +22,20 @@ RUN apt update && \
    automake \ automake \
    file file
    ENV SPACK_VERSION=0.22.1 ENV SPACK_VERSION=0.23.0
    ENV SPACK_DIR=/opt/spack/${SPACK_VERSION} 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 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/ RUN ln -s ${SPACK_DIR}/bin/spack /usr/local/bin/
    RUN . ${SPACK_DIR}/share/spack/setup-env.sh && spack compiler find # && spack mirror add v${SPACK_VERSION} https://binaries.spack.io/v${SPACK_VERSION}
    ENV SPACK_REPO_DIR=/opt/spack/repos ENV SPACK_REPO_DIR=/opt/spack/repos
    RUN mkdir -p ${SPACK_REPO_DIR} RUN mkdir -p ${SPACK_REPO_DIR}
    RUN git clone https://gitlab.com/ska-telescope/ska-sdp-spack.git ${SPACK_REPO_DIR}/ska-sdp-spack && \ RUN git clone https://gitlab.com/ska-telescope/ska-sdp-spack.git ${SPACK_REPO_DIR}/ska-sdp-spack && \
    cd ${SPACK_REPO_DIR}/ska-sdp-spack && \ cd ${SPACK_REPO_DIR}/ska-sdp-spack && \
    git fetch --all && \ git fetch --all && \
    git checkout ded1a99bfb0dcc37a5d8f9404a10c509296e8e89 git checkout ded1a99bfb0dcc37a5d8f9404a10c509296e8e89 && \
    . ${SPACK_DIR}/share/spack/setup-env.sh && \
    spack repo add ${SPACK_REPO_DIR}/ska-sdp-spack
    #RUN mkdir -p $HOME/.spack #RUN mkdir -p $HOME/.spack
    #RUN echo "repos:\n- ${SPACK_REPO_DIR}/ska-sdp-spack" > $HOME/.spack/repos.yaml #RUN echo "repos:\n- ${SPACK_REPO_DIR}/ska-sdp-spack" > $HOME/.spack/repos.yaml
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment