Skip to content
Permalink
Browse files

Merge pull request #3882 from lscheinkman/fix_docker

Fix nupic.core version used in Dockerfile
  • Loading branch information
lscheinkman committed Oct 23, 2019
2 parents 5922faf + 038bccf commit b9ebedaf54f49a33de22d8d44dff7c765cdb5548
Showing with 11 additions and 2 deletions.
  1. +2 −0 .dockerignore
  2. +9 −2 Dockerfile
@@ -1,3 +1,5 @@
coreos-vagrant
bin
build
.*
*.pyc
@@ -54,9 +54,16 @@ ENV USER docker

# Set up nupic.core
RUN pip install numpy pycapnp
RUN git clone https://github.com/numenta/nupic.core /usr/local/src/nupic.core
WORKDIR /usr/local/src/nupic.core
RUN mkdir -p build/scripts

# Extract nupic.core version from ${NUPIC}/requirements.txt
ADD requirements.txt ${NUPIC}/requirements.txt
RUN cat ${NUPIC}/requirements.txt|grep "^nupic\.bindings"|cut -d "=" -f 3 > VERSION

# Download sources from github release
RUN wget -qO - https://github.com/numenta/nupic.core/archive/$(cat VERSION).tar.gz | tar --strip-components=1 -xzf -

# Build nupic.core and nupic.bindings
WORKDIR /usr/local/src/nupic.core/build/scripts
RUN cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../release -DPY_EXTENSIONS_DIR=../../bindings/py/nupic/bindings ../..
RUN make install

0 comments on commit b9ebeda

Please sign in to comment.
You can’t perform that action at this time.