Skip to content

Commit

Permalink
feat: aaarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed Nov 30, 2024
1 parent 0d552ed commit 7819f8b
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 18 deletions.
64 changes: 46 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,36 @@ name: docker-release

on:
schedule:
- cron: '0 0 1 * *'
- cron: "0 0 1 * *"
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: gaoshi/ipynb-inaseg:nightly

docker-gpu:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -57,11 +51,45 @@ jobs:
large-packages: true
docker-images: false
swap-storage: false

-
name: Build and push

- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: gaoshi/ipynb-inaseg:nightly-gpu
file: ./Dockerfile-gpu

docker-aarch64:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: false
swap-storage: false

- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: gaoshi/ipynb-inaseg:nightly-aarch64
file: ./Dockerfile-aarch64
13 changes: 13 additions & 0 deletions Dockerfile-aarch64
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM armswdev/tensorflow-arm-neoverse:r24.07-tf-2.16.1-eigen
RUN sudo groupmod -g 1001 ubuntu
RUN sudo usermod -u 1001 -g 1001 ubuntu
RUN sudo apt-get update --allow-insecure-repositories
RUN sudo apt-get -y --allow-unauthenticated install ffmpeg aria2 wget nano git
WORKDIR /inaseg
RUN git clone https://github.com/lovegaoshi/inaSpeechSegmenter.git
RUN cd inaSpeechSegmenter; pip install .
COPY ./requirements.txt /inaseg/requirements.txt
RUN pip3 install -r /inaseg/requirements.txt
RUN pip3 install --force-reinstall git+https://github.com/grqz/yt-dlp.git@ie/bilibili/pi_fallbk
COPY . /inaseg
RUN python /inaseg/initialize.py

0 comments on commit 7819f8b

Please sign in to comment.