Skip to content

Commit 06b3666

Browse files
authored
Merge branch 'master' into bump/py-3.12
2 parents 5d53214 + 18c3ea9 commit 06b3666

File tree

8 files changed

+24
-25
lines changed

8 files changed

+24
-25
lines changed

.github/workflows/code-format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616

1717
- name: set PY
1818
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
19-
- uses: actions/cache@v3
19+
- uses: actions/cache@v4
2020
with:
2121
path: ~/.cache/pre-commit
2222
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
2323

24-
- uses: pre-commit/action@v3.0.0
24+
- uses: pre-commit/action@v3.0.1
2525
# this action also provides an additional behaviour when used in private repositories
2626
# when configured with a github token, the action will push back fixes to the pull request branch
2727
#with:

.github/workflows/docker-builds.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
matrix:
2020
ubuntu_version: ["20.04"]
2121
python_version: ["2.7", "3.6", "3.7", "3.8", "3.9"]
22-
opencv_version: ["4.9.0"]
22+
opencv_version: ["4.10.0"]
2323
device: ["cpu", "gpu"]
2424
include:
25-
- { ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.9.0", device: "cpu" }
26-
- { ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.9.0", device: "gpu" }
27-
- { ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.9.0", device: "cpu" }
28-
- { ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.9.0", device: "gpu" }
29-
- { ubuntu_version: "22.04", python_version: "3.12", opencv_version: "4.9.0", device: "cpu" }
30-
- { ubuntu_version: "22.04", python_version: "3.12", opencv_version: "4.9.0", device: "gpu" }
25+
- { ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.10.0", device: "cpu" }
26+
- { ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.10.0", device: "gpu" }
27+
- { ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.10.0", device: "cpu" }
28+
- { ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.10.0", device: "gpu" }
29+
- { ubuntu_version: "22.04", python_version: "3.12", opencv_version: "4.10.0", device: "cpu" }
30+
- { ubuntu_version: "22.04", python_version: "3.12", opencv_version: "4.10.0", device: "gpu" }
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v4
@@ -40,7 +40,7 @@ jobs:
4040
with:
4141
username: ${{ secrets.DOCKER_USERNAME }}
4242
password: ${{ secrets.DOCKER_PASSWORD }}
43-
- uses: docker/build-push-action@v5
43+
- uses: docker/build-push-action@v6
4444
# https://github.com/docker/build-push-action#cache-to-registry
4545
with:
4646
build-args: |

.github/workflows/label-conflicts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
triage-conflicts:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: mschilde/auto-label-merge-conflicts@8c6faa8a252e35ba5e15703b3d747bf726cdb95c # Oct 25, 2021
17+
- uses: mschilde/auto-label-merge-conflicts@591722e97f3c4142df3eca156ed0dcf2bcd362bd # Jul 20, 2023
1818
with:
1919
CONFLICT_LABEL_NAME: "has conflicts"
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ repos:
3636
- id: dockerfilelint
3737

3838
- repo: https://github.com/pre-commit/mirrors-prettier
39-
rev: v3.0.3
39+
rev: v3.1.0
4040
hooks:
4141
- id: prettier
42+
files: \.(json|yml|yaml|toml)
4243
# https://prettier.io/docs/en/options.html#print-width
4344
args: ["--print-width=120"]

.prettierignore

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Repository for clean Dockerfile containing [FFmpeg](https://www.ffmpeg.org/), [O
44

55
## Tags
66

7-
- `:cpu-pyX.y-cvX.y.z` for Python 2.x/3.x, OpenCV 4.9.x, FFmpeg
8-
- `:gpu-pyX.y-cvX.y.z` for Python 2.x/3.x, OpenCV 4.9.x, FFmpeg with CUDA 11.4 support
7+
- `:cpu-pyX.y-cvX.y.z` for Python 2.x/3.x, OpenCV 4.10.x, FFmpeg
8+
- `:gpu-pyX.y-cvX.y.z` for Python 2.x/3.x, OpenCV 4.10.x, FFmpeg with CUDA 11.4 support
99

1010
## Build
1111

cpu/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# https://www.learnopencv.com/install-opencv3-on-ubuntu/
22
# https://www.osradar.com/how-to-install-opencv-on-ubuntu-20-04/
33

4-
ARG UBUNTU_VERSION=22.04
4+
ARG UBUNTU_VERSION="22.04"
55

66
FROM ubuntu:${UBUNTU_VERSION}
77

88
LABEL maintainer="https://github.com/Borda"
99

10-
ARG PYTHON_VERSION=3.9
11-
ARG OPENCV_VERSION=4.9.0
10+
ARG PYTHON_VERSION="3.9"
11+
ARG OPENCV_VERSION="4.10.0"
1212

1313
# Needed for string substitution
1414
SHELL ["/bin/bash", "-c"]
@@ -41,7 +41,7 @@ RUN \
4141

4242
# install python dependencies
4343
# sysctl -w net.ipv4.ip_forward=1 ; \
44-
if [[ "$PYTHON_VERSION" == "2.7" || "$PYTHON_VERSION" == "3.6" ]]; then \
44+
if [[ "$PYTHON_VERSION" == "2.7" || "$PYTHON_VERSION" == "3.6" || "$PYTHON_VERSION" == "3.7" ]]; then \
4545
PIP_URL="https://bootstrap.pypa.io/pip/$PYTHON_VERSION/get-pip.py" ; \
4646
else \
4747
apt-get -y install --no-install-recommends python${PYTHON_VERSION}-distutils ; \

gpu/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
# CALL: docker image build -t python-opencv-ffmpeg:py36 -f cpu/Dockerfile --build-arg PYTHON_VERSION=3.6 .
77

8-
ARG CUDA_VERSION=11.8.0
9-
ARG UBUNTU_VERSION=22.04
8+
ARG CUDA_VERSION="11.8.0"
9+
ARG UBUNTU_VERSION="22.04"
1010

1111
FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION}
1212

1313
LABEL maintainer="https://github.com/Borda"
1414

15-
ARG PYTHON_VERSION=3.9
16-
ARG OPENCV_VERSION=4.9.0
15+
ARG PYTHON_VERSION="3.9"
16+
ARG OPENCV_VERSION="4.10.0"
1717

1818
# Needed for string substitution
1919
SHELL ["/bin/bash", "-c"]
@@ -47,7 +47,7 @@ RUN \
4747

4848
# install python dependencies
4949
# sysctl -w net.ipv4.ip_forward=1 ; \
50-
if [[ "$PYTHON_VERSION" == "2.7" || "$PYTHON_VERSION" == "3.6" ]]; then \
50+
if [[ "$PYTHON_VERSION" == "2.7" || "$PYTHON_VERSION" == "3.6" || "$PYTHON_VERSION" == "3.7" ]]; then \
5151
PIP_URL="https://bootstrap.pypa.io/pip/$PYTHON_VERSION/get-pip.py" ; \
5252
else \
5353
apt-get -y install --no-install-recommends python${PYTHON_VERSION}-distutils ; \

0 commit comments

Comments
 (0)