Skip to content

Commit

Permalink
fix: failed to build image
Browse files Browse the repository at this point in the history
Signed-off-by: chenyufeifei <[email protected]>
  • Loading branch information
chenyufeifei committed Nov 15, 2023
1 parent ed3945c commit 979dba3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -70,3 +86,4 @@ jobs:
ghcr.io/${{ env.IMAGE_REPOSITORY }}:${{ steps.get_version.outputs.VERSION }}
push:
true

12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 979dba3

Please sign in to comment.