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
edbe081b
Commit
edbe081b
authored
1 year ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
MNT: updates to dev and runtime image defs
parent
2f516ea1
No related branches found
No related tags found
1 merge request
!6
Migrate to `pyproject.toml`, add `Dockerfile` to generate runtime image
Pipeline
#21834
passed
1 year ago
Stage: docker
Stage: test
Stage: fsl-ci-build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.docker/bip-dev/create_dev_env.sh
+9
-12
9 additions, 12 deletions
.docker/bip-dev/create_dev_env.sh
.docker/bip-image/build_image.sh
+19
-4
19 additions, 4 deletions
.docker/bip-image/build_image.sh
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
with
30 additions
and
18 deletions
.docker/bip-dev/create_dev_env.sh
+
9
−
12
View file @
edbe081b
...
...
@@ -9,30 +9,27 @@ channels=(-c https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/development/
conda create
-y
${
channels
[@]
}
\
-p
./
${
envdir
}
\
"python=
${
PYTHON_VERSION
}
"
\
c-compiler
\
cxx-compiler
\
pytest
\
coverage
\
pytest-cov
\
dmri-amico
\
file-tree
\
file-tree-fsl
\
fsl-gradunwarp
\
fsl-avwutils
\
fsl-cluster
\
fsl-pyfix
\
f
ile-tree file-tree-fsl
\
f
sl-pipe
\
fsl_sub
\
fsl_sub_plugin_slurm
\
fsl_sub_plugin_sge
\
jinja2
jinja2
\
pytest
\
pytest-cov
echo
"channels:"
>
${
envdir
}
/.condarc
echo
" https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/development/"
>>
${
envdir
}
/.condarc
echo
" https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/public/"
>>
${
envdir
}
/.condarc
echo
" conda-forge"
>>
${
envdir
}
/.condarc
source
activate
${
envdir
}
pip
install
dmri-amico
pip
install
git+https://git.fmrib.ox.ac.uk/fsl/pipe-tree.git
conda remove
-p
${
envdir
}
c-compiler cxx-compiler
conda clean
-y
-all
pip cache purge
This diff is collapsed.
Click to expand it.
.docker/bip-image/build_image.sh
+
19
−
4
View file @
edbe081b
...
...
@@ -4,12 +4,23 @@ set -e
SHELL_PROFILE
=
/root/.bashrc
export
TAR_OPTIONS
=
--no-same-owner
export
WGET_OPTIONS
=
--no-check-certificate
export
TAR_OPTIONS
=
"
--no-same-owner
"
export
WGET_OPTIONS
=
"
--no-check-certificate
-q"
# OS / build dependencies
yum
install
-y
epel-release
yum
install
-y
openssh-clients git nano wget curl unzip python3 parallel
yum
install
-y
\
curl
\
freetype
\
git
\
mesa-libGL
\
nano
\
openssh-clients
\
parallel
\
python3
\
tcsh
\
unzip
\
wget
# FSL
FSL_URL
=
https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/releases/fslinstaller.py
...
...
@@ -20,7 +31,11 @@ echo -e '\nsource ${FSLDIR}/etc/fslconf/fsl.sh\n' >> ${SHELL_PROFILE}
rm
fslinstaller.py
# BIP
/usr/local/fsl/bin/mamba
install
-y
-n
base fsl-bip
/usr/local/fsl/bin/mamba
install
-y
-n
base
--override-channels
\
-c
https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/development/
\
-c
https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/public/
\
-c
conda-forge
\
fsl-bip
# ROBEX
ROBEX_URL
=
https://www.nitrc.org/frs/download.php/5994/ROBEXv12.linux64.tar.gz//
\?
i_agree
\=
1
\&
download_now
\=
1
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
2
−
2
View file @
edbe081b
...
...
@@ -26,8 +26,8 @@ build-dev-docker-image:
-
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
-
DOCKERFILE=.docker/
bip-dev/
Dockerfile
-
docker build -t "${IMAGE}:${TAG}" -t "${IMAGE}:latest" -f ${DOCKERFILE} ./.docker
/bip-dev
-
docker push "${IMAGE}:${TAG}"
-
docker push "${IMAGE}:latest"
...
...
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