Skip to content

Commit 3ffc523

Browse files
committed
test3
Signed-off-by: ZePan110 <ze.pan@intel.com>
1 parent 21a8aa6 commit 3ffc523

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/pr-image-size.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,20 @@ jobs:
5555
image_pr="pr-image-size-pr:$(echo $dir | tr '/' '-')"
5656
cd $dir
5757
echo "Building base image for $dockerfile"
58-
git checkout origin/${{ github.base_ref }}
58+
echo "Base: ${{ github.event.pull_request.base.sha }}"
59+
git checkout ${{ github.event.pull_request.base.sha }}
60+
echo "::group::Build image_base"
5961
docker build -f "$file" -t "$image_base" --no-cache .
62+
echo "::endgroup::"
6063
cat $file
6164
size_base=$(docker image inspect "$image_base" | jq '.[0].Size / (1024 * 1024) | round')
6265
6366
echo "Building PR image for $dockerfile"
6467
git checkout $merged_commit
68+
echo "PR: $merged_commit"
69+
echo "::group::Build image_pr"
6570
docker build -f "$file" -t "$image_pr" --no-cache .
71+
echo "::endgroup::"
6672
cat $file
6773
size_pr=$(docker image inspect "$image_pr" | jq '.[0].Size / (1024 * 1024) | round')
6874

SearchQnA/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
ARG IMAGE_REPO=opea
55
ARG BASE_TAG=latest
66
FROM $IMAGE_REPO/comps-base:$BASE_TAG
7-
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
8-
git
9-
RUN git clone https://github.com/opea-project/GenAIExamples
7+
USER root
8+
# FFmpeg needed for media processing
9+
RUN apt-get update && \
10+
apt-get install -y --no-install-recommends ffmpeg && \
11+
apt-get clean && rm -rf /var/lib/apt/lists/*
12+
USER user
1013
COPY ./searchqna.py $HOME/searchqna.py
1114

1215
ENTRYPOINT ["python", "searchqna.py"]

0 commit comments

Comments
 (0)