Closed tmeneau closed 5 years ago
@tmeneau - thanks for tackling this! To write down the updates from our talks...
UPGRADE_PRE_V2
be set to true
for the upgrade to run. If the upgrade is detected and UPGRADE_PRE_V2
is not set, then simply exit with a helpful message to stdout. Thanks for the feedback @tkent! I made the changes you recommended.
I did some digging on the JCR, and it looks like Archiva uses it exclusively for storing artifact metadata. Local tests confirm that removing the JCR is adequate to force a full rescan of the repositories in addition to being easily automated. Thanks for the recommendation, that was the key to fully automating the upgrade process!
The intention is to patch (re: replace) the existing v2
image with this pull request. For users whom aren't affected by #13 should be unaffected by this; all other users will be unable to start their Archiva containers with a message directing them to the README documentation describing the upgrade and how to proceed.
The default archiva.xml used in the
v2-legacy
image uses relative paths for themanagedRepository/Location
andmanagedReopsitory/indexDir
paths. This merger request adds some logic to the entrypoint to:/archiva-data/repositories/repositories/.../.indexer
), to just remove the whole/archiva-data/repositories/repositories
directory; and finallyAdditionally, this adds those instructions to the README to help users who run into #13.