diff --git a/.CI/build-dep/Dockerfile b/.CI/build-dep/Dockerfile index 5f329b7..b04c872 100644 --- a/.CI/build-dep/Dockerfile +++ b/.CI/build-dep/Dockerfile @@ -5,3 +5,16 @@ FROM docker.openmodelica.org/build-deps:ubuntu-22.04 # and python3-pip because the line below needs it and the base may not carry it. RUN apt-get update && apt-get install -y libxml2 libxslt1.1 libxml2-dev libxslt1-dev python3-pip RUN pip3 install matplotlib FMPy psycopg2-binary + +# The omc for --ompython_omhome (the tested one is built in the workspace). +ARG OMC_VERSION= +RUN export DEBIAN_FRONTEND=noninteractive \ + && . /etc/os-release \ + && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/openmodelica-keyring.gpg]" \ + "https://build.openmodelica.org/apt ${VERSION_CODENAME} nightly" \ + > /etc/apt/sources.list.d/openmodelica.list \ + && apt-get update \ + && apt-get install -qy omc${OMC_VERSION:+=${OMC_VERSION}} \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + && omc --version diff --git a/.CI/testing/Dockerfile b/.CI/testing/Dockerfile index 35bc5a7..33b9401 100644 --- a/.CI/testing/Dockerfile +++ b/.CI/testing/Dockerfile @@ -40,14 +40,12 @@ RUN python3 -m venv /opt/libtest-venv \ && rm /tmp/requirements.txt ENV PATH=/opt/libtest-venv/bin:$PATH -# The omc for --ompython_omhome (the tested one is built in the workspace). The -# base image points apt at the nightly component; use stable instead. -# OMC_VERSION pins a version, empty takes the newest stable one. +# The omc for --ompython_omhome (the tested one is built in the workspace). ARG OMC_VERSION= RUN export DEBIAN_FRONTEND=noninteractive \ && . /etc/os-release \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/openmodelica-keyring.gpg]" \ - "https://build.openmodelica.org/apt ${VERSION_CODENAME} stable" \ + "https://build.openmodelica.org/apt ${VERSION_CODENAME} nightly" \ > /etc/apt/sources.list.d/openmodelica.list \ && apt-get update \ && apt-get install -qy omc${OMC_VERSION:+=${OMC_VERSION}} \ diff --git a/library.html.tpl b/library.html.tpl index 6d17218..9813ba9 100644 --- a/library.html.tpl +++ b/library.html.tpl @@ -55,5 +55,15 @@ Config:
#config#