1 FROM aaionap/aai-common:1.1.0
3 RUN mkdir -p /opt/aaihome/aaiadmin /opt/aai/logroot/AAI-RES /opt/app/aai-traversal/bin /opt/app/aai-traversal/extApps;
5 # Add the proper files into the docker image from your build
6 ADD ./opt/app/aai-traversal /opt/app/aai-traversal
7 ADD ./commonLibs/ /opt/app/commonLibs/
8 ADD init-chef.sh /opt/app/aai-traversal/init-chef.sh
9 ADD docker-entrypoint.sh /opt/app/aai-traversal/docker-entrypoint.sh
10 ADD aai.sh /etc/profile.d/aai.sh
12 # Change the permissions of aai shell script and all scripts in the microservice to be executable
13 RUN chmod 644 /etc/profile.d/aai.sh && \
14 find /opt/app/aai-traversal -name "*.sh" -exec chmod 755 {} +
16 # Set the log directory to be mountable so the logs will be persisted
17 VOLUME /opt/aai/logroot/AAI-GQ
19 # Expose the ports that needs to be available from the container
22 # During the startup of the container, this will be the starting directory
23 WORKDIR /opt/app/aai-traversal
25 # When the container is started this is the entrypoint script
26 # that docker will run. Make sure this script doesn't end abruptly
27 # Docker entrypoint will run exec command to make that main process
28 # Using the exec form here will ensure the java process is main
30 ENTRYPOINT ["/bin/bash", "/opt/app/aai-traversal/docker-entrypoint.sh"]