Skip to content

Commit b3d9d57

Browse files
committed
Update Dockerfiles for Codecov upload action v4
Signed-off-by: Beat Buesser <[email protected]>
1 parent dfd6913 commit b3d9d57

File tree

6 files changed

+38
-71
lines changed

6 files changed

+38
-71
lines changed

.github/actions/deepspeech-v3/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Get base from a pytorch image
1+
# Get base image
22
FROM python:3.10.13-slim-bullseye
33

44
# Set to install things in non-interactive mode
55
ENV DEBIAN_FRONTEND noninteractive
66

7-
# Install system wide softwares
7+
# Install system wide software
88
RUN apt-get update \
99
&& apt-get install -y \
1010
libgl1-mesa-glx \
@@ -19,6 +19,8 @@ RUN apt-get update \
1919
libsndfile1 \
2020
vim \
2121
curl \
22+
gpg \
23+
gpg-agent \
2224
&& apt-get clean all \
2325
&& rm -r /var/lib/apt/lists/*
2426

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
# Get base from a pytorch image
2-
FROM pytorch/pytorch:1.6.0-cuda10.1-cudnn7-runtime
1+
# Get base image
2+
FROM python:3.7.17-slim-bullseye
33

44
# Set to install things in non-interactive mode
55
ENV DEBIAN_FRONTEND noninteractive
66

7-
# Install system wide softwares
7+
# Install system wide software
88
RUN apt-get update \
99
&& apt-get install -y \
10+
build-essential \
1011
libgl1-mesa-glx \
1112
libx11-xcb1 \
1213
git \
@@ -17,26 +18,17 @@ RUN apt-get update \
1718
curl \
1819
libsndfile-dev \
1920
libsndfile1 \
21+
gpg \
22+
gpg-agent \
2023
&& apt-get clean all \
2124
&& rm -r /var/lib/apt/lists/*
2225

23-
RUN /opt/conda/bin/conda install --yes \
24-
astropy \
25-
matplotlib \
26-
pandas \
27-
scikit-learn \
28-
scikit-image
29-
3026
# Install necessary libraries for espresso
31-
RUN pip install torch
32-
RUN pip install tensorflow
33-
RUN pip install torchaudio==0.6.0
34-
RUN pip install --no-build-isolation fairscale
35-
36-
RUN pip install numba==0.50.0
37-
RUN pip install pytest-cov
27+
RUN pip install torch==1.6.0 torchaudio==0.6.0 pytest-cov~=4.1.0 scipy==1.2 scikit-learn==0.24 protobuf==3.20 kaldiio==2.18.0 tensorflow==2.9
28+
RUN pip install --no-build-isolation fairscale==0.3.6
3829

39-
RUN pip install kaldiio
4030
RUN git clone https://github.com/beat-buesser/espresso
41-
RUN cd espresso && git checkout adv && pip install --editable .
42-
RUN pip install sentencepiece
31+
RUN cd espresso && git checkout adv && pip install .
32+
RUN pip install sentencepiece numpy==1.21.6
33+
34+
CMD ["/bin/bash"]

.github/actions/goturn/Dockerfile

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# Get base from a pytorch image
2-
FROM pytorch/pytorch:1.6.0-cuda10.1-cudnn7-runtime
1+
# Get base image
2+
FROM python:3.8.19-slim-bullseye
33

4-
# Set to install things in non-interactive mode
5-
ENV DEBIAN_FRONTEND noninteractive
6-
7-
# Install system wide softwares
4+
# Install system wide software
85
RUN apt-get update \
96
&& apt-get install -y \
7+
build-essential \
108
libgl1-mesa-glx \
119
libx11-xcb1 \
1210
git \
@@ -17,45 +15,26 @@ RUN apt-get update \
1715
curl \
1816
libsndfile-dev \
1917
libsndfile1 \
18+
libhdf5-dev \
19+
gpg \
20+
gpg-agent \
2021
&& apt-get install -y libsm6 libxext6 \
2122
&& apt-get install -y libxrender-dev \
2223
&& apt-get clean all \
2324
&& rm -r /var/lib/apt/lists/*
2425

25-
RUN /opt/conda/bin/conda install --yes \
26-
astropy \
27-
matplotlib \
28-
pandas \
29-
scikit-learn \
30-
scikit-image
31-
3226
# Install necessary libraries for goturn
33-
RUN pip install torch==1.9.1
34-
RUN pip install torchvision==0.10.1
35-
RUN pip install tensorflow==2.6.0
36-
RUN pip install pytest
37-
RUN pip install numba
38-
RUN pip install scikit-learn==0.20
39-
RUN pip install pytest-cov
40-
RUN pip install gdown
27+
RUN pip install torch==1.9.1 torchvision==0.10.1 tensorflow==2.9 scikit-learn==0.24 pytest~=6.2.5 pytest-cov~=4.1.0
4128

4229
RUN git clone https://github.com/nrupatunga/goturn-pytorch.git /tmp/goturn-pytorch
4330
#RUN cd /tmp/goturn-pytorch && pip install -r requirements.txt
44-
RUN pip install loguru==0.5.3
45-
RUN pip install torchsummary==1.5.1
46-
RUN pip install tqdm==4.62.3
47-
RUN pip install pytorch_lightning==0.7.1
48-
RUN pip install imutils==0.5.3
49-
RUN pip install torch_lr_finder==0.2.1
50-
RUN pip install numpy==1.20.3
51-
RUN pip install opencv_python==4.3.0.36
52-
RUN pip install Pillow==8.0.1
53-
RUN pip install visdom==0.1.8.9
54-
55-
RUN pip install numpy==1.20.3
31+
RUN pip install loguru==0.5.3 torchsummary==1.5.1 tqdm==4.62.3 pytorch_lightning==0.7.1 imutils==0.5.3 torch_lr_finder==0.2.1 numpy==1.21.6 Pillow==8.0.1 visdom==0.1.8.9 gdown==5.1.0
32+
RUN pip3 install opencv_python==4.9.0.80 --no-build-isolation
5633

5734
ENV PYTHONPATH "${PYTHONPATH}:/tmp/goturn-pytorch/src"
5835
ENV PYTHONPATH "${PYTHONPATH}:/tmp/goturn-pytorch/src/scripts"
5936

6037
RUN mkdir /tmp/goturn-pytorch/src/goturn/models/checkpoints
6138
RUN cd /tmp/goturn-pytorch/src/goturn/models/checkpoints && gdown https://drive.google.com/uc?id=1GouImhqpcoDtV_eLrD2wra-qr3vkAMY4
39+
40+
CMD ["/bin/bash"]

.github/actions/tf-faster-rcnn/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Get base from a TensorFlow image
1+
# Get base image
22
FROM python:3.7.17-slim
33

44
# Install system wide software

.github/actions/yolo/Dockerfile

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# Get base from a pytorch image
2-
FROM pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime
3-
4-
# Set to install things in non-interactive mode
5-
ENV DEBIAN_FRONTEND noninteractive
1+
# Get base image
2+
FROM python:3.9.19-slim
63

74
# Install system wide software
85
RUN apt-get update \
@@ -17,17 +14,14 @@ RUN apt-get update \
1714
ffmpeg \
1815
curl \
1916
wget \
17+
libhdf5-dev \
18+
gpg \
19+
gpg-agent \
2020
&& apt-get clean all \
2121
&& rm -r /var/lib/apt/lists/*
2222

23-
RUN pip install six setuptools tqdm
24-
RUN pip install numpy==1.21.6 scipy==1.8.1 scikit-learn==1.1.1 numba==0.55.1
25-
RUN pip install torch==1.11.0
26-
RUN pip install tensorflow==2.9.1
27-
RUN pip install pytest-cov
23+
RUN pip install pytorchyolo==1.8.0 tensorflow==2.14.1 scikit-learn==1.4.2 pytest-cov~=4.1.0 torch==1.12.1
2824

29-
# Install necessary libraries for Yolo v3
30-
RUN pip install pytorchyolo==1.6.2
25+
RUN cd /tmp/ && git clone https://github.com/eriklindernoren/PyTorch-YOLOv3.git && cd ./PyTorch-YOLOv3/weights && ./download_weights.sh
3126

32-
RUN cd /tmp/ && git clone https://github.com/eriklindernoren/PyTorch-YOLOv3.git
33-
RUN cd PyTorch-YOLOv3/weights && ./download_weights.sh
27+
CMD ["/bin/bash"]

codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ coverage:
2121
project:
2222
default:
2323
# basic
24-
target: 90
24+
target: 83
2525
threshold: 0
2626
base: auto
2727
flags: null

0 commit comments

Comments
 (0)