-
Notifications
You must be signed in to change notification settings - Fork 23
Setup Artifact Repository
Kaloyan Kolev edited this page Aug 3, 2021
·
4 revisions
- Git-based Source control system (this wiki assumes GitLab)
- An artifact repository management system (this wiki assumes jFrog)
- CI Server capable of running Maven commands (this wiki assumes GitLab):
- Git client
- Maven 3.5+
- Java 8
- Temporary access to internet during the installation
- vRO 7.6 Appliance - the toolchain uses vRO 7.6 dependencies that are part of the appliance and are served as an embedded Maven repository.
Note that the libs-release, libs-snapshot etc. are the default Maven repositories created by JFrog's Quick Setup shown at first login. This guide assumes that this Quick Setup has been executed.
- Create a local repository in artifactory to contain the toolchain artifacts, e.g. vrealize-build-tools and add it to the virtual release repository (e.g. libs-release)
- Unzip iac-maven-repository.zip found at artifacts/maven/ path relative to the root of the toolchain bundle to a folder, e.g. import/
- Go to the directory where you have unzipped the archive. Your working directory should contain the "com" folder and the archetype-catalog.xml file, e.g.:
root@photon-G6H8GzV2j [ ~/toolchain/import ]# ls
archetype-catalog.xml com
- Then, run the following command
jfrog rt u --recursive=true --flat=false ./ vrealize-build-tools
, where vrealize-build-tools should be the name of the repository you've created at step #1. - Examine the output of the command. It should look something similar to this:
Uploading artifact: /path/to/artifact/some-artifact.jar
{
"status": "success",
"totals": {
"success": 1,
"failure": 0
}
}
First you need access to a 7.3 vRO appliance to get the vRO dependencies for the toolchain in your artifactory.
- Get all vRO artifacts on the local machine. Run:
wget --no-check-certificate --recursive --no-parent --reject "index.html*" https://<vro_ip>:<vro_port>/vco-repo/com/
wget --no-check-certificate --recursive --no-parent --reject "index.html*" https://<vro_ip>:<vro_port>/vco-repo/com/vmware/o11n/mojo/pkg/
wget --no-check-certificate --recursive --no-parent --reject "index.html*" https://<vro_ip>:<vro_port>/vco-repo/com/vmware/o11n/pkg
- Create a new local repository (e.g. vro-local) and add it to the virtual release repository (e.g. libs-release).
- Navigate to the root folder of the downloaded repository on the local filesystem - at the same level as the com directory. E.g.:
root@photon-G6H8GzV2j [ ~/192.168.71.1/vco-repo ]# ls
com
- Import the vro artifacts to the selected repository, for example:
jfrog rt u --recursive true --flat false ./ vro-local
- Login into Artifactory with admin privileges
- Navigate to Admin > Permissions
- Click the New button
- Add a name for the permissions (for example: Anonymous Cache)
- Add all repositories into the Selected Repositories list view
- Skip the groups section
- On the Users section add Anonymous user
- Give Deploy/Cache, Annotate, Read permissions
- Click Save & Finish
- Configure developer Workstation
Fork the repo and open a pull request modifying the files under ./wiki/
Documentation
- Setup Artifact Repository
- Setup Developer Workstation
- Using the VS Code Extension
- Using the Bundle Installer
- Project Types
- Versioning and releasing
Contributing