mirror of
https://github.com/superlinear-ai/python-gpu.git
synced 2025-03-26 03:37:17 +03:00
feat: upgrade dependencies (#17)
This commit is contained in:
15
.github/dependabot.yml
vendored
15
.github/dependabot.yml
vendored
@@ -9,14 +9,7 @@ updates:
|
||||
prefix: "ci"
|
||||
prefix-development: "ci"
|
||||
include: "scope"
|
||||
- package-ecosystem: pip
|
||||
directory: /
|
||||
schedule:
|
||||
interval: monthly
|
||||
commit-message:
|
||||
prefix: "build"
|
||||
prefix-development: "build"
|
||||
include: "scope"
|
||||
versioning-strategy: lockfile-only
|
||||
allow:
|
||||
- dependency-type: "all"
|
||||
groups:
|
||||
ci-dependencies:
|
||||
patterns:
|
||||
- "*"
|
||||
|
||||
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@@ -17,22 +17,22 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v4
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
build-args: |
|
||||
"PYTHON_VERSION=${{ matrix.python-version }}"
|
||||
|
||||
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -15,22 +15,22 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4docker/setup-buildx-action@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build Docker image
|
||||
uses: docker/build-push-action@v4
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
build-args: |
|
||||
"PYTHON_VERSION=${{ matrix.python-version }}"
|
||||
|
||||
@@ -16,7 +16,7 @@ RUN MICROMAMBA_ARCH=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "64"
|
||||
|
||||
# Install CUDA and cuDNN.
|
||||
ARG CUDA_VERSION=11.8
|
||||
ARG CUDNN_VERSION=8.8
|
||||
ARG CUDNN_VERSION=8.9
|
||||
RUN micromamba create --prefix /opt/cuda/ --channel conda-forge --yes cudatoolkit="$CUDA_VERSION" cudnn="$CUDNN_VERSION" && \
|
||||
micromamba clean --all --force-pkgs-dirs --yes
|
||||
ENV LD_LIBRARY_PATH=/opt/cuda/lib:$LD_LIBRARY_PATH
|
||||
|
||||
@@ -8,7 +8,7 @@ A minimal CUDA and cuDNN install on top of the official `python:3.x-slim` base i
|
||||
|
||||
- ✅ Starts from the official `python:3.x-slim` base image
|
||||
- 🐍 Adds a single `micromamba` executable to install CUDA and cuDNN
|
||||
- 🧬 Matrix build for Python {3.8, 3.9, 3.10, 3.11} and CUDA {11.8}
|
||||
- 🧬 Matrix build for Python {3.8, 3.9, 3.10, 3.11}, CUDA {11.8}, and cuDNN {8.9}
|
||||
- 📦 Multi-platform build for `linux/amd64` and `linux/arm64`
|
||||
- 🐭 Image size is only 1.8GB
|
||||
|
||||
|
||||
Reference in New Issue
Block a user