Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tvb Pipeline
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ins-amu
Tvb Pipeline
Commits
71be3a5a
Commit
71be3a5a
authored
2 years ago
by
Marmaduke Woodman
Browse files
Options
Downloads
Patches
Plain Diff
gh actions build/push image
parent
2dc98246
No related branches found
No related tags found
No related merge requests found
Pipeline
#18700
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/image.yml
+41
-0
41 additions, 0 deletions
.github/workflows/image.yml
Dockerfile
+35
-0
35 additions, 0 deletions
Dockerfile
with
76 additions
and
0 deletions
.github/workflows/image.yml
0 → 100644
+
41
−
0
View file @
71be3a5a
name
:
Create and publish a Docker image
on
:
push
:
branches
:
[
'
dev'
]
env
:
REGISTRY
:
ghcr.io
IMAGE_NAME
:
${{ github.repository }}
jobs
:
build-and-push-image
:
runs-on
:
ubuntu-latest
permissions
:
contents
:
read
packages
:
write
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v3
-
name
:
Log in to the Container registry
uses
:
docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with
:
registry
:
${{ env.REGISTRY }}
username
:
${{ github.actor }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Extract metadata (tags, labels) for Docker
id
:
meta
uses
:
docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with
:
images
:
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
-
name
:
Build and push Docker image
uses
:
docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with
:
context
:
.
push
:
true
tags
:
${{ steps.meta.outputs.tags }}
labels
:
${{ steps.meta.outputs.labels }}
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
35
−
0
View file @
71be3a5a
FROM
ubuntu:20.04
LABEL
maintainer="marmaduke.woodman@univ-amu.fr"
ENV
DEBIAN_FRONTEND=noninteractive
WORKDIR
/usr/local
RUN
apt-get update
\
&&
apt-get
install
-y
libnss3-dev libx11-xcb1 libxcb-dri3-0 libxcomposite1
\
libxcursor1 libxdamage1 libxfixes3 libxi6 libxtst6 libatk1.0-0 libatk-bridge2.0-0
\
libgdk-pixbuf2.0-0 libgtk-3-0 libgtk-3-0 libpangocairo-1.0-0 libpango-1.0-0 libcairo2
\
libdrm2 libgbm1 libasound2 libatspi2.0-0 curl git build-essential tcsh perl nodejs
\
python2 wget datalad bc libglu1-mesa-dev unzip
RUN
wget
-q
https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/7.2.0/freesurfer-linux-ubuntu18_amd64-7.2.0.tar.gz
\
&&
tar
xzf freesurfer-linux-ubuntu18_amd64-7.2.0.tar.gz
\
&&
rm
freesurfer-linux-ubuntu18_amd64-7.2.0.tar.gz
RUN
wget https://fsl.fmrib.ox.ac.uk/fsldownloads/fslinstaller.py
\
&&
echo
""
| python2 fslinstaller.py
RUN
curl
-LO
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
\
&&
bash Miniconda3-latest-Linux-x86_64.sh
-b
-p
$PWD
/conda
\
&&
rm
Miniconda3-latest-Linux-x86_64.sh
\
&&
export
PATH
=
$PWD
/conda/bin:
$PATH
\
&&
conda
install
-y
jupyter numba scipy matplotlib
\
&&
conda
install
-y
-c
mrtrix3 mrtrix3
\
&&
pip
install
tvb-data tvb-library tqdm pybids siibra requests pyunicore mne nilearn pyvista ipywidgets cmdstanpy
\
&&
install_cmdstan
\
&&
mv
/root/.cmdstan
$PWD
/cmdstan
ENV
PATH=/usr/local/conda/bin:$PATH
ENV
FREESURFER_HOME=/usr/local/freesurfer
# TODO setup env automatically on entry
This diff is collapsed.
Click to expand it.
Preview
0%
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