I have a Java application and it uses liberty server. My Dockerfile has suddenly stopped working in Travis. Although, it builds locally but it's not working in my Travis pipeline.
Dockerfile
FROM ubuntu:22.04
FROM open-liberty:full-java11-openj9
USER root
COPY --chown=1001:0 /deploy/defaultServer/server.xml /config/
COPY --chown=1001:0 /deploy/defaultServer/apps/app.war /config/apps/
ARG VERBOSE=true
RUN configure.sh
RUN apt-get update
Command used to build docker image -
docker build --tag app:${TRAVIS_BUILD_ID} . --no-cache --progress=plain
I get below error in Travis while building docker image -
Step 7/8 : RUN configure.sh
---> Running in d67ac92aad57
The command '/bin/sh -c configure.sh' returned a non-zero code: 22
This error code does not help much. What can I do to get more details on the error?
Edit -
After adding ARG VERBOSE=true, I saw some logs, and it all seemed fine until the end. This is what came up towards the end -
Starting server defaultServer.
Server defaultServer start failed. Check server logs for details.
The command '/bin/sh -c configure.sh' returned a non-zero code: 22
Where do I get server logs? What is causing the server start to fail?