Skip to content

Commit 3a0dba5

Browse files
committed
add dockerfile-dev
1 parent c1c7189 commit 3a0dba5

File tree

5 files changed

+23
-10
lines changed

5 files changed

+23
-10
lines changed

.dockerignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Ignore generated files
2-
*/*.pyc
3-
*/*/*.pyc
4-
*/__pycache__
5-
*/*/__pycache__
2+
__pycache__
3+
/venv/
4+
/dist/
5+
/publish/

Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

docker/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM ubuntu:20.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt update -y && apt install -y python3 python3-pip git && apt install -y --no-install-recommends ffmpeg
6+
7+
RUN python3 -m pip install --upgrade git+https://github.com/mapillary/mapillary_tools

docker/Dockerfile-dev

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM ubuntu:20.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt update -y && apt install -y python3 python3-pip git && apt install -y --no-install-recommends ffmpeg
6+
7+
WORKDIR /mapillary_tools
8+
ADD requirements.txt requirements-dev.txt /mapillary_tools
9+
RUN python3 -m pip install -r requirements.txt -r requirements-dev.txt
10+
ADD . /mapillary_tools

mapillary_tools/download_blurred.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class WorkerMonitor(threading.Thread):
2121
"""
2222

2323
def __init__(self, threads, q):
24-
threading.Thread.__init__(self)
24+
super().__init__()
2525
self.threads = threads
2626
self.q = q
2727
self.shutdown_flag = threading.Event()
@@ -268,8 +268,7 @@ class BlurredOriginalsDownloader(threading.Thread):
268268
""""""
269269

270270
def __init__(self, lock, q, output_folder, headers, counter, done_file, err_file):
271-
threading.Thread.__init__(self)
272-
271+
super().__init__()
273272
self.counter = counter
274273
self.done_file = done_file
275274
self.err_file = err_file

0 commit comments

Comments
 (0)