move prebuilt image section up, add step to clone sdk repo
This commit is contained in:
parent
55d0a6df63
commit
0e95e6dc72
1 changed files with 15 additions and 9 deletions
|
@ -5,8 +5,23 @@ description: Setting up an app instance as a webpage.
|
|||
----
|
||||
|
||||
## Preparing the SDK
|
||||
|
||||
|
||||
### Using pre-built docker image
|
||||
|
||||
TODO: use official images
|
||||
|
||||
This image comes with `save_blobs` and `save_files` to `false`, so it won't use disk.
|
||||
```
|
||||
docker run -d -p <external RPC port>:5279 -p <external streaming port>:5280 vshyba/websdk
|
||||
|
||||
### Building your own image
|
||||
|
||||
Clone the SDK repo:
|
||||
```
|
||||
git clone https://github.com/lbryio/lbry-sdk.git
|
||||
```
|
||||
|
||||
Create a config.yaml file and modify as you need. This is a good start:
|
||||
```
|
||||
allowed_origin: "*"
|
||||
|
@ -27,15 +42,6 @@ Now move the config file to `docker/webconf.yaml` and run:
|
|||
docker build -f docker/Dockerfile.web -t <your dockerhub username>/<project name, like 'websdk'> .
|
||||
docker push <dockerhub username/project name>
|
||||
```
|
||||
|
||||
|
||||
### Using pre-built docker image
|
||||
|
||||
TODO: use official images
|
||||
|
||||
This image comes with `save_blobs` and `save_files` to `false`, so it won't use disk.
|
||||
```
|
||||
docker run -d -p <external RPC port>:5279 -p <external streaming port>:5280 vshyba/websdk
|
||||
```
|
||||
|
||||
## Webapp
|
||||
|
|
Loading…
Reference in a new issue