Mercurial > code > home > repos > homeauto
annotate service/collector/Dockerfile @ 1449:a2bc6602a0db
dockerfile deps
Ignore-this: b12d406bc1fee7c07092d273904b8b3d
darcs-hash:8b40b2634a6df26e0de4f6ef31c6ef2aabf14c31
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 25 Sep 2019 17:25:19 -0700 |
parents | 53d7168bbe4c |
children | fe9cfc088a49 |
rev | line source |
---|---|
1156
ee168d55524a
reasoning & collector move into docker images
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 FROM bang6:5000/base_x86 |
ee168d55524a
reasoning & collector move into docker images
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 |
ee168d55524a
reasoning & collector move into docker images
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 WORKDIR /opt |
ee168d55524a
reasoning & collector move into docker images
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 |
1449 | 5 RUN apt-get install -y vim net-tools iputils-ping |
1252
9cfa7f69e41f
collector partial py3+types update. WIP
drewp <drewp@bigasterisk.com>
parents:
1245
diff
changeset
|
6 |
1156
ee168d55524a
reasoning & collector move into docker images
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
7 COPY requirements.txt ./ |
1398
53d7168bbe4c
standardize build. fix /state report
drewp <drewp@bigasterisk.com>
parents:
1254
diff
changeset
|
8 RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -Ur requirements.txt |
1252
9cfa7f69e41f
collector partial py3+types update. WIP
drewp <drewp@bigasterisk.com>
parents:
1245
diff
changeset
|
9 # not sure why this doesn't work from inside requirements.txt |
1398
53d7168bbe4c
standardize build. fix /state report
drewp <drewp@bigasterisk.com>
parents:
1254
diff
changeset
|
10 RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -U 'https://github.com/drewp/cyclone/archive/python3.zip' |
1156
ee168d55524a
reasoning & collector move into docker images
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
11 |
1252
9cfa7f69e41f
collector partial py3+types update. WIP
drewp <drewp@bigasterisk.com>
parents:
1245
diff
changeset
|
12 COPY stubs ./stubs |
1254
666f9a2198a7
add types to sse_collector.py. Surprisingly few bugs found.
drewp <drewp@bigasterisk.com>
parents:
1252
diff
changeset
|
13 COPY *.py req* *.ini ./ |
1449 | 14 COPY static ./static |
1156
ee168d55524a
reasoning & collector move into docker images
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
15 |
ee168d55524a
reasoning & collector move into docker images
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 EXPOSE 9072 |
ee168d55524a
reasoning & collector move into docker images
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 |
1252
9cfa7f69e41f
collector partial py3+types update. WIP
drewp <drewp@bigasterisk.com>
parents:
1245
diff
changeset
|
18 CMD [ "python3", "./sse_collector.py" ] |