mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
docs: update jfrog-artifactory integration docs (#17413)
This commit is contained in:
@ -1,15 +1,5 @@
|
|||||||
# JFrog Artifactory Integration
|
# JFrog Artifactory Integration
|
||||||
|
|
||||||
<div>
|
|
||||||
<a href="https://github.com/matifali" style="text-decoration: none; color: inherit;">
|
|
||||||
<span style="vertical-align:middle;">M Atif Ali</span>
|
|
||||||
<img src="https://github.com/matifali.png" alt="matifali" width="24px" height="24px" style="vertical-align:middle; margin: 0px;"/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
January 24, 2024
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
Use Coder and JFrog Artifactory together to secure your development environments
|
Use Coder and JFrog Artifactory together to secure your development environments
|
||||||
without disturbing your developers' existing workflows.
|
without disturbing your developers' existing workflows.
|
||||||
|
|
||||||
@ -60,8 +50,8 @@ To set this up, follow these steps:
|
|||||||
```
|
```
|
||||||
|
|
||||||
1. Create a new Application Integration by going to
|
1. Create a new Application Integration by going to
|
||||||
`https://JFROG_URL/ui/admin/configuration/integrations/new` and select the
|
`https://JFROG_URL/ui/admin/configuration/integrations/app-integrations/new` and select the
|
||||||
Application Type as the integration you created in step 1.
|
Application Type as the integration you created in step 1 or `Custom Integration` if you are using SaaS instance i.e. example.jfrog.io.
|
||||||
|
|
||||||
1. Add a new [external authentication](../../admin/external-auth.md) to Coder by setting these
|
1. Add a new [external authentication](../../admin/external-auth.md) to Coder by setting these
|
||||||
environment variables in a manner consistent with your Coder deployment. Replace `JFROG_URL` with your JFrog Artifactory base URL:
|
environment variables in a manner consistent with your Coder deployment. Replace `JFROG_URL` with your JFrog Artifactory base URL:
|
||||||
@ -82,16 +72,18 @@ To set this up, follow these steps:
|
|||||||
|
|
||||||
```tf
|
```tf
|
||||||
module "jfrog" {
|
module "jfrog" {
|
||||||
source = "registry.coder.com/modules/jfrog-oauth/coder"
|
count = data.coder_workspace.me.start_count
|
||||||
version = "1.0.0"
|
source = "registry.coder.com/modules/jfrog-oauth/coder"
|
||||||
agent_id = coder_agent.example.id
|
version = "1.0.19"
|
||||||
jfrog_url = "https://jfrog.example.com"
|
agent_id = coder_agent.example.id
|
||||||
configure_code_server = true # this depends on the code-server
|
jfrog_url = "https://example.jfrog.io"
|
||||||
username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username"
|
username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username"
|
||||||
|
|
||||||
package_managers = {
|
package_managers = {
|
||||||
"npm": "npm",
|
npm = ["npm", "@scoped:npm-scoped"]
|
||||||
"go": "go",
|
go = ["go", "another-go-repo"]
|
||||||
"pypi": "pypi"
|
pypi = ["pypi", "extra-index-pypi"]
|
||||||
|
docker = ["example-docker-staging.jfrog.io", "example-docker-production.jfrog.io"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -117,16 +109,16 @@ To set this up, follow these steps:
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "jfrog" {
|
module "jfrog" {
|
||||||
source = "registry.coder.com/modules/jfrog-token/coder"
|
source = "registry.coder.com/modules/jfrog-token/coder"
|
||||||
version = "1.0.0"
|
version = "1.0.30"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
jfrog_url = "https://example.jfrog.io"
|
jfrog_url = "https://XXXX.jfrog.io"
|
||||||
configure_code_server = true # this depends on the code-server
|
|
||||||
artifactory_access_token = var.artifactory_access_token
|
artifactory_access_token = var.artifactory_access_token
|
||||||
package_managers = {
|
package_managers = {
|
||||||
"npm": "npm",
|
npm = ["npm", "@scoped:npm-scoped"]
|
||||||
"go": "go",
|
go = ["go", "another-go-repo"]
|
||||||
"pypi": "pypi"
|
pypi = ["pypi", "extra-index-pypi"]
|
||||||
|
docker = ["example-docker-staging.jfrog.io", "example-docker-production.jfrog.io"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user