Select Git revision
-
Timm Fitschen authoredTimm Fitschen authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Dockerfile 655 B
ARG CPPLIB_REGISTRY_IMAGE
ARG CPPLIB_VERSION
FROM $CPPLIB_REGISTRY_IMAGE
COPY .docker/wait-for-it.sh /wait-for-it.sh
# build and install caosdb-cpplib
WORKDIR /libcaosdb/
RUN mkdir build
WORKDIR /libcaosdb/build
RUN cmake ..
RUN cmake --build .
RUN cmake --install . --prefix /usr/local/
COPY . /caosdb-cppinttest
WORKDIR /caosdb-cppinttest
RUN rm -rf .git
RUN apt-get install -y openjdk-11-jdk-headless
# build and run tests
CMD ls -la && \
mkdir build && \
cd build && \
/wait-for-it.sh caosdb-server:10443 -t 500 -- \
cmake -D CMAKE_PREFIX_PATH=/usr/local/lib/libcaosdb-${CPPLIB_VERSION} .. && \
cmake --build . && \
ctest