Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CaosDB Python Integration Tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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 Python Integration Tests
Commits
5892b4fa
Commit
5892b4fa
authored
5 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
ENH: use cached docker image building
parent
7314084d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+10
-13
10 additions, 13 deletions
.gitlab-ci.yml
with
10 additions
and
13 deletions
.gitlab-ci.yml
+
10
−
13
View file @
5892b4fa
...
...
@@ -20,12 +20,6 @@
variables
:
CI_REGISTRY_IMAGE
:
$CI_REGISTRY/caosdb-pyint-testenv
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
DOCKER_DRIVER
:
overlay2
services
:
-
docker:19.03.0-dind
stages
:
-
setup
...
...
@@ -79,6 +73,9 @@ stages:
# These volumes are inteded to be used for testing server-side scripting and
# file-system features.
#
services
:
-
docker:19.03.0-dind
test
:
tags
:
[
docker
]
stage
:
test
...
...
@@ -88,11 +85,11 @@ test:
CAOSDB_TAG=dev-latest;
fi
-
echo $CAOSDB_TAG
-
KNOWN_TAGS=$(curl -u
testuser
:$CI_REGISTRY_PASSWORD -X GET https://$CI_REGISTRY/v2/caosdb/tags/list)
-
KNOWN_TAGS=$(curl -u
indiscale
:$CI_REGISTRY_PASSWORD -X GET https://$CI_REGISTRY/v2/caosdb/tags/list)
-
echo $KNOWN_TAGS
# test if the caosdb registry knows our current tag
-
echo $KNOWN_TAGS | grep "$CAOSDB_TAG"
-
docker login -u
testuser
-p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u
indiscale
-p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker pull $CI_REGISTRY_IMAGE:latest
-
cd .docker
# here the server and the mysql backend docker are being started
...
...
@@ -115,14 +112,14 @@ test:
expire_in
:
1 week
build-testenv
:
tags
:
[
notls
]
image
:
docker:1
8
.0
9
tags
:
[
cached-dind
]
image
:
docker:1
9
.0
3
stage
:
setup
only
:
-
schedules
-
schedules
script
:
-
df -h
-
docker login -u
testuser
-p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u
indiscale
-p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# use here general latest or specific branch latest...
-
docker build
--file .docker/Dockerfile
...
...
@@ -141,7 +138,7 @@ cert:
-
cd .docker
-
CAOSHOSTNAME=caosdb-server ./cert.sh
style
:
tags
:
[
notls
]
tags
:
[
docker
]
stage
:
style
image
:
$CI_REGISTRY_IMAGE:latest
script
:
...
...
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