Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build and test armhf wheel with docker. * Fix dockerfile bug. * Change Docker image names
- Loading branch information
1 parent
5d1ebb0
commit e8332fb
Showing
5 changed files
with
290 additions
and
49 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
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,117 @@ | ||
# Copyright (c) 2017 Sony Corporation. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM multiarch/ubuntu-core:armhf-xenial | ||
|
||
ENV LC_ALL C | ||
ENV LANG C | ||
ENV LANGUAGE C | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
bzip2 \ | ||
ca-certificates \ | ||
ccache \ | ||
clang-format-3.8 \ | ||
cmake \ | ||
curl \ | ||
g++ \ | ||
git \ | ||
libarchive-dev \ | ||
libatlas-dev \ | ||
libhdf5-dev \ | ||
liblapack-dev \ | ||
libopenmpi-dev \ | ||
make \ | ||
openmpi-bin \ | ||
python \ | ||
python-dev \ | ||
python-pip \ | ||
python-setuptools \ | ||
python-wheel \ | ||
python3 \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
python3-wheel \ | ||
unzip \ | ||
wget \ | ||
zip | ||
|
||
RUN mkdir /tmp/deps \ | ||
&& cd /tmp/deps \ | ||
&& curl -L https://github.com/google/protobuf/archive/v3.1.0.tar.gz -o protobuf-v3.1.0.tar.gz \ | ||
&& tar xvf protobuf-v3.1.0.tar.gz \ | ||
&& cd protobuf-3.1.0 \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake \ | ||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \ | ||
-Dprotobuf_BUILD_TESTS=OFF \ | ||
../cmake \ | ||
&& make \ | ||
&& make install \ | ||
&& cd / \ | ||
&& rm -rf /tmp/* | ||
|
||
RUN python3 -m pip install --upgrade pip | ||
RUN python2 -m pip install --upgrade pip | ||
|
||
RUN pip install --no-cache-dir \ | ||
autopep8 \ | ||
boto3 \ | ||
cython \ | ||
mako \ | ||
numpy\<1.16 \ | ||
onnx==1.3.0 \ | ||
pillow \ | ||
protobuf \ | ||
pytest \ | ||
pyyaml \ | ||
requests \ | ||
scipy \ | ||
tqdm \ | ||
virtualenv | ||
|
||
RUN pip install \ | ||
--no-cache-dir \ | ||
--global-option=build_ext \ | ||
--global-option="-I/usr/include/hdf5/serial" \ | ||
--global-option="-L/usr/lib/arm-linux-gnueabihf/hdf5/serial" \ | ||
h5py | ||
|
||
RUN pip3 install --no-cache-dir \ | ||
autopep8 \ | ||
boto3 \ | ||
cython \ | ||
mako \ | ||
numpy\<1.16 \ | ||
onnx==1.3.0 \ | ||
pillow \ | ||
protobuf \ | ||
pytest \ | ||
pyyaml \ | ||
requests \ | ||
scipy \ | ||
tqdm \ | ||
virtualenv | ||
|
||
RUN pip3 install \ | ||
--no-cache-dir \ | ||
--global-option=build_ext \ | ||
--global-option="-I/usr/include/hdf5/serial" \ | ||
--global-option="-L/usr/lib/arm-linux-gnueabihf/hdf5/serial" \ | ||
h5py | ||
|
||
RUN pip install ipython==5.0 | ||
RUN pip3 install ipython |
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,117 @@ | ||
# Copyright (c) 2017 Sony Corporation. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM multiarch/ubuntu-core:armhf-xenial | ||
|
||
ENV LC_ALL C | ||
ENV LANG C | ||
ENV LANGUAGE C | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
bzip2 \ | ||
ca-certificates \ | ||
ccache \ | ||
clang-format-3.8 \ | ||
cmake \ | ||
curl \ | ||
g++ \ | ||
git \ | ||
libarchive-dev \ | ||
libatlas-dev \ | ||
libhdf5-dev \ | ||
liblapack-dev \ | ||
libopenmpi-dev \ | ||
make \ | ||
openmpi-bin \ | ||
python \ | ||
python-dev \ | ||
python-pip \ | ||
python-setuptools \ | ||
python-wheel \ | ||
python3 \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
python3-wheel \ | ||
unzip \ | ||
wget \ | ||
zip | ||
|
||
RUN mkdir /tmp/deps \ | ||
&& cd /tmp/deps \ | ||
&& curl -L https://github.com/google/protobuf/archive/v3.1.0.tar.gz -o protobuf-v3.1.0.tar.gz \ | ||
&& tar xvf protobuf-v3.1.0.tar.gz \ | ||
&& cd protobuf-3.1.0 \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake \ | ||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \ | ||
-Dprotobuf_BUILD_TESTS=OFF \ | ||
../cmake \ | ||
&& make \ | ||
&& make install \ | ||
&& cd / \ | ||
&& rm -rf /tmp/* | ||
|
||
RUN python3 -m pip install --upgrade pip | ||
RUN python2 -m pip install --upgrade pip | ||
|
||
RUN pip install --no-cache-dir \ | ||
autopep8 \ | ||
boto3 \ | ||
cython \ | ||
mako \ | ||
numpy\<1.16 \ | ||
onnx==1.3.0 \ | ||
pillow \ | ||
protobuf \ | ||
pytest \ | ||
pyyaml \ | ||
requests \ | ||
scipy \ | ||
tqdm \ | ||
virtualenv | ||
|
||
RUN pip install \ | ||
--no-cache-dir \ | ||
--global-option=build_ext \ | ||
--global-option="-I/usr/include/hdf5/serial" \ | ||
--global-option="-L/usr/lib/arm-linux-gnueabihf/hdf5/serial" \ | ||
h5py | ||
|
||
RUN pip3 install --no-cache-dir \ | ||
autopep8 \ | ||
boto3 \ | ||
cython \ | ||
mako \ | ||
numpy\<1.16 \ | ||
onnx==1.3.0 \ | ||
pillow \ | ||
protobuf \ | ||
pytest \ | ||
pyyaml \ | ||
requests \ | ||
scipy \ | ||
tqdm \ | ||
virtualenv | ||
|
||
RUN pip3 install \ | ||
--no-cache-dir \ | ||
--global-option=build_ext \ | ||
--global-option="-I/usr/include/hdf5/serial" \ | ||
--global-option="-L/usr/lib/arm-linux-gnueabihf/hdf5/serial" \ | ||
h5py | ||
|
||
RUN pip install ipython==5.0 | ||
RUN pip3 install ipython |