Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CaosDB Octave library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Octave library
Commits
3ba95cbe
Verified
Commit
3ba95cbe
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: pipeline
parent
9d217692
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#10545
failed
3 years ago
Stage: setup
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.docker/Dockerfile
+8
-4
8 additions, 4 deletions
.docker/Dockerfile
.gitlab-ci.yml
+6
-0
6 additions, 0 deletions
.gitlab-ci.yml
with
14 additions
and
4 deletions
.docker/Dockerfile
+
8
−
4
View file @
3ba95cbe
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
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
6
−
0
View file @
3ba95cbe
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment