annotate service/piNode/Dockerfile @ 625:69a84b3d1dfa

frontdoor configs; move device class timing to greplin stats Ignore-this: f32495ae0d3b4c6f50fe1ba46c57abcd
author drewp@bigasterisk.com
date Thu, 08 Aug 2019 16:50:14 -0700
parents 98384c3ccd33
children 7c04b4f675ec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
365
cb3738b1a15a pi_base moves to base image project
drewp@bigasterisk.com
parents: 338
diff changeset
1 FROM bang6:5000/base_pi
332
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
2
409
aea6dbb8abf5 build grpcio earlier in the stack since it's huge
drewp@bigasterisk.com
parents: 365
diff changeset
3 # super slow build
625
69a84b3d1dfa frontdoor configs; move device class timing to greplin stats
drewp@bigasterisk.com
parents: 552
diff changeset
4 RUN pip install grpcio==1.22.0
409
aea6dbb8abf5 build grpcio earlier in the stack since it's huge
drewp@bigasterisk.com
parents: 365
diff changeset
5
552
98384c3ccd33 update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp@bigasterisk.com
parents: 409
diff changeset
6 WORKDIR /opt
98384c3ccd33 update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp@bigasterisk.com
parents: 409
diff changeset
7
332
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
8 COPY requirements.txt ./
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
9
552
98384c3ccd33 update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp@bigasterisk.com
parents: 409
diff changeset
10 RUN pip install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt
332
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
11
552
98384c3ccd33 update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp@bigasterisk.com
parents: 409
diff changeset
12 # when we go to py3:
98384c3ccd33 update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp@bigasterisk.com
parents: 409
diff changeset
13 ## not sure why this doesn't work from inside requirements.txt
98384c3ccd33 update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp@bigasterisk.com
parents: 409
diff changeset
14 #RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip?v3'
338
f64e20d3407e RgbPixelsAnimation and docker build updates
drewp@bigasterisk.com
parents: 332
diff changeset
15
332
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
16 COPY *.py ./
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
17 COPY config/ ./config/
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
18
625
69a84b3d1dfa frontdoor configs; move device class timing to greplin stats
drewp@bigasterisk.com
parents: 552
diff changeset
19 EXPOSE 9059
69a84b3d1dfa frontdoor configs; move device class timing to greplin stats
drewp@bigasterisk.com
parents: 552
diff changeset
20
332
ca0fd0774d07 piNode Dockerfile based on alpine that's not working because of a libc issue
drewp@bigasterisk.com
parents:
diff changeset
21 CMD [ "python", "./piNode.py" ]