Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker build on Github Actions #172

Merged
merged 7 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,19 @@ jobs:
runs-on: ubuntu-latest

steps:
# - name: Maximize build disk space
# uses: easimon/maximize-build-space@v10
# with:
# root-reserve-mb: 512
# swap-size-mb: 1024
# remove-dotnet: 'true'
- name: Create more disk space
run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf /opt/hostedtoolcache
- uses: actions/checkout@v4
- name: Build and push
id: docker_build
Expand All @@ -51,4 +62,4 @@ jobs:
pushImage: ${{ github.event_name != 'pull_request' }}
tags: latest-develop
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
run: echo ${{ steps.docker_build.outputs.digest }}
9 changes: 4 additions & 5 deletions .github/workflows/ci-integration-manual.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Run integration tests manually

on:
- workflow_dispatch
- push:
branches:
- master

push:
branches:
- master
workflow_dispatch:

jobs:
build:
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ RUN ./gradlew downloadTransformers --no-daemon --info --stacktrace && rm -f /opt
WORKDIR /opt/grobid-source
RUN unzip -o /opt/grobid-source/grobid-quantities-source/build/distributions/grobid-quantities-*.zip -d grobid-quantities_distribution && mv grobid-quantities_distribution/grobid-quantities-* grobid-quantities

# Cleanup
RUN rm -rf grobid-quantities-source/.git
RUN rm -rf grobid-quantities-source/build

WORKDIR /opt

# -------------------
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ RUN ./gradlew downloadTransformers --no-daemon --info --stacktrace && rm -f /opt
WORKDIR /opt/grobid
RUN unzip -o /opt/grobid/grobid-quantities-source/build/distributions/grobid-quantities-*.zip -d grobid-quantities_distribution && mv grobid-quantities_distribution/grobid-quantities-* grobid-quantities

# Cleanup
RUN rm -rf grobid-quantities-source/.git
RUN rm -rf grobid-quantities-source/build

WORKDIR /opt

# -------------------
Expand Down