best-wire-59738
06/15/2023, 4:36 AM./gradlew build
.
When I tried to build frontend image using the below dockerfile the Image build is getting stuck in the middle at gradle build command and it’s not moving forward. I had check the logs using --debug
mode but didn’t figure out the actual issue. I had also attached the logs for your reference. Could you please help me out with the issue.
docker buildx build . -t datahub --platform=linux/arm64
delightful-ram-75848
06/19/2023, 1:16 AMaloof-gpu-11378
06/20/2023, 5:48 PM./gradlew :datahub-frontend:dist -x test -x yarnTest -x yarnLint --parallel
then move the output zip and load it in using:
mv ./datahub-frontend/build/distributions/datahub-frontend-*.zip datahub-frontend.zip
in CI and then:
COPY ./datahub-frontend.zip /
RUN unzip datahub-frontend.zip && rm datahub-frontend.zip
in the dockerfile. You're loading in a ton of extra stuff into the image and also building the web-react module in your command:
RUN cd datahub-src \
&& ./gradlew :datahub-web-react:build -PuseSystemNode=${USE_SYSTEM_NODE} -x test -x yarnTest -x yarnLint --no-daemon —debug \
&& ./gradlew :datahub-frontend:dist -PreleaseVersion=v0.10.0.6 -PuseSystemNode=${USE_SYSTEM_NODE} -x test -x yarnTest -x yarnLint --no-daemon —debug \
&& cp datahub-frontend/build/distributions/datahub-frontend.zip ../datahub-frontend.zip \
&& cd .. && rm -rf datahub-src && unzip datahub-frontend.zip