From 0e95e6dc728cce2ba174837fd3b84849d37f61d4 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 15 Jun 2021 16:04:49 -0300 Subject: [PATCH] move prebuilt image section up, add step to clone sdk repo --- documents/resources/web-instance.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/documents/resources/web-instance.md b/documents/resources/web-instance.md index c2ed4c8..6a0261e 100644 --- a/documents/resources/web-instance.md +++ b/documents/resources/web-instance.md @@ -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 :5279 -p :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 / . docker push ``` - - -### 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 :5279 -p :5280 vshyba/websdk ``` ## Webapp