Skip to content

Commit 7883a9e

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

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,19 @@ jobs:
5656
cd $dir
5757
echo "Building base image for $dockerfile"
5858
git checkout origin/${{ github.base_ref }}
59+
echo "Base: ${{ github.base_ref }}"
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: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
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
107
COPY ./searchqna.py $HOME/searchqna.py
118

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

0 commit comments

Comments
 (0)