Skip to content
Permalink
Browse files

Fix nupic.core version used in Dockerfile

  • Loading branch information
lscheinkman committed Oct 22, 2019
1 parent 5922faf commit 038bccf15615bdd22124f542d5870fa6c3d635cb
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 038bccf

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