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
+3-43Lines changed: 3 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ The registry is a [Docker registry](https://docs.docker.com/registry/) component
17
17
18
18
If you decide to use this component standalone, you can host your own Docker registry in your own Kubernetes cluster.
19
19
20
-
The Docker image that this repository builds is based on [Alpine Linux](http://www.alpinelinux.org/) and uses [the Deis fork](https://github.com/deis/distribution) of [the official Docker v2 registry code](https://github.com/docker/distribution).
20
+
The Docker image that this repository builds is based on [the official Docker v2 registry image](https://github.com/docker/distribution).
21
21
22
22
# Development
23
23
@@ -53,52 +53,12 @@ To build and push the image run:
53
53
$ make docker-build docker-push
54
54
```
55
55
56
-
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`:
56
+
To deploy the image via patching the registry deployment run:
57
57
58
-
```yaml
59
-
- name: registry
60
-
image: quay.io/youruser/registry:git-f5c7dc3
61
-
env:
62
-
- name: REGISTRY_STORAGE_DELETE_ENABLED
63
-
value: "true"
64
-
```
65
-
66
-
By default registry uses the filesystem as the storage medium. To use a custom object store like s3, gcs or azure:
67
-
- First provide the details required for authenticating to object store in base64 format by updating the secret file which can be found at `contrib/kubernetes/manifests/registry-{STORAGE_TYPE}-secret.yaml`.
68
-
- Update the storage type and secret to be used in the pod manifest. This file is found at `contrib/kubernetes/manifests/registry-rc.yaml`:
69
-
```yaml
70
-
- name: REGISTRY_STORAGE
71
-
value: filesystem
72
-
73
-
- name: registry-creds
74
-
secret:
75
-
secretName: fs-keyfile
76
-
```
77
-
- Set the STORAGE_TYPE environment variable.
78
-
```
79
-
$ export STORAGE_TYPE = {s3/gcs/azure}
80
-
```
81
-
82
-
Once updated, deploy the registry to your kubernetes cluster with:
83
-
84
-
```
58
+
```console
85
59
$ make deploy
86
60
```
87
61
88
-
After a while, you should see one pod up with one running:
89
-
90
-
```
91
-
NAME READY STATUS RESTARTS AGE
92
-
registry-6wy8o 1/1 Running 0 32s
93
-
```
94
-
95
-
You can then interact with this pod as you would with any other Kubernetes pod:
0 commit comments