Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit 34d0b19

Browse files
committed
Add guide for using Artifactory for images
1 parent 6a571cf commit 34d0b19

File tree

3 files changed

+77
-0
lines changed

3 files changed

+77
-0
lines changed
195 KB
Loading

guides/deployments/artifactory.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
title: JFrog Artifactory
3+
description: Learn how to use Artifactory to host container images in Coder.
4+
---
5+
6+
This article will walk you through setting up
7+
[Artifactory](https://jfrog.com/artifactory/) as a Docker registry in Coder.
8+
9+
JFrog Artifactory serves as a central hub for housing and managing any kind of
10+
artifact you might be interested in securely managing across your entire
11+
organization, including container images. It can be self-hosted which may be
12+
particularly useful for hardened environments where external network access is
13+
undesirable.
14+
15+
We have based these instructions off Artifactory's documentation. Please see the
16+
following links for more information:
17+
18+
- [Docker Registry](https://www.jfrog.com/confluence/display/JFROG/Docker+Registry)
19+
- [Getting Started with Artifactory as a Docker Registry](https://www.jfrog.com/confluence/display/JFROG/Getting+Started+with+Artifactory+as+a+Docker+Registry)
20+
21+
## Step 1: Create an Artifactory repository
22+
23+
1. If you do not already have an account you can [start up a free
24+
trial](https://jfrog.com/artifactory/) or get yourself a free instance to
25+
play with.
26+
1. Log in to your Artifactory dashboard.
27+
1. Navigate to **Repositories** in the sidebar.
28+
1. Click **+ Add Repositories**.
29+
1. Select **Docker**.
30+
1. Name your repository.
31+
1. Click **Create Local Repository**.
32+
33+
## Step 2: Add images
34+
35+
You can push and pull images as you would with any other Docker registry once
36+
you log in.
37+
38+
```console
39+
docker login $ARTIFACTORY_URL
40+
```
41+
42+
If you have trouble logging in click your user account icon in the upper right
43+
corner of the Artifactory dashboard, go to **Set Me Up**, then select **docker**
44+
to find exactly what username and password you can provide to get logged in.
45+
46+
At this stage you can add any images you want to use with Coder. For example:
47+
48+
```console
49+
docker push $ARTIFACTORY_URL/images/hello-world
50+
```
51+
52+
## Step 3: Configure Coder
53+
54+
To add the registry to Coder you can use the same credentials you used for
55+
`docker login` but in production you may want to create a new user with
56+
read-only permissions. This can be done by clicking the cog icon in the upper
57+
right corner of your Artifactory dashboard then clicking **User Management**.
58+
59+
Once you have the credentials you want to use grab your Artifactory URL and and
60+
the full path to an image then [add a new registry](../../admin/registries/index.md)
61+
to Coder.
62+
63+
For example here we add an image stored at `codercom/enterprise-intellij` in an
64+
Artifactory server called `test` and a repository called `images`:
65+
66+
![Registry configuration](../../assets/deployment/artifactory/registry.png)
67+
68+
## Other Notes
69+
70+
We have an open-source version of Microsoft's extension marketplace for VS Code
71+
which is capable of using Artifactory for extension storage. If you use VS Code
72+
or code-server with Coder and are interested in further securing your supply
73+
chain with Artifactory check it out
74+
[here](https://github.com/coder/code-marketplace/).

manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,9 @@
494494
{
495495
"path": "./guides/deployments/archive-install.md"
496496
},
497+
{
498+
"path": "./guides/deployments/artifactory.md"
499+
},
497500
{
498501
"path": "./guides/deployments/code-server.md"
499502
},

0 commit comments

Comments
 (0)