Mercurial > code > home > repos > homeauto
annotate service/piNode/Dockerfile @ 1431:af2d0249a2cc
wip for pytype support and separate device run loops on piNode
Ignore-this: 9aa9a3a7e715afefbc858050e02c4c62
darcs-hash:998d048d88b8cbc9e5fcd7576dec8687a9960e8c
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 10 Aug 2019 23:33:50 -0700 |
parents | 56e07d3f0930 |
children | 7c04b4f675ec |
rev | line source |
---|---|
1170
cbd4f9f98416
pi_base moves to base image project
drewp <drewp@bigasterisk.com>
parents:
1143
diff
changeset
|
1 FROM bang6:5000/base_pi |
1137
6ffff91eea2f
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 |
1212
10c409c44b3f
build grpcio earlier in the stack since it's huge
drewp <drewp@bigasterisk.com>
parents:
1170
diff
changeset
|
3 # super slow build |
1428
56e07d3f0930
frontdoor configs; move device class timing to greplin stats
drewp <drewp@bigasterisk.com>
parents:
1355
diff
changeset
|
4 RUN pip install grpcio==1.22.0 |
1212
10c409c44b3f
build grpcio earlier in the stack since it's huge
drewp <drewp@bigasterisk.com>
parents:
1170
diff
changeset
|
5 |
1355
f2159312b0e7
update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp <drewp@bigasterisk.com>
parents:
1212
diff
changeset
|
6 WORKDIR /opt |
f2159312b0e7
update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp <drewp@bigasterisk.com>
parents:
1212
diff
changeset
|
7 |
1137
6ffff91eea2f
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 COPY requirements.txt ./ |
6ffff91eea2f
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 |
1355
f2159312b0e7
update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp <drewp@bigasterisk.com>
parents:
1212
diff
changeset
|
10 RUN pip install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt |
1137
6ffff91eea2f
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
11 |
1355
f2159312b0e7
update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp <drewp@bigasterisk.com>
parents:
1212
diff
changeset
|
12 # when we go to py3: |
f2159312b0e7
update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp <drewp@bigasterisk.com>
parents:
1212
diff
changeset
|
13 ## not sure why this doesn't work from inside requirements.txt |
f2159312b0e7
update build and deps to use invoke and to use new lib layout, plus more stats collection
drewp <drewp@bigasterisk.com>
parents:
1212
diff
changeset
|
14 #RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip?v3' |
1143
d1bc88f67969
RgbPixelsAnimation and docker build updates
drewp <drewp@bigasterisk.com>
parents:
1137
diff
changeset
|
15 |
1137
6ffff91eea2f
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 COPY *.py ./ |
6ffff91eea2f
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 COPY config/ ./config/ |
6ffff91eea2f
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 |
1428
56e07d3f0930
frontdoor configs; move device class timing to greplin stats
drewp <drewp@bigasterisk.com>
parents:
1355
diff
changeset
|
19 EXPOSE 9059 |
56e07d3f0930
frontdoor configs; move device class timing to greplin stats
drewp <drewp@bigasterisk.com>
parents:
1355
diff
changeset
|
20 |
1137
6ffff91eea2f
piNode Dockerfile based on alpine that's not working because of a libc issue
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 CMD [ "python", "./piNode.py" ] |