Skip to content

Commit 607f84c

Browse files
committed
Change Docker building context to main DLS directory
1 parent 92a5cb5 commit 607f84c

7 files changed

Lines changed: 19 additions & 18 deletions

File tree

.github/workflows/dls-build-deb-packages-and-images.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@ jobs:
3939
echo "No deb package found."
4040
exit 1
4141
fi
42-
42+
4343
- name: Build deb img
4444
run: |
45-
docker build -t dls-img/${{ github.repository }}/deb-${{ matrix.ubuntu_version }}:${{ github.sha }} -f ./edge-ai-libraries-repo/libraries/dl-streamer/docker/onebinary/${{ matrix.ubuntu_version }}/dlstreamer_${{ matrix.ubuntu_version }}.Dockerfile .
45+
docker build -t dls-img/${{ github.repository }}/deb-${{ matrix.ubuntu_version }}:${{ github.sha }} -f ./edge-ai-libraries-repo/libraries/dl-streamer/docker/onebinary/${{ matrix.ubuntu_version }}/dlstreamer_${{ matrix.ubuntu_version }}.Dockerfile ./edge-ai-libraries-repo/libraries/dl-streamer
4646
4747
- name: Clean up
4848
if: always()
4949
run: |
5050
rm -rf edge-ai-libraries-repo
5151
docker rmi dls-img/${{ github.repository }}/deb-${{ matrix.ubuntu_version }}:${{ github.sha }} || true
52-

.github/workflows/dls-build-dev-docker-images.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
- name: Build dev img
3131
run: |
32-
docker build -t dls-img/${{ github.repository }}/${{ matrix.image }}:${{ github.sha }} -f ${{ matrix.path }} .
32+
docker build -t dls-img/${{ github.repository }}/${{ matrix.image }}:${{ github.sha }} -f ${{ matrix.path }} ./edge-ai-libraries-repo/libraries/dl-streamer
3333
3434
- name: Clean up
3535
if: always()

.github/workflows/dls-build-weekly-deb-image.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
echo "No deb package found."
4545
exit 1
4646
fi
47-
47+
4848
- name: Log in to GitHub Container Registry
4949
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #3.4.0
5050
with:
@@ -54,7 +54,7 @@ jobs:
5454

5555
- name: Build deb img
5656
run: |
57-
docker build -t ghcr.io/${{ github.repository }}/dls-deb-${{ matrix.ubuntu_version }}:dls-latest -f ./edge-ai-libraries-repo/libraries/dl-streamer/docker/onebinary/${{ matrix.ubuntu_version }}/dlstreamer_${{ matrix.ubuntu_version }}.Dockerfile .
57+
docker build -t ghcr.io/${{ github.repository }}/dls-deb-${{ matrix.ubuntu_version }}:dls-latest -f ./edge-ai-libraries-repo/libraries/dl-streamer/docker/onebinary/${{ matrix.ubuntu_version }}/dlstreamer_${{ matrix.ubuntu_version }}.Dockerfile ./edge-ai-libraries-repo/libraries/dl-streamer
5858
5959
- name: Push Docker img
6060
run: |

libraries/dl-streamer/docker/devel/ubuntu22/dlstreamer_dev_ubuntu22.Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ ENV GST_VA_ALL_DRIVERS=1
2525

2626
SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
2727

28+
COPY scripts/DLS_install_prerequisites.sh /DLS_install_prerequisites.sh
29+
2830
RUN \
31+
chmod +x /DLS_install_prerequisites.sh && \
32+
/DLS_install_prerequisites.sh --on-host-or-docker=docker_ubuntu22 && \
33+
rm -f /DLS_install_prerequisites.sh && \
2934
apt-get update && \
3035
apt-get install -y -q --no-install-recommends wget=\* xz-utils=\* python3-pip=\* python3-gi=\* gcc-multilib=\* libglib2.0-dev=\* \
3136
flex=\* bison=\* autoconf=\* automake=\* libtool=\* libogg-dev=\* make=\* g++=\* libva-dev=\* yasm=\* libglx-dev=\* libdrm-dev=\* \
@@ -34,10 +39,6 @@ RUN \
3439
libcairo2-dev=\* libxt-dev=\* libgirepository1.0-dev=\* libgles2-mesa-dev=\* wayland-protocols=\* libcurl4-openssl-dev=\* \
3540
libssh2-1-dev=\* cmake=\* git=\* valgrind=\* numactl=\* libvpx-dev=\* libopus-dev=\* libsrtp2-dev=\* libxv-dev=\* \
3641
linux-libc-dev=\* libpmix2=\* libhwloc15=\* libhwloc-plugins=\* libxcb1-dev=\* libx11-xcb-dev=\* && \
37-
wget -q https://raw.githubusercontent.com/open-edge-platform/edge-ai-libraries/main/libraries/dl-streamer/scripts/DLS_install_prerequisites.sh && \
38-
chmod +x DLS_install_prerequisites.sh && \
39-
./DLS_install_prerequisites.sh --on-host-or-docker=docker_ubuntu22 && \
40-
rm -f DLS_install_prerequisites.sh && \
4142
apt-get clean && \
4243
rm -rf /var/lib/apt/lists/*
4344

@@ -258,7 +259,7 @@ RUN \
258259
# Intel® DL Streamer
259260
WORKDIR "$DLSTREAMER_DIR"
260261

261-
COPY edge-ai-libraries-repo/libraries/dl-streamer/ "${DLSTREAMER_DIR}"
262+
COPY . "${DLSTREAMER_DIR}"
262263

263264
RUN \
264265
mkdir build && \

libraries/dl-streamer/docker/devel/ubuntu24/dlstreamer_dev_ubuntu24.Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
2727

2828
RUN userdel -r ubuntu
2929

30+
COPY scripts/DLS_install_prerequisites.sh /DLS_install_prerequisites.sh
31+
3032
RUN \
33+
chmod +x /DLS_install_prerequisites.sh && \
34+
/DLS_install_prerequisites.sh --on-host-or-docker=docker_ubuntu24 && \
35+
rm -f /DLS_install_prerequisites.sh && \
3136
apt-get update && \
3237
apt-get install -y -q --no-install-recommends wget=\* xz-utils=\* python3-pip=\* python3-gi=\* gcc-multilib=\* libglib2.0-dev=\* \
3338
flex=\* bison=\* autoconf=\* automake=\* libtool=\* libogg-dev=\* make=\* g++=\* libva-dev=\* yasm=\* libglx-dev=\* libdrm-dev=\* \
@@ -36,10 +41,6 @@ RUN \
3641
libcairo2-dev=\* libxt-dev=\* libgirepository1.0-dev=\* libgles2-mesa-dev=\* wayland-protocols=\* libcurl4-openssl-dev=\* \
3742
libssh2-1-dev=\* cmake=\* git=\* valgrind=\* numactl=\* libvpx-dev=\* libopus-dev=\* libsrtp2-dev=\* libxv-dev=\* \
3843
linux-libc-dev=\* libpmix2t64=\* libhwloc15=\* libhwloc-plugins=\* libxcb1-dev=\* libx11-xcb-dev=\* && \
39-
wget -q https://raw.githubusercontent.com/open-edge-platform/edge-ai-libraries/main/libraries/dl-streamer/scripts/DLS_install_prerequisites.sh && \
40-
chmod +x DLS_install_prerequisites.sh && \
41-
./DLS_install_prerequisites.sh --on-host-or-docker=docker_ubuntu24 && \
42-
rm -f DLS_install_prerequisites.sh && \
4344
apt-get clean && \
4445
rm -rf /var/lib/apt/lists/*
4546

@@ -245,7 +246,7 @@ RUN \
245246
# Intel® DL Streamer
246247
WORKDIR "$DLSTREAMER_DIR"
247248

248-
COPY edge-ai-libraries-repo/libraries/dl-streamer/ "${DLSTREAMER_DIR}"
249+
COPY . "${DLSTREAMER_DIR}"
249250

250251
RUN \
251252
mkdir build && \

libraries/dl-streamer/docker/onebinary/ubuntu22/dlstreamer_ubuntu22.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN \
2525
apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
2626

2727
RUN mkdir -p /debs
28-
COPY edge-ai-libraries-repo/libraries/dl-streamer/deb_packages/*.deb /debs/
28+
COPY ./deb_packages/*.deb /debs/
2929

3030
ARG DEBIAN_FRONTEND=noninteractive
3131

libraries/dl-streamer/docker/onebinary/ubuntu24/dlstreamer_ubuntu24.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN \
2525
apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
2626

2727
RUN mkdir -p /debs
28-
COPY edge-ai-libraries-repo/libraries/dl-streamer/deb_packages/*.deb /debs/
28+
COPY ./deb_packages/*.deb /debs/
2929

3030
ARG DEBIAN_FRONTEND=noninteractive
3131

0 commit comments

Comments
 (0)