Jfrog - Artifactory
Jfrog - Artifactory
1) Trial account
2) Install Jfrog CLI
# Create the keyrings directory if it doesn't exist
sudo mkdir -p /usr/share/keyrings;
# Download and save the JFrog GPG key to a keyring file
wget -qO - https://releases.jfrog.io/artifactory/api/v2/repositories/jfrog-debs/keyPairs/primary/public | sudo gpg --dearmor -o /usr/share/keyrings/jfrog.gpg
# Add the JFrog repository to your APT sources with the signed-by option
echo "deb [signed-by=/usr/share/keyrings/jfrog.gpg] https://releases.jfrog.io/artifactory/jfrog-debs focal contrib" | sudo tee /etc/apt/sources.list.d/jfrog.list
# Update the package list
sudo apt update;
# Install the JFrog CLI
sudo apt install -y jfrog-cli-v2-jf;
# Run the JFrog CLI intro command
jf intro;
jfrog
3) Login with Jfrog Cli to the cloud and select interfaces
jfrog login
4) Create critical aliases
# Jfrog Cloud #
alias jfrog="/usr/bin/jf"
alias jfrogping="/usr/bin/jf rt ping"
alias jfrogsearch="/usr/bin/jf rt search docker-trial/*"
alias jfrogshow="/usr/bin/jf config show"
alias jfroguse="/usr/bin/jf config use jfrog-cloud"
5) Search an artefact in the repo
# jf rt search docker-trial/exposures/
Comentarii
Trimiteți un comentariu