forked from jaredweiss/numenta-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
72 lines (66 loc) · 2.83 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
# ----------------------------------------------------------------------
# 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
# Copy taurus.metric_collectors-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.metric_collectors /opt/numenta/taurus.metric_collectors
COPY install-taurus-metric-collectors.sh /opt/numenta/
# Install taurus.metric_collectors
WORKDIR /opt/numenta
RUN ./install-taurus-metric-collectors.sh
# Environment
ENV APPLICATION_CONFIG_PATH=/opt/numenta/taurus.metric_collectors/conf \
MYSQL_HOST=mysql \
MYSQL_USER=root \
MYSQL_PASSWD="" \
RABBITMQ_HOST=rabbit \
RABBITMQ_USER=guest \
RABBITMQ_PASSWD=guest \
TAURUS_HTM_SERVER=CHANGEME \
TAURUS_API_KEY=CHANGEME \
XIGNITE_API_TOKEN=CHANGEME \
TAURUS_TWITTER_ACCESS_TOKEN=CHANGEME \
TAURUS_TWITTER_ACCESS_TOKEN_SECRET=CHANGEME \
TAURUS_TWITTER_CONSUMER_KEY=CHANGEME \
TAURUS_TWITTER_CONSUMER_SECRET=CHANGEME \
ERROR_REPORT_EMAIL_AWS_REGION=CHANGEME \
ERROR_REPORT_EMAIL_RECIPIENTS=CHANGEME \
ERROR_REPORT_EMAIL_SENDER_ADDRESS=CHANGEME \
ERROR_REPORT_EMAIL_SES_ENDPOINT=CHANGEME \
AWS_ACCESS_KEY_ID=CHANGEME \
AWS_SECRET_ACCESS_KEY=CHANGEME \
OBLITERATE_DATABASE=""
ENTRYPOINT ["/opt/numenta/taurus.metric_collectors/docker/entrypoint.sh"]
CMD ["/opt/numenta/taurus.metric_collectors/docker/run.sh"]
VOLUME ["/opt/numenta/taurus.metric_collectors/logs"]