forked from jaredweiss/numenta-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
77 lines (69 loc) · 2.66 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# ----------------------------------------------------------------------
# Copyright (C) 2016, Numenta, Inc. Unless you have purchased from
# Numenta, Inc. a separate commercial license for this software code, the
# following terms and conditions apply:
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Affero Public License for more details.
#
# You should have received a copy of the GNU Affero Public License
# along with this program. If not, see http://www.gnu.org/licenses.
#
# http://numenta.org/licenses/
# ----------------------------------------------------------------------
# See https://hub.docker.com/r/numenta/nupic for details of official public
# build of image from https://github.com/numenta/nupic/blob/master/Dockerfile
FROM numenta/nupic:latest
# OS-level dependencies
RUN apt-get update && \
apt-get -y install apt-transport-https \
build-essential \
python-software-properties \
software-properties-common \
libmysqlclient-dev \
python-dev \
libffi-dev \
libssl-dev \
nginx
# Copy taurus-relevant numenta-apps subdirs to image
COPY infrastructure /opt/numenta/infrastructure
COPY nta.utils /opt/numenta/nta.utils
COPY htmengine /opt/numenta/htmengine
COPY taurus /opt/numenta/taurus
COPY install-taurus.sh /opt/numenta/
# Install taurus
WORKDIR /opt/numenta
RUN ./install-taurus.sh
# Environment
ENV APPLICATION_CONFIG_PATH=/opt/numenta/taurus/conf \
MYSQL_HOST=mysql \
MYSQL_USER=root \
MYSQL_PASSWD="" \
RABBITMQ_HOST=rabbit \
RABBITMQ_USER=guest \
RABBITMQ_PASSWD=guest \
TAURUS_RMQ_METRIC_DEST=rabbit \
TAURUS_RMQ_METRIC_PREFIX=CHANGEME \
DYNAMODB_TABLE_SUFFIX=CHANGEME \
DYNAMODB_HOST="" \
DYNAMODB_PORT="" \
TAURUS_API_KEY=CHANGEME \
TAURUS_SERVER_HOST=CHANGEME \
SSL_ORG_NAME=Numenta \
SSL_LOCALITY=CA \
SSL_DOMAIN_NAME=localhost \
SSL_ORGANIZATIONAL_UNIT_NAME=Engineering \
AWS_ACCESS_KEY_ID=CHANGEME \
AWS_SECRET_ACCESS_KEY=CHANGEME \
OBLITERATE_DATABASE=""
ENTRYPOINT ["/opt/numenta/taurus/docker/entrypoint.sh"]
CMD ["/opt/numenta/taurus/docker/run.sh"]
VOLUME ["/opt/numenta/taurus/logs", \
"/root/taurus_model_checkpoints"]