You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a dockerfile for nexus-app, I am trying to overwrite the nexus.properties file by copying a customized properties file over at /nexus-data/etc/ directory, after which the CMD directive runs and starts the nexus app.
This doesn't work however. The copy command works when i try to copy the template in the /home or /etc directories, but not when the COPY command runs on the /nexus-data or $SONATYPE_TYPE directories.
It seems that the start of nexus app (final command in the dockerfile) overwrites nexus.properties copied in the initial steps.
I would also like to know if there is an option/flag to pass an absolute custom path to the properties file (e.g. --config), I couldn't find any information about that either.
Any information about this would be of great help.
If such customization is not possible for docker images, please suggest alternatives to implement this.
Thanks!
The text was updated successfully, but these errors were encountered:
In a dockerfile for nexus-app, I am trying to overwrite the nexus.properties file by copying a customized properties file over at /nexus-data/etc/ directory, after which the CMD directive runs and starts the nexus app.
COPY ./local-dir/nexus.template.properties ${NEXUS_DATA}/etc/nexus.properties
CMD ["sh", "-c", "${SONATYPE_DIR}/start-nexus-repository-manager.sh"]
This doesn't work however. The copy command works when i try to copy the template in the /home or /etc directories, but not when the COPY command runs on the /nexus-data or $SONATYPE_TYPE directories.
It seems that the start of nexus app (final command in the dockerfile) overwrites nexus.properties copied in the initial steps.
I would also like to know if there is an option/flag to pass an absolute custom path to the properties file (e.g. --config), I couldn't find any information about that either.
Any information about this would be of great help.
If such customization is not possible for docker images, please suggest alternatives to implement this.
Thanks!
The text was updated successfully, but these errors were encountered: