You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-8Lines changed: 30 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,36 +6,58 @@ This Docker image is based on the official docker distribution image.
6
6
7
7
Please add any [issues](https://github.com/deis/registry/issues) you find with this software to the [Distribution Project](https://github.com/docker/distribution).
8
8
9
-
10
9
## Deploying
11
10
12
-
To build a dev release of this image, you will also need your own registry, but DockerHub or Quay will do fine here. To build, run:
11
+
If you want to use the latest registry image built by they Deis team you can simply start a registry via `make deploy`.
12
+
13
+
If however, you want to build and use a custom image see the instructions below.
14
+
15
+
## Build and Deploy
16
+
17
+
To build a dev release of this image, you will also need a registry to hold the custom images. This can be your own registry, Dockerhub, or Quay.
18
+
13
19
20
+
First, configure your environment to point to the registry location.
21
+
22
+
```console
23
+
$ export DEIS_REGISTRY=myregistry.com:5000 # or quay.io, if using Dockerhub, leave this unset
24
+
$ export IMAGE_PREFIX=youruser/ # if using Quay or Dockerhub
14
25
```
15
-
$ export DEIS_REGISTRY=myregistry.com:5000
26
+
27
+
To build and push the image run:
28
+
29
+
```console
16
30
$ make docker-build docker-push
17
31
```
18
32
19
-
This will compile the Docker image and push it to your registry.
33
+
Before deploying your custom image you must update the container image specification in the pod manifest. This file is found at `contrib/kubernetes/manifests/registry-rc.yaml`:
34
+
35
+
```yaml
36
+
- name: registry
37
+
image: quay.io/youruser/registry:git-f5c7dc3
38
+
env:
39
+
- name: REGISTRY_STORAGE_DELETE_ENABLED
40
+
value: "true"
41
+
```
20
42
21
-
After that, run
43
+
Once updated, deploy the registry to your kubernetes cluster with:
22
44
23
45
```
24
46
$ make deploy
25
47
```
26
48
27
-
Which will deploy the component to kubernetes. After a while, you should see one pod up with one running:
49
+
After a while, you should see one pod up with one running:
28
50
29
51
```
30
52
NAME READY STATUS RESTARTS AGE
31
53
registry-6wy8o 1/1 Running 0 32s
32
54
```
33
55
34
-
You can then query this pod as you would with any other Kubernetes pod:
56
+
You can then interact with this pod as you would with any other Kubernetes pod:
0 commit comments