You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
modules/jfrog-token
Muhammad Atif Ali 8e3f48ce5c
fix(jfrog-token)!: add attributes to fine control the token behaviour (#100)
1 year ago
..
README.md fix(jfrog-token)!: add attributes to fine control the token behaviour (#100) 1 year ago
main.test.ts Add JFrog (OAuth) integration module (#97) 1 year ago
main.tf fix(jfrog-token)!: add attributes to fine control the token behaviour (#100) 1 year ago
run.sh Add JFrog (OAuth) integration module (#97) 1 year ago

README.md

display_name description icon maintainer_github partner_github verified tags
JFrog (Token) Install the JF CLI and authenticate with Artifactory using Artifactory terraform provider. ../.icons/jfrog.svg coder jfrog true
integration
jfrog

JFrog

Install the JF CLI and authenticate package managers with Artifactory using Artifactory terraform provider.

module "jfrog" {
    source = "https://registry.coder.com/modules/jfrog-token"
    agent_id = coder_agent.example.id
    jfrog_url = "https://XXXX.jfrog.io"
    artifactory_access_token = var.artifactory_access_token
    package_managers = {
      "npm": "npm",
      "go": "go",
      "pypi": "pypi"
    }
}

Get a JFrog access token from your Artifactory instance. The token must be an admin token. It is recommended to store the token in a secret terraform variable.

variable "artifactory_access_token" {
    type      = string
    sensitive = true
}

JFrog

Examples

Configure npm, go, and pypi to use Artifactory local repositories

module "jfrog" {
    source = "https://registry.coder.com/modules/jfrog-token"
    agent_id = coder_agent.example.id
    jfrog_url = "https://YYYY.jfrog.io"
    artifactory_access_token = var.artifactory_access_token # An admin access token
    package_managers = {
      "npm": "npm-local",
      "go": "go-local",
      "pypi": "pypi-local"
    }
}

You should now be able to install packages from Artifactory using both the jf npm, jf go, jf pip and npm, go, pip commands.

jf npm install prettier
jf go get github.com/golang/example/hello
jf pip install requests
npm install prettier
go get github.com/golang/example/hello
pip install requests