-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: CMakeLists.txt to treat sample apps as binary runtime targets
FIX: CMakeLists.txt to treat sample apps as binary runtime targets ADD: `_build` and `_install` directories to `.dockerignore` FIX: SDK build.sh script to work as intended Minor code adjustments Signed-off-by: Milosz Linkiewicz <[email protected]>
- Loading branch information
Showing
13 changed files
with
91 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# .dockerignore | ||
|
||
_build | ||
_install | ||
docs/_build/* | ||
build | ||
out/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,17 +39,8 @@ jobs: | |
with: | ||
ref: ${{ inputs.branch }} | ||
|
||
- name: 'Install dependencies' | ||
run: | | ||
sudo apt-get update -y && \ | ||
sudo apt-get install -y --no-install-recommends \ | ||
git build-essential meson python3 python3-pyelftools pkg-config \ | ||
libnuma-dev libjson-c-dev libpcap-dev libgtest-dev libsdl2-dev \ | ||
libsdl2-ttf-dev libssl-dev ca-certificates m4 clang llvm zlib1g-dev \ | ||
libelf-dev libcap-ng-dev libcap2-bin gcc-multilib systemtap-sdt-dev ninja-build \ | ||
nasm dpdk-dev librdmacm-dev && \ | ||
sudo apt-get clean && \ | ||
sudo rm -rf /var/lib/apt/lists/* | ||
- name: 'Install OS level dependencies' | ||
run: eval 'source scripts/setup_build_env.sh && install_package_dependencies' | ||
|
||
- name: 'Build and Install xdp and libbpf' | ||
run: | | ||
|
@@ -102,10 +93,7 @@ jobs: | |
|
||
- name: 'Patch and configure MCM FFmpeg plugin' | ||
working-directory: ${{ github.workspace }}/ffmpeg-plugin | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Milosz Linkiewicz" | ||
./clone-and-patch-ffmpeg.sh | ||
run: ./clone-and-patch-ffmpeg.sh | ||
|
||
- name: 'Run coverity' | ||
uses: vapier/coverity-scan-action@2068473c7bdf8c2fb984a6a40ae76ee7facd7a85 # v1.8.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,19 @@ SHELL ["/bin/bash", "-exo", "pipefail", "-c"] | |
RUN apt-get update && \ | ||
apt-get full-upgrade -y && \ | ||
apt-get install --no-install-recommends -y \ | ||
sudo apt-utils build-essential make cmake git ca-certificates pkg-config nasm libbsd-dev libx264-dev && \ | ||
build-essential \ | ||
ca-certificates \ | ||
libbsd-dev \ | ||
libx264-dev \ | ||
pkg-config \ | ||
apt-utils \ | ||
sudo \ | ||
make \ | ||
cmake \ | ||
git \ | ||
nasm \ | ||
curl \ | ||
tar && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
mkdir -p "${GRPC_DIR}" && \ | ||
|
@@ -35,9 +47,7 @@ RUN cmake -DgRPC_BUILD_TESTS=OFF -DgRPC_INSTALL=ON ../.. && \ | |
|
||
COPY . ${MCM_DIR} | ||
WORKDIR ${MCM_DIR} | ||
RUN git config --global user.email "[email protected]" && \ | ||
git config --global user.name "Intel" && \ | ||
./sdk/build.sh && \ | ||
RUN ./sdk/build.sh && \ | ||
INSTALL_PREFIX="${PREFIX_DIR}/usr/local" ./sdk/build.sh && \ | ||
./ffmpeg-plugin/clone-and-patch-ffmpeg.sh && \ | ||
./ffmpeg-plugin/configure-ffmpeg.sh --enable-libx264 --enable-gpl --prefix="${PREFIX_DIR}/usr/local" | ||
|
@@ -67,7 +77,11 @@ SHELL ["/bin/bash", "-exc"] | |
RUN apt-get update && \ | ||
apt-get full-upgrade -y && \ | ||
apt-get install --no-install-recommends -y \ | ||
libbsd0 vim net-tools ca-certificates sudo libx264-163 && \ | ||
ca-certificates \ | ||
vim net-tools \ | ||
libx264-163 \ | ||
libbsd0 \ | ||
sudo && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
groupadd -g 2110 vfio && \ | ||
|
@@ -76,9 +90,6 @@ RUN apt-get update && \ | |
usermod -aG sudo mcm | ||
|
||
COPY --chown=mcm --from=builder "${PREFIX_DIR}" / | ||
COPY --chown=mcm --chmod=755 --from=builder "${MCM_DIR}/sdk/build/samples/recver_app" "${MCM_DIR}/recver_app" | ||
COPY --chown=mcm --chmod=755 --from=builder "${MCM_DIR}/sdk/build/samples/sender_app" "${MCM_DIR}/sender_app" | ||
|
||
RUN ldconfig | ||
|
||
USER mcm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters