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 release docker #68

Closed
wants to merge 24 commits into from
Closed
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
12 changes: 8 additions & 4 deletions .github/workflows/ci-build-release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Build release

on:
workflow_dispatch:
push:
branches:
- main
- master
tags:
- 'v*'

pull_request:
branches: [ main ]

concurrency:
group: docker
cancel-in-progress: true
Expand Down Expand Up @@ -33,8 +37,8 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
format: jacoco


docker-build:
needs: [build]
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
## allocate all available GPUs (only Linux with proper nvidia driver installed on host machine):
## docker run --rm --gpus all --init -p 8072:8072 -p 8073:8073 -v grobid.yaml:/opt/grobid/grobid-home/config/grobid.yaml:ro lfoppiano/grobid-superconductors:0.3.0-SNAPSHOT

## Transformers selection:
## Transformers selection:
# --build-arg TRANSFORMERS_MODEL=mattpuscibert
# --build-arg TRANSFORMERS_MODEL=batteryonlybert (currently disabled)
# --build-arg TRANSFORMERS_MODEL=batteryonlybert (currently disabled)


# -------------------
Expand All @@ -26,7 +26,7 @@ FROM openjdk:17-jdk-slim as builder
USER root

RUN apt-get update && \
apt-get -y --no-install-recommends install apt-utils libxml2 git unzip
apt-get -y --no-install-recommends install apt-utils libxml2 git unzip

WORKDIR /opt/grobid-source

Expand Down Expand Up @@ -105,7 +105,7 @@ ENV CDE_URL "http://cde.local:8080"

EXPOSE 8072 8073

# RUN if [ ! -f "grobid-superconductors/grobid-superconductors-${GROBID_VERSION}-onejar.jar" ]; then mv grobid-superconductors/grobid-superconductors-*-onejar.jar grobid-superconductors/grobid-superconductors-${GROBID_VERSION}-onejar.jar; fi
# RUN if [ ! -f "grobid-superconductors/grobid-superconductors-${GROBID_VERSION}-onejar.jar" ]; then mv grobid-superconductors/grobid-superconductors-*-onejar.jar grobid-superconductors/grobid-superconductors-${GROBID_VERSION}-onejar.jar; fi

#RUN if [ "${!GROBID_VERSION}" = "unknown" ] ; then GROBID_VERSION=`ls grobid-superconductors/grobid-superconductors-*onejar.jar | grep -oE '[0-9]\.[0-9]\.[0-9](-SNAPSHOT)?' | head -n 1`; fi

Expand Down
Loading