1
1
# JFrog Artifactory Integration
2
2
3
- <div >
4
- <a href =" https://github.com/matifali " style =" text-decoration : none ; color : inherit ;" >
5
- <span style="vertical-align:middle;">M Atif Ali</span>
6
- <img src="https://github.com/matifali.png" alt="matifali" width="24px" height="24px" style="vertical-align:middle; margin: 0px;"/>
7
- </a >
8
- </div >
9
- January 24, 2024
10
-
11
- ---
12
-
13
3
Use Coder and JFrog Artifactory together to secure your development environments
14
4
without disturbing your developers' existing workflows.
15
5
@@ -60,8 +50,8 @@ To set this up, follow these steps:
60
50
` ` `
61
51
62
52
1. Create a new Application Integration by going to
63
- ` https://JFROG_URL/ui/admin/configuration/integrations/new` and select the
64
- Application Type as the integration you created in step 1.
53
+ ` https://JFROG_URL/ui/admin/configuration/integrations/app-integrations/ new` and select the
54
+ Application Type as the integration you created in step 1 or `Custom Integration` if you are using SaaS instance i.e. example.jfrog.io .
65
55
66
56
1. Add a new [external authentication](../../admin/external-auth.md) to Coder by setting these
67
57
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:
82
72
83
73
` ` ` tf
84
74
module "jfrog" {
85
- source = "registry.coder.com/modules/jfrog-oauth/coder"
86
- version = "1.0.0 "
87
- agent_id = coder_agent.example.id
88
- jfrog_url = "https://jfrog .example.com"
89
- configure_code_server = true # this depends on the code-server
75
+ count = data.coder_workspace.me.start_count
76
+ source = "registry.coder.com/modules/jfrog-oauth/coder "
77
+ version = "1.0.19"
78
+ agent_id = coder_agent .example.id
79
+ jfrog_url = "https://example.jfrog.io"
90
80
username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username"
81
+
91
82
package_managers = {
92
- "npm": "npm",
93
- "go": "go",
94
- "pypi": "pypi"
83
+ npm = ["npm", "@scoped:npm-scoped"]
84
+ go = ["go", "another-go-repo"]
85
+ pypi = ["pypi", "extra-index-pypi"]
86
+ docker = ["example-docker-staging.jfrog.io", "example-docker-production.jfrog.io"]
95
87
}
96
88
}
97
89
` ` `
@@ -117,16 +109,16 @@ To set this up, follow these steps:
117
109
}
118
110
119
111
module "jfrog" {
120
- source = "registry.coder.com/modules/jfrog-token/coder"
121
- version = "1.0.0"
122
- agent_id = coder_agent.example.id
123
- jfrog_url = "https://example.jfrog.io"
124
- configure_code_server = true # this depends on the code-server
112
+ source = "registry.coder.com/modules/jfrog-token/coder"
113
+ version = "1.0.30"
114
+ agent_id = coder_agent.example.id
115
+ jfrog_url = "https://XXXX.jfrog.io"
125
116
artifactory_access_token = var.artifactory_access_token
126
117
package_managers = {
127
- "npm": "npm",
128
- "go": "go",
129
- "pypi": "pypi"
118
+ npm = ["npm", "@scoped:npm-scoped"]
119
+ go = ["go", "another-go-repo"]
120
+ pypi = ["pypi", "extra-index-pypi"]
121
+ docker = ["example-docker-staging.jfrog.io", "example-docker-production.jfrog.io"]
130
122
}
131
123
}
132
124
` ` `
0 commit comments