Skip to content
Snippets Groups Projects
Commit 702469a1 authored by Raghunandan Netrapalli Madhusudhan's avatar Raghunandan Netrapalli Madhusudhan
Browse files

build docker image for opTestrunner

parent 3026b12c
No related branches found
No related tags found
No related merge requests found
Pipeline #68322 canceled
......@@ -16,67 +16,8 @@ FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update && apt-get -qq dist-upgrade && apt-get install -qq -y --no-install-recommends \
antlr4 \
build-essential \
ca-certificates \
ccache \
cmake \
clang-format-15 \
clang-tidy-14 \
curl \
doxygen \
g++ \
gcc \
git \
google-mock \
googletest \
graphviz \
lcov \
libboost-filesystem-dev \
libgmock-dev \
libgtest-dev \
libprotobuf-dev \
libantlr4-runtime4.9 \
libantlr4-runtime-java \
libantlr4-runtime-dev \
openjdk-17-jre \
pkg-config \
protobuf-compiler \
python3 \
python3-distutils \
python3-pip \
python3-venv \
uuid-dev \
&& apt-get -qq clean
RUN apt-get install -qq -y --no-install-recommends \
texlive-base \
texlive-latex-extra
RUN apt-get install -qq -y --no-install-recommends \
dvipng
# Create a folder
RUN mkdir -p /opsimulation/conan
# set the folder as a conan home
ENV CONAN_HOME='/opsimulation/conan'
ENV PYTHON_EXECUTABLE=python3
# copy the required contents from the repo to build conan packages
COPY repo/utils/ci/scripts/15_prepare_thirdParty.sh repo/utils/ci/scripts/15_prepare_thirdParty.sh
COPY repo/utils/ci/conan repo/utils/ci/conan
# copy requirements.txt file to install python packages
COPY repo/requirements.txt repo/requirements.txt
COPY repo/doc/source/requirements.txt repo/doc/source/requirements.txt
COPY repo/sim/tests/endToEndTests/pyOpenPASS/requirements.txt repo/sim/tests/endToEndTests/pyOpenPASS/requirements.txt
# install python packages
RUN pip install -r repo/requirements.txt
# Create conan packages and make it available in /opsimulation/conan, allows not to build everytime
RUN repo/utils/ci/scripts/15_prepare_thirdParty.sh && \
rm -r repo deps && \
chmod -R 777 /opsimulation/conan
......@@ -22,8 +22,8 @@ pipeline {
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '2'))
}
environment {
IMAGE_NAME = "eclipseopenpass/opsim-ci"
IMAGE_TAG = "v1.2.1"
IMAGE_NAME = "eclipseopenpass/optr-ci"
IMAGE_TAG = "v0.0.1"
REPO_URL = "https://gitlab.eclipse.org/eclipse/openpass/opSimulation.git"
DOCKERFILE_PATH = "utils/Dockerfile"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment