forked from htm-community/htm.core
-
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.
- Loading branch information
Showing
66 changed files
with
1,740 additions
and
2,418 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
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 |
---|---|---|
@@ -1,38 +1,40 @@ | ||
FROM ubuntu:14.04 | ||
# Default arch. Pass in like "--build-arg arch=arm64". | ||
# Our circleci arm64 build uses this specifically. | ||
# https://docs.docker.com/engine/reference/commandline/build/ | ||
ARG arch=x86_64 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
curl \ | ||
wget \ | ||
# Multiarch Ubuntu Bionic 18.04. arches: x86_64, arm64, etc. | ||
# https://hub.docker.com/r/multiarch/ubuntu-core/tags/ | ||
FROM multiarch/ubuntu-core:$arch-bionic | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y \ | ||
git-core \ | ||
gcc \ | ||
g++ \ | ||
g++-8 \ | ||
cmake \ | ||
python \ | ||
python2.7 \ | ||
python2.7-dev \ | ||
zlib1g-dev \ | ||
bzip2 \ | ||
python-numpy \ | ||
libyaml-dev \ | ||
libyaml-0-2 | ||
RUN wget http://releases.numenta.org/pip/1ebd3cb7a5a3073058d0c9552ab074bd/get-pip.py -O - | python | ||
python-pip | ||
|
||
RUN pip install --upgrade setuptools | ||
RUN pip install wheel | ||
|
||
ENV CC gcc | ||
ENV CXX g++ | ||
|
||
ADD . /usr/local/src/nupic.core | ||
ENV CC gcc-8 | ||
ENV CXX g++-8 | ||
|
||
WORKDIR /usr/local/src/nupic.core | ||
ADD . /usr/local/src/nupic.cpp | ||
WORKDIR /usr/local/src/nupic.cpp | ||
|
||
# Explicitly specify --cache-dir, --build, and --no-clean so that build | ||
# artifacts may be extracted from the container later. Final built python | ||
# packages can be found in /usr/local/src/nupic.core/bindings/py/dist | ||
|
||
# packages can be found in /usr/local/src/nupic.cpp/bindings/py/dist | ||
RUN pip install \ | ||
--cache-dir /usr/local/src/nupic.core/pip-cache \ | ||
--build /usr/local/src/nupic.core/pip-build \ | ||
--no-clean \ | ||
-r bindings/py/requirements.txt && \ | ||
python setup.py bdist bdist_dumb bdist_wheel sdist | ||
# --cache-dir /usr/local/src/nupic.cpp/pip-cache \ | ||
# --build /usr/local/src/nupic.cpp/pip-build \ | ||
# --no-clean \ | ||
-r bindings/py/packaging/requirements.txt | ||
RUN python setup.py install | ||
|
Oops, something went wrong.