mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-23 18:33:35 +00:00
Details in README
This commit is contained in:
parent
f87c4915da
commit
4ab627186d
32
README.md
32
README.md
@ -2,11 +2,11 @@
|
||||
|
||||
## Deploy your local version to the devenv registry
|
||||
If you haven't done so yet, login to the devenv registry:
|
||||
```
|
||||
```bash
|
||||
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.
|
||||
```
|
||||
```bash
|
||||
make ARCH=amd64 deploy
|
||||
```
|
||||
This will build the image if you haven't done it yet.
|
||||
@ -15,23 +15,13 @@ 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):
|
||||
```
|
||||
{
|
||||
"applicationId": "1939",
|
||||
"apiKey": "saf987fasXKPz82anHASGAlovP",
|
||||
"userId": "141",
|
||||
"username": "gh_pcarranzav",
|
||||
"deviceType": "raspberry-pi2",
|
||||
"files": {
|
||||
"network/settings": "[global]\nOfflineMode=false\n\n[WiFi]\nEnable=true\nTethering=false\n\n[Wired]\nEnable=true\nTethering=false\n\n[Bluetooth]\nEnable=true\nTethering=false",
|
||||
"network/network.config": "[service_home_ethernet]\nType = ethernet\nNameservers = 8.8.8.8,8.8.4.4"
|
||||
}
|
||||
}
|
||||
```
|
||||
This file can be obtained in several ways, for instance:
|
||||
|
||||
* Download an Intel Edison image from staging, open `config.img` with an archive tool like [peazip](http://sourceforge.net/projects/peazip/files/)
|
||||
* Download a Raspberry Pi 2 image, flash it to an SD card, then mount partition 5 (resin-conf).
|
||||
|
||||
## Start the supervisor instance
|
||||
```
|
||||
```bash
|
||||
make ARCH=amd64 run-supervisor
|
||||
```
|
||||
This will setup a docker-in-docker instance with an image that runs the supervisor image.
|
||||
@ -40,8 +30,14 @@ 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
|
||||
e.g.
|
||||
```bash
|
||||
make ARCH=amd64 DEPLOY_REGISTRY= run-supervisor
|
||||
```
|
||||
to pull the jenkins built images from the docker hub.
|
||||
|
||||
## View the containers logs
|
||||
```bash
|
||||
logs supervisor -f
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user