Cleanup Dockerfiles for CVAT (#1060)
* Replaced wget by curl * Moved CI stuff into Dockerfile.ci * Use docker-compose to run commnands inside docker (need environment variables) * Added patool again (to support different archive formats) * Roll back tensorflow version: 1.15 -> 1.13.1 Fixed https://github.com/opencv/cvat/issues/982 Fixed https://github.com/opencv/cvat/issues/1017 * datumaro install tensorflow 2.x now. It breaks automatic annotation using TF. * Follow redirects in curl (auto_segmentation)main
parent
7cf755fd38
commit
a5c3da1235
@ -0,0 +1,32 @@
|
||||
FROM cvat
|
||||
|
||||
ENV DJANGO_CONFIGURATION=testing
|
||||
USER root
|
||||
|
||||
RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
|
||||
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list && \
|
||||
curl https://deb.nodesource.com/setup_9.x | bash - && \
|
||||
apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -yq \
|
||||
google-chrome-stable \
|
||||
nodejs && \
|
||||
rm -rf /var/lib/apt/lists/*;
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir -r /tmp/requirements/${DJANGO_CONFIGURATION}.txt
|
||||
|
||||
# RUN all commands below as 'django' user
|
||||
USER ${USER}
|
||||
|
||||
RUN mkdir -p tests && cd tests && npm install \
|
||||
eslint \
|
||||
eslint-detailed-reporter \
|
||||
karma \
|
||||
karma-chrome-launcher \
|
||||
karma-coveralls \
|
||||
karma-coverage \
|
||||
karma-junit-reporter \
|
||||
karma-qunit \
|
||||
qunit; \
|
||||
echo "export PATH=~/tests/node_modules/.bin:${PATH}" >> ~/.bashrc;
|
||||
|
||||
ENTRYPOINT []
|
||||
@ -1,2 +1,5 @@
|
||||
-r development.txt
|
||||
fakeredis==1.0.3
|
||||
fakeredis==1.1.0
|
||||
# Fix dependencies for fakeredis 1.1.0
|
||||
# Pip will not reinstall six package if it is installed already
|
||||
six==1.12.0
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
argparse==1.1
|
||||
tensorflow==1.15.0
|
||||
tensorflow==1.13.1
|
||||
pathlib==1.0.1
|
||||
|
||||
Loading…
Reference in New Issue