Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BIP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
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
FSL
BIP
Commits
0559b7a6
Commit
0559b7a6
authored
2 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
CI: Pre-build docker image for make testing faster
parent
2f3f7a5f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
ENH: Config file templating
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+24
-8
24 additions, 8 deletions
.gitlab-ci.yml
docker/Dockerfile
+8
-0
8 additions, 0 deletions
docker/Dockerfile
docker/create_dev_env.sh
+2
-0
2 additions, 0 deletions
docker/create_dev_env.sh
with
34 additions
and
8 deletions
.gitlab-ci.yml
+
24
−
8
View file @
0559b7a6
stages
:
-
docker
-
test
.test
:
&test_template
# Build docker image used for unit tests
build-dev-docker-image
:
stage
:
docker
image
:
docker:latest
tags
:
-
docker_build
services
:
-
docker:dind
when
:
manual
allow_failure
:
true
script
:
-
mkdir -p $HOME/.docker/
-
echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json
-
TAG="$(date +%Y%m%d).${CI_COMMIT_SHORT_SHA}"
-
IMAGE="pauldmccarthy/bip-dev"
-
DOCKERFILE=docker/Dockerfile
-
docker build -t "${IMAGE}:${TAG}" -t "${IMAGE}:latest" -f ${DOCKERFILE} ./docker
-
docker push "${IMAGE}:${TAG}"
-
docker push "${IMAGE}:latest"
test
:
stage
:
test
image
:
continuumio/miniconda3
image
:
pauldmccarthy/bip-dev
tags
:
-
docker
except
:
...
...
@@ -12,9 +34,3 @@ stages:
-
merge_requests
script
:
-
./.ci/unit_tests.sh
test:3.11
:
variables
:
PYTHON_VERSION
:
"
3.11"
<<
:
*test_template
This diff is collapsed.
Click to expand it.
docker/Dockerfile
0 → 100644
+
8
−
0
View file @
0559b7a6
FROM
continuumio/miniconda3
MAINTAINER
Paul McCarthy <pauldmccarthy@gmail.com>
ENV
PYTHON_VERSION "3.11"
COPY
/create_dev_env.sh /create_dev_env.sh
RUN
/bin/bash /create_dev_env.sh /dev.env
This diff is collapsed.
Click to expand it.
.ci
/create_dev_env.sh
→
docker
/create_dev_env.sh
+
2
−
0
View file @
0559b7a6
...
...
@@ -23,3 +23,5 @@ source activate ${envdir}
pip
install
dmri-amico
pip
install
git+https://git.fmrib.ox.ac.uk/ndcn0236/pipe-tree.git
pip
install
git+https://git.fmrib.ox.ac.uk/fsl/gradunwarp.git
# CREATE DOCKER 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