Skip to content
Snippets Groups Projects
Verified Commit 3ba95cbe authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: pipeline

parent 9d217692
No related branches found
No related tags found
No related merge requests found
Pipeline #10545 failed
FROM debian:buster-backports
ARG DOCKER_BASE_IMAGE
FROM $DOCKER_BASE_IMAGE
# build and install caosdb-cpplib
WORKDIR /libcaosdb/
RUN mkdir build
WORKDIR /libcaosdb/build
RUN conan create .. -s "compiler.libcxx=libstdc++11"
RUN apt-get update
RUN apt-get install -y make
RUN apt-get install -y octave-common/buster-backports liboctave7/buster-backports octave/buster-backports
RUN apt-get install -y liboctave-dev/buster-backports
RUN apt-get install -y python3-pip
RUN apt-get install -y unzip
RUN apt-get install -y wget
......
......@@ -20,7 +20,11 @@
#
variables:
# this is the image where cpplib repo is present (artifact from pipeline in
# caosdb-cpplib)
CPPLIB_REGISTRY_IMAGE: $CI_REGISTRY/caosdb/src/caosdb-cpplib/testenv
OCTAVE_REGISTRY_IMAGE: $CI_REGISTRY_IMAGE/testenv:$CI_COMMIT_REF_NAME
CPPLIB_BRANCH: f-extern-c
image: $OCTAVE_REGISTRY_IMAGE
......@@ -38,9 +42,11 @@ build-testenv:
stage: setup
image: docker:20.10
script:
- DOCKER_BASE_IMAGE="${CPPLIB_REGISTRY_IMAGE}:${CPPLIB_BRANCH}"
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker pull "$OCTAVE_REGISTRY_IMAGE" || true
- docker build
--build-arg DOCKER_BASE_IMAGE=$DOCKER_BASE_IMAGE
--file .docker/Dockerfile
--pull
--cache-from "$OCTAVE_REGISTRY_IMAGE"
......
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