Search code examples
dockercontinuous-integrationgitlabjfrog-cli

Running Jfrog cli in different docker container and using that cli in the Gitlab CI/CD pipeline


I'm running my CI/CD pipeline in Gitlab and I'm using the Jfrog cli to scan my code. The issue is that I'm downloading the cli every time that I'm running the CI/CD pipeline. I want to have that cli in a docker image that I can use every time that I need to run the pipeline in my Gitlab server. Any ideas?


Solution

  • As per installation instructions, you can run JFrog CLI in a docker image:

    docker run docker.bintray.io/jfrog/jfrog-cli-go:latest jfrog -v
    

    Or you can build your own Docker image with the JFrog CLI installed. Here a couple of links for that: