This toolset is designed for migrating repositories from JFrog Artifactory to Nexus OSS. It automates the process of scanning, listing, and uploading packages between these two repository managers.
Defines the repositories to be migrated with their names and types. Example:
[
{
"name": "stable-yum-repos",
"type": "rpm"
},
{
"name": "stable-deb-repos",
"type": "debian"
},
{
"name": "my-maven-repos",
"type": "maven"
}
]Stores environment variables for JFrog and Nexus credentials. Example:
JFROG_URL=your_jfrog_url
JFROG_USER=your_jfrog_user
JFROG_PASSWORD=your_jfrog_password
NEXUS_URL=your_nexus_url
NEXUS_USER=your_nexus_user
NEXUS_PASSWORD=your_nexus_password
Specifies intentionally untracked files to ignore.
- Clone the repository to your local machine.
- Install the required dependencies by running
pip install -r requirements.txt(ensure you have Python and pip installed). - Set up your
.envfile with the necessary JFrog and Nexus credentials. - Customize
config.jsonwith the repositories you intend to migrate.
To migrate repositories as configured in config.json, execute:
python migrate_repos.pyTo perform a full scan of all repositories in the source JFrog instance and attempt migration, use:
python migrate_repos.py scanallContributions are welcome! Please feel free to submit a pull request or open an issue.
Laszlo A. Toth | www.lavx.hu | lavx@lavx.hu