Skip to content

Commit

Permalink
upgraded docker build and github pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrmal committed Sep 11, 2024
1 parent 13441d0 commit 967be48
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 64 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
- info
- warning
- debug
# pull_request: #for debugging purposes
# branches: [ "master" ]
pull_request: #for debugging purposes
branches: [ "master" ]

jobs:
enable_build:
Expand Down Expand Up @@ -94,10 +94,10 @@ jobs:
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
- name: Build and push
run: |
cd docker/debian10-cpu/
docker build --push \
cd docker/debian12-cpu/
docker build \
--tag kaldiasr/kaldi:latest \
--tag kaldiasr/kaldi:cpu-latest \
--tag kaldiasr/kaldi:cpu-debian10 \
--tag kaldiasr/kaldi:cpu-debian10-$(date +%F) .
--tag kaldiasr/kaldi:cpu-debian12 \
--tag kaldiasr/kaldi:cpu-debian12-$(date +%F) .
23 changes: 8 additions & 15 deletions docker/debian10-cpu/Dockerfile → docker/debian12-cpu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM debian:10
LABEL maintainer="[email protected]"
FROM debian:12
LABEL maintainer="[email protected]"

RUN apt-get update && \
apt-get install -y --no-install-recommends \
g++ \
gfortran \
make \
automake \
autoconf \
Expand All @@ -13,29 +14,21 @@ RUN apt-get update && \
sox \
libtool \
git \
subversion \
python2.7 \
python3 \
zlib1g-dev \
ca-certificates \
gfortran \
patch \
ffmpeg \
vim && \
python-is-python3 && \
rm -rf /var/lib/apt/lists/*

RUN ln -s /usr/bin/python3 /usr/bin/python

RUN git clone --depth 1 https://github.com/kaldi-asr/kaldi.git /opt/kaldi #EOL
RUN cd /opt/kaldi/tools && \
./extras/install_mkl.sh && \
make -j $(nproc) && \
./extras/install_openblas.sh && \
make -j 5 && \
cd /opt/kaldi/src && \
./configure --shared && \
make depend -j $(nproc) && \
make -j $(nproc) && \
find /opt/kaldi -type f \( -name "*.o" -o -name "*.la" -o -name "*.a" \) -exec rm {} \; && \
find /opt/intel -type f -name "*.a" -exec rm {} \; && \
find /opt/intel -type f -regex '.*\(_mc.?\|_mic\|_thread\|_ilp64\)\.so' -exec rm {} \; && \
rm -rf /opt/kaldi/.git
make -j 5

WORKDIR /opt/kaldi/
43 changes: 0 additions & 43 deletions docker/debian9.8-cpu/Dockerfile

This file was deleted.

0 comments on commit 967be48

Please sign in to comment.