From 979dba355686a3febe661c7e58b39fdd82fbc08f Mon Sep 17 00:00:00 2001 From: chenyufeifei Date: Wed, 15 Nov 2023 11:12:23 +0800 Subject: [PATCH] fix: failed to build image Signed-off-by: chenyufeifei --- .github/workflows/docker.yml | 17 +++++++++++++++++ Dockerfile | 12 +++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ec73c1c..dcb681b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -53,6 +53,22 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: false + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true + - name: Push to Registry uses: docker/build-push-action@v5 with: @@ -70,3 +86,4 @@ jobs: ghcr.io/${{ env.IMAGE_REPOSITORY }}:${{ steps.get_version.outputs.VERSION }} push: true + diff --git a/Dockerfile b/Dockerfile index 9bd74b8..1888e25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,11 +14,12 @@ RUN apt-get update && apt-get install -y \ RUN git clone https://github.com/Microsoft/vcpkg.git /vcpkg \ && /vcpkg/bootstrap-vcpkg.sh -RUN /vcpkg/vcpkg install re2 \ - && /vcpkg/vcpkg install aws-sdk-cpp \ - && /vcpkg/vcpkg install google-cloud-cpp[storage] \ - && /vcpkg/vcpkg install azure-storage-blobs-cpp \ - && /vcpkg/vcpkg install rapidjson +RUN /vcpkg/vcpkg install re2 +RUN /vcpkg/vcpkg install grpc +RUN /vcpkg/vcpkg install aws-sdk-cpp +RUN /vcpkg/vcpkg install google-cloud-cpp[storage] +RUN /vcpkg/vcpkg install azure-storage-blobs-cpp +RUN /vcpkg/vcpkg install rapidjson RUN mkdir -p /dragonfly-repository-agent/build @@ -49,3 +50,4 @@ EXPOSE 8001 EXPOSE 8002 COPY --from=builder /dragonfly-repository-agent/build/libtritonrepoagent_dragonfly.so /opt/tritonserver/repoagents/dragonfly/libtritonrepoagent_dragonfly.so +