forked from edickie/ciftify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request edickie#158 from DESm1th/py39
[ENH] Run test suite against python3.9
- Loading branch information
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM ubuntu:focal-20200720 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Prepare environment | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
wget \ | ||
gnupg \ | ||
curl \ | ||
pkg-config \ | ||
gcc \ | ||
g++ \ | ||
libfreetype-dev \ | ||
libpng-dev \ | ||
libopenblas-dev \ | ||
liblapack-dev \ | ||
libjpeg-dev \ | ||
gfortran \ | ||
git \ | ||
python3.9 \ | ||
python3.9-venv \ | ||
python3-setuptools \ | ||
python3-pip | ||
|
||
# Get connectome-workbench | ||
RUN wget -O- http://neuro.debian.net/lists/focal.us-ca.full >> /etc/apt/sources.list.d/neurodebian.sources.list && \ | ||
apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9 && \ | ||
apt update && \ | ||
apt install -y connectome-workbench=1.4.2-1build1 | ||
|
||
# Get bids-validator | ||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \ | ||
apt-get install -y nodejs && \ | ||
npm install -g bids-validator | ||
|
||
# Ensure python3.9 is the default python3 + update pip | ||
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 && \ | ||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2 && \ | ||
pip install --upgrade pip | ||
|
||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters