Markdown and use amd64 in README

This commit is contained in:
Pablo Carranza Vélez 2015-07-16 16:58:28 +00:00
parent aaa9885e50
commit fb019d7192

View File

@ -2,14 +2,19 @@
## Deploy your local version to the devenv registry
If you haven't done so yet, login to the devenv registry:
`docker login registry.resindev.io`
```
docker login registry.resindev.io
```
Use username "resin" and the registry's [default login details](https://bitbucket.org/rulemotion/resin-builder/src/4594c0020dcae2c98e4b3d7bab718b088bb7e52a/config/confd/templates/env.tmpl?at=master#cl-9) if you haven't changed them.
`make ARCH=i386 deploy`
```
make ARCH=amd64 deploy
```
This will build the image if you haven't done it yet.
A different registry can be specified with the DEPLOY_REGISTRY env var.
## Set up config
Edit `tools/dind/config.json` to contain the values for a staging config.json.
Example (replace the first four values from a staging config for your own app):
```
{
@ -27,9 +32,13 @@ Example (replace the first four values from a staging config for your own app):
## Start the supervisor instance
```
make ARCH=i386 run-supervisor
make ARCH=amd64 run-supervisor
```
This will setup a docker-in-docker instance with an image that runs the supervisor image from the devenv registry (registry.resindev.io). A different registry can be specified with the DEPLOY_REGISTRY env var.
This will setup a docker-in-docker instance with an image that runs the supervisor image.
By default it will pull from the devenv registry (registry.resindev.io).
A different registry can be specified with the DEPLOY_REGISTRY env var.
## View the containers logs
```
@ -44,4 +53,6 @@ tail /var/log/supervisor-log/resin_supervisor_stdout.log -f
## Stop the supervisor
`make stop-supervisor`
This will unmount /var/lib/docker in the container and then stop it. This prevents future failures due to no loopback devices being available.
This will unmount /var/lib/docker in the container and then stop it.
This prevents future failures due to no loopback devices being available.