forked from IntelLabs/vdms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dockerfiles to Debian base image (IntelLabs#120)
- Loading branch information
Showing
16 changed files
with
287 additions
and
386 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,16 +1,24 @@ | ||
certifi==2019.11.28 | ||
chardet==3.0.4 | ||
coverage==7.2.3 | ||
Cython==0.29.34 | ||
blinker==1.6.2 | ||
click==8.1.5 | ||
dbus-python==1.2.16 | ||
Flask==2.3.2 | ||
grpcio==1.40.0 | ||
grpcio-tools==1.40.0 | ||
idna==2.8 | ||
numpy==1.24.2 | ||
importlib-metadata==6.8.0 | ||
imutils==0.5.4 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.1.2 | ||
MarkupSafe==2.1.3 | ||
numpy==1.25.1 | ||
opencv-python==4.5.5.64 | ||
protobuf==3.20.3 | ||
PyGObject==3.36.0 | ||
python-apt==2.0.1+ubuntu0.20.4.1 | ||
requests==2.22.0 | ||
requests-unixsocket==0.2.0 | ||
six==1.14.0 | ||
urllib3==1.25.8 | ||
pycurl==7.43.0.6 | ||
PyGObject==3.38.0 | ||
python-apt==2.2.1 | ||
pyzmq==25.1.0 | ||
scipy==1.11.1 | ||
six==1.16.0 | ||
sk-video==1.1.10 | ||
Werkzeug==2.3.6 | ||
zipp==3.16.1 | ||
zmq==0.0.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,12 +64,8 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- if: matrix.coverage_type == 'Source' | ||
name: Format C++ Code (clang-format) | ||
run: find "${PWD}" -type f -not -path "${PWD}/src/pmgd/*" -not -path "${PWD}/build/*" -regex '.*\.\(cc\|cpp\|h\|hpp\)' | xargs clang-format -i || true | ||
|
||
- if: matrix.coverage_type == 'Source' | ||
name: Format Python Code (black code) | ||
uses: DataDog/[email protected] | ||
name: Format C++ Code (clang-format) and Python (black code) | ||
run: ./.github/workflows/auto-formatter.sh | ||
|
||
- if: matrix.coverage_type == 'Source' | ||
name: Check for modified files | ||
|
@@ -79,15 +75,13 @@ jobs: | |
echo "modify_source=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)" >> $GITHUB_OUTPUT | ||
echo "added_modified=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} HEAD -- . ':!.github' ':!docker'| xargs)" >> $GITHUB_OUTPUT | ||
- name: Build and Run Docker Container | ||
- name: Build Docker Container | ||
run: | | ||
set -x | ||
docker stop $(docker ps -aqf "name=${{ matrix.container_name }}") || true | ||
docker rm $(docker ps -aqf "name=${{ matrix.container_name }}") || true | ||
docker stop $(docker ps -aqf "name=${{ matrix.container_name }}") | xargs docker rm || true | ||
docker build --rm -f docker/check-in/Dockerfile -t ${{ matrix.container_tag }} . | ||
# docker run --rm -d -v ${PWD}:/local_repo --name ${{ matrix.container_name }} ${{ matrix.container_tag }} | ||
docker build --rm --build-arg="BUILD_COVERAGE=on" --build-arg="BUILD_COVERITY=on" -f docker/check-in/Dockerfile -t ${{ matrix.container_tag }} . | ||
- if: matrix.coverage_type == 'Source' && steps.git_check.outputs.added_modified | ||
uses: ./.github/actions/coverity-incremental-scan | ||
|
@@ -105,11 +99,10 @@ jobs: | |
run: | | ||
set -x | ||
mkdir -p coverage | ||
echo "${{ matrix.container_name }}" | ||
docker run --rm -d -v ${PWD}:/local_repo --name ${{ matrix.container_name }} \ | ||
--env AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \ | ||
--env AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \ | ||
${{ matrix.container_tag }} | ||
--env AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} ${{ matrix.container_tag }} | ||
docker exec ${{ matrix.container_name }} bash -c "cd / && ./run_coverage_cpp.sh && cd / && ./run_coverage_py.sh" | ||
|
@@ -148,7 +141,8 @@ jobs: | |
run: | | ||
rm -rf ${GITHUB_WORKSPACE}/.git* ${GITHUB_ACTION_REPOSITORY} || true | ||
rm -rf /tmp/tmp-* ${{ env.ARTIFACT_DIR }} ${GITHUB_WORKSPACE}/* || true | ||
docker ps -aqf "name=${{ matrix.container_name }}" | xargs docker stop || true | ||
docker stop $(docker ps -aqf "name=${{ matrix.container_name }}") | xargs docker rm || true | ||
docker rmi $(docker images | grep '<none>' | awk '{print $3}') || true | ||
compare_coverage: | ||
|
@@ -209,10 +203,7 @@ jobs: | |
token: ${{ secrets.FACELESS_TOKEN || github.token }} | ||
|
||
- if: needs.coverage_job.outputs.modify_source == 'true' | ||
run: find "${PWD}" -type f -not -path "${PWD}/src/pmgd/*" -not -path "${PWD}/build/*" -regex '.*\.\(cc\|cpp\|h\|hpp\)' | xargs clang-format -i || true | ||
|
||
- if: needs.coverage_job.outputs.modify_source == 'true' | ||
uses: DataDog/[email protected] | ||
run: ./.github/workflows/auto-formatter.sh | ||
|
||
# Update Code and Push (Should be last steps of workflow since it changes commit) | ||
- if: needs.coverage_job.outputs.modify_source == 'true' | ||
|
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
Oops, something went wrong.