Skip to content

Commit e162fda

Browse files
author
Matthew Fisher
committed
Merge pull request #4 from deis/add-deploy-instructions
docs(readme): add deploying documentation
2 parents f4c2e91 + 3f85052 commit e162fda

1 file changed

Lines changed: 28 additions & 2 deletions

File tree

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,36 @@ This Docker image is based on the official docker distribution image.
77
Please add any [issues](https://github.com/deis/registry/issues) you find with this software to the [Distribution Project](https://github.com/docker/distribution).
88

99

10-
## Usage
10+
## Deploying
1111

12-
Please consult the [Makefile](Makefile) for current instructions on how to build, test, push, install, and start deis/registry.
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:
1313

14+
```
15+
$ export DEIS_REGISTRY=myregistry.com:5000
16+
$ make docker-build docker-push
17+
```
18+
19+
This will compile the Docker image and push it to your registry.
20+
21+
After that, run
22+
23+
```
24+
$ make deploy
25+
```
26+
27+
Which will deploy the component to kubernetes. After a while, you should see one pod up with one running:
28+
29+
```
30+
NAME READY STATUS RESTARTS AGE
31+
registry-6wy8o 1/1 Running 0 32s
32+
```
33+
34+
You can then query this pod as you would with any other Kubernetes pod:
35+
36+
```
37+
$ kubectl logs -f registry-6wy8o
38+
$ kubectl exec -it registry-6wy8o psql
39+
```
1440

1541
## License
1642

0 commit comments

Comments
 (0)