Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pyautoplot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Astronomy and Operations
SDC Operations
pyautoplot
Commits
3a30bd32
Commit
3a30bd32
authored
May 24, 2016
by
Michiel Brentjens
Browse files
Options
Downloads
Patches
Plain Diff
DockerFile now builds with python3.5
parent
362476b0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
docker/Dockerfile
+14
-14
14 additions, 14 deletions
docker/Dockerfile
with
15 additions
and
15 deletions
Makefile
+
1
−
1
View file @
3a30bd32
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
14
−
14
View file @
3a30bd32
...
@@ -13,14 +13,14 @@ ENV INSTALLDIR=/opt
...
@@ -13,14 +13,14 @@ ENV INSTALLDIR=/opt
# environment
# environment
#
#
ENV
DEBIAN_FRONTEND=noninteractive \
ENV
DEBIAN_FRONTEND=noninteractive \
PYTHON_VERSION=
2.7
PYTHON_VERSION=
3.5
#
#
# versions
# versions
#
#
ENV
CASACORE_VERSION=2.
0.3
\
ENV
CASACORE_VERSION=2.
1.0
\
CASAREST_VERSION=1.4.1 \
CASAREST_VERSION=1.4.1 \
PYTHON_CASACORE_VERSION=2.
0.1
\
PYTHON_CASACORE_VERSION=2.
1.2
\
BOOST_VERSION=1.58
BOOST_VERSION=1.58
#
#
...
@@ -38,8 +38,8 @@ ENV J=8
...
@@ -38,8 +38,8 @@ ENV J=8
#
#
#RUN sed -i 's/archive.ubuntu.com/osmirror.rug.nl/' /etc/apt/sources.list
#RUN sed -i 's/archive.ubuntu.com/osmirror.rug.nl/' /etc/apt/sources.list
RUN
apt-get update
&&
apt-get upgrade
-y
RUN
apt-get update
&&
apt-get upgrade
-y
RUN
apt-get
install
-y
sudo
rsync ssh python
2.7
libpython
2.7
&&
\
RUN
apt-get
install
-y
sudo
rsync ssh python
3
libpython
3.5-dev
&&
\
apt-get
install
-y
libblas3 liblapacke python-numpy libcfitsio-bin libcfitsio-dev libwcs5 libfftw3-bin libhdf5-10 libboost-python
${
BOOST_VERSION
}
.0
apt-get
install
-y
libblas3 liblapacke python
3
-numpy libcfitsio-bin libcfitsio-dev libwcs5 libfftw3-bin libhdf5-10 libboost-python
${
BOOST_VERSION
}
.0
#
#
# setup-account
# setup-account
...
@@ -70,7 +70,7 @@ RUN sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y wg
...
@@ -70,7 +70,7 @@ RUN sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y wg
if
[
"
${
CASACORE_VERSION
}
"
!=
"latest"
]
;
then
cd
${
INSTALLDIR
}
/casacore/src
&&
git checkout tags/v
${
CASACORE_VERSION
}
;
fi
&&
\
if
[
"
${
CASACORE_VERSION
}
"
!=
"latest"
]
;
then
cd
${
INSTALLDIR
}
/casacore/src
&&
git checkout tags/v
${
CASACORE_VERSION
}
;
fi
&&
\
cd
${
INSTALLDIR
}
/casacore/data
&&
wget
--retry-connrefused
ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar
&&
\
cd
${
INSTALLDIR
}
/casacore/data
&&
wget
--retry-connrefused
ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar
&&
\
cd
${
INSTALLDIR
}
/casacore/data
&&
tar
xf WSRT_Measures.ztar
&&
rm
-f
WSRT_Measures.ztar
&&
\
cd
${
INSTALLDIR
}
/casacore/data
&&
tar
xf WSRT_Measures.ztar
&&
rm
-f
WSRT_Measures.ztar
&&
\
cd
${
INSTALLDIR
}
/casacore/build
&&
cmake
-DCMAKE_INSTALL_PREFIX
=
${
INSTALLDIR
}
/casacore/
-DDATA_DIR
=
${
INSTALLDIR
}
/casacore/data
-DBUILD_PYTHON
=
True
-DUSE_OPENMP
=
True
-DUSE_FFTW3
=
TRUE ../src/
&&
\
cd
${
INSTALLDIR
}
/casacore/build
&&
cmake
-DCMAKE_INSTALL_PREFIX
=
${
INSTALLDIR
}
/casacore/
-DDATA_DIR
=
${
INSTALLDIR
}
/casacore/data
-DBUILD_PYTHON
=
False
-DBUILD_PYTHON3
=
True
-DPYTHON3_LIBRARY
=
/usr/lib/x86_64-linux-gnu/libpython
${
PYTHON_VERSION
}
m.so
-DPYTHON3_INCLUDE_DIR
=
/usr/include/python
${
PYTHON_VERSION
}
-DUSE_OPENMP
=
True
-DUSE_FFTW3
=
TRUE ../src/
&&
\
cd
${
INSTALLDIR
}
/casacore/build
&&
make
-j
${
J
}
&&
\
cd
${
INSTALLDIR
}
/casacore/build
&&
make
-j
${
J
}
&&
\
cd
${
INSTALLDIR
}
/casacore/build
&&
make
install
&&
\
cd
${
INSTALLDIR
}
/casacore/build
&&
make
install
&&
\
bash
-c
"strip
${
INSTALLDIR
}
/casacore/{lib,bin}/* || true"
&&
\
bash
-c
"strip
${
INSTALLDIR
}
/casacore/{lib,bin}/* || true"
&&
\
...
@@ -100,14 +100,14 @@ RUN sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y gi
...
@@ -100,14 +100,14 @@ RUN sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y gi
# Pyrap
# Pyrap
# *******************
# *******************
#
#
RUN
sudo
apt-get update
&&
sudo
apt-get upgrade
-y
&&
sudo
apt-get
install
-y
git make g++ python-setuptools libboost-python-dev libcfitsio3-dev wcslib-dev
&&
\
RUN
sudo
apt-get update
&&
sudo
apt-get upgrade
-y
&&
sudo
apt-get
install
-y
git make g++ python
3
-setuptools libboost-python-dev libcfitsio3-dev wcslib-dev
&&
\
mkdir
${
INSTALLDIR
}
/python-casacore
&&
\
mkdir
${
INSTALLDIR
}
/python-casacore
&&
\
cd
${
INSTALLDIR
}
/python-casacore
&&
git clone https://github.com/casacore/python-casacore
&&
\
cd
${
INSTALLDIR
}
/python-casacore
&&
git clone https://github.com/casacore/python-casacore
&&
\
if
[
"
$PYTHON_CASACORE_VERSION
"
!=
"latest"
]
;
then
cd
${
INSTALLDIR
}
/python-casacore/python-casacore
&&
git checkout tags/v
${
PYTHON_CASACORE_VERSION
}
;
fi
&&
\
if
[
"
$PYTHON_CASACORE_VERSION
"
!=
"latest"
]
;
then
cd
${
INSTALLDIR
}
/python-casacore/python-casacore
&&
git checkout tags/v
${
PYTHON_CASACORE_VERSION
}
;
fi
&&
\
cd
${
INSTALLDIR
}
/python-casacore/python-casacore
&&
./setup.py build_ext
-I
${
INSTALLDIR
}
/casacore/include/
-L
${
INSTALLDIR
}
/casacore/lib/
&&
\
cd
${
INSTALLDIR
}
/python-casacore/python-casacore
&&
python3
./setup.py build_ext
-I
${
INSTALLDIR
}
/casacore/include/
-L
${
INSTALLDIR
}
/casacore/lib/
&&
\
mkdir
-p
${
INSTALLDIR
}
/python-casacore/lib/python
${
PYTHON_VERSION
}
/site-packages/
&&
\
mkdir
-p
${
INSTALLDIR
}
/python-casacore/lib/python
${
PYTHON_VERSION
}
/site-packages/
&&
\
mkdir
-p
${
INSTALLDIR
}
/python-casacore/lib64/python
${
PYTHON_VERSION
}
/site-packages/
&&
\
mkdir
-p
${
INSTALLDIR
}
/python-casacore/lib64/python
${
PYTHON_VERSION
}
/site-packages/
&&
\
export
PYTHONPATH
=
${
INSTALLDIR
}
/python-casacore/lib/python
${
PYTHON_VERSION
}
/site-packages:
${
INSTALLDIR
}
/python-casacore/lib64/python
${
PYTHON_VERSION
}
/site-packages:
$PYTHONPATH
&&
cd
${
INSTALLDIR
}
/python-casacore/python-casacore
&&
./setup.py
install
--prefix
=
${
INSTALLDIR
}
/python-casacore/
&&
\
export
PYTHONPATH
=
${
INSTALLDIR
}
/python-casacore/lib/python
${
PYTHON_VERSION
}
/site-packages:
${
INSTALLDIR
}
/python-casacore/lib64/python
${
PYTHON_VERSION
}
/site-packages:
$PYTHONPATH
&&
cd
${
INSTALLDIR
}
/python-casacore/python-casacore
&&
python3
./setup.py
install
--prefix
=
${
INSTALLDIR
}
/python-casacore/
&&
\
bash
-c
"find
${
INSTALLDIR
}
/python-casacore/lib -name '*.so' | xargs strip || true"
&&
\
bash
-c
"find
${
INSTALLDIR
}
/python-casacore/lib -name '*.so' | xargs strip || true"
&&
\
bash
-c
"rm -rf
${
INSTALLDIR
}
/python-casacore/python-casacore"
&&
\
bash
-c
"rm -rf
${
INSTALLDIR
}
/python-casacore/python-casacore"
&&
\
sudo
apt-get purge
-y
git make g++ python-setuptools libboost-python-dev libcfitsio3-dev wcslib-dev
&&
\
sudo
apt-get purge
-y
git make g++ python-setuptools libboost-python-dev libcfitsio3-dev wcslib-dev
&&
\
...
@@ -193,13 +193,13 @@ RUN sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y su
...
@@ -193,13 +193,13 @@ RUN sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y su
RUN
sudo
apt-get update
-y
&&
\
RUN
sudo
apt-get update
-y
&&
\
sudo
apt-get upgrade
-y
&&
\
sudo
apt-get upgrade
-y
&&
\
sudo
apt-get
install
-y
python-numpy python-matplotlib python-scipy python-setuptools
\
sudo
apt-get
install
-y
python
3
-numpy python
3
-matplotlib python
3
-scipy python
3
-setuptools
\
wget git python-nose python-coverage
\
wget git python
3
-nose python
3
-coverage
\
python-astropy
python
3
-astropy
RUN
A
=
$D
;
git clone https://github.com/brentjens/pyautoplot.git
${
INSTALLDIR
}
/pyautoplot
&&
\
RUN
A
=
$D
;
git clone https://github.com/brentjens/pyautoplot.git
${
INSTALLDIR
}
/pyautoplot
&&
\
cd
${
INSTALLDIR
}
/pyautoplot
&&
\
cd
${
INSTALLDIR
}
/pyautoplot
&&
git checkout python3
&&
\
sudo
python setup.py
install
sudo
python
3
setup.py
install
...
...
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