Skip to content

Commit

Permalink
comment out data export build from CI and docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Dec 16, 2024
1 parent 4ee3dbf commit 6c1abea
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 27 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
- name: check formatting
run: mvn spotless:check

- name: Initialize and build submodules
run: |
cd dataexport
mvn clean install
cd ..
# - name: Initialize and build submodules
# run: |
# cd dataexport
# mvn clean install
# cd ..

- name: Build OpenELIS-Global2
run: mvn clean install -Dspotless.check.skip=true
Expand Down
25 changes: 14 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,21 @@ RUN ./install/createDefaultPassword.sh -c -p ${DEFAULT_PW}
##
# Build DataExport
#
COPY ./dataexport /build/dataexport
WORKDIR /build/dataexport/dataexport-core
RUN --mount=type=cache,target=/root/.m2,sharing=locked \
mvn dependency:go-offline
RUN --mount=type=cache,target=/root/.m2,sharing=locked \
mvn clean install -DskipTests
WORKDIR /build/dataexport/
RUN --mount=type=cache,target=/root/.m2,sharing=locked \
mvn dependency:go-offline
RUN --mount=type=cache,target=/root/.m2,sharing=locked \
mvn clean install -DskipTests
# COPY ./dataexport /build/dataexport
# WORKDIR /build/dataexport/dataexport-core
# RUN --mount=type=cache,target=/root/.m2,sharing=locked \
# mvn dependency:go-offline
# RUN --mount=type=cache,target=/root/.m2,sharing=locked \
# mvn clean install -DskipTests
# WORKDIR /build/dataexport/
# RUN --mount=type=cache,target=/root/.m2,sharing=locked \
# mvn dependency:go-offline
# RUN --mount=type=cache,target=/root/.m2,sharing=locked \
# mvn clean install -DskipTests

##
# Build the Project
#
WORKDIR /build

COPY ./pom.xml /build/pom.xml
Expand Down
25 changes: 14 additions & 11 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
ADD ./pom.xml /build/pom.xml
ADD ./tools /build/tools
ADD ./src /build/src
ADD ./dataexport /build/dataexport
# ADD ./dataexport /build/dataexport

WORKDIR /build

Expand All @@ -28,17 +28,20 @@ RUN ./install/createDefaultPassword.sh -c -p ${DEFAULT_PW}
##
# Build DataExport
#
WORKDIR /build/dataexport/dataexport-core
RUN --mount=type=cache,target=/root/.m2,sharing=locked \
mvn dependency:go-offline
RUN --mount=type=cache,target=/root/.m2,sharing=locked \
mvn clean install -DskipTests
WORKDIR /build/dataexport/
RUN --mount=type=cache,target=/root/.m2,sharing=locked \
mvn dependency:go-offline
RUN --mount=type=cache,target=/root/.m2,sharing=locked \
mvn clean install -DskipTests
# WORKDIR /build/dataexport/dataexport-core
# RUN --mount=type=cache,target=/root/.m2,sharing=locked \
# mvn dependency:go-offline
# RUN --mount=type=cache,target=/root/.m2,sharing=locked \
# mvn clean install -DskipTests
# WORKDIR /build/dataexport/
# RUN --mount=type=cache,target=/root/.m2,sharing=locked \
# mvn dependency:go-offline
# RUN --mount=type=cache,target=/root/.m2,sharing=locked \
# mvn clean install -DskipTests

##
# Build the Project
#
WORKDIR /build

RUN --mount=type=cache,target=/root/.m2,sharing=locked \
Expand Down

0 comments on commit 6c1abea

Please sign in to comment.