I am trying to build a simple HelloWorld docker image using apama-builder. However I am getting the following error:
INFO: copying the project file from /app/HelloWorld to output directory /app/deployed
ERROR: Failed to create correlator initialization list: /app/deployed
The command '/bin/sh -c engine_deploy --outputDeployDir /app/deployed /app/HelloWorld' returned a non-zero code: 100
My Docker File looks like as below:
# Use the build environment
FROM store/softwareag/apama-builder:10.3 as builder
# Copy project assets into build environment
COPY --chown=1724:1724 . /app/HelloWorld
# Deploy the apama project
RUN engine_deploy --outputDeployDir /app/deployed /app/HelloWorld
# Add any additional build steps you may have, such as building plugins, here
# RUN ...
# Final image is based on the runtime base image
FROM store/softwareag/apama-correlator:10.3
# Copy deployed project from the build environment
COPY --chown=1724:1724 --from=builder /app/deployed /app/deployed
# Add copies for any additional build artifacts created in the build environment
# COPY --from=builder ...
WORKDIR /app
# Run the deployed project
CMD ["correlator", "--config", "Project_deployed", "--logfile", "/dev/stdout"]
Note I am using CentOS, and my HelloWorld application is located at /app/HelloWorld and I want the output to be at /app/deployed.