From 66cd1930803c2f0095c04db4dff78ab3f9526888 Mon Sep 17 00:00:00 2001 From: Cloud User Date: Mon, 25 May 2020 14:53:57 +0000 Subject: [PATCH 1/4] added demo runner on runme.io --- .runme/Dockerfile.runme | 4 ++++ .runme/config.yaml | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .runme/Dockerfile.runme create mode 100644 .runme/config.yaml diff --git a/.runme/Dockerfile.runme b/.runme/Dockerfile.runme new file mode 100644 index 000000000000..9c336b25c3c0 --- /dev/null +++ b/.runme/Dockerfile.runme @@ -0,0 +1,4 @@ +FROM node:14.0.0 +WORKDIR /app +RUN npx docusaurus-init +ENTRYPOINT cd website && npm start \ No newline at end of file diff --git a/.runme/config.yaml b/.runme/config.yaml new file mode 100644 index 000000000000..0d3437bcd17d --- /dev/null +++ b/.runme/config.yaml @@ -0,0 +1,10 @@ +version: 1.0 +publish: app +services: + app: + build: + type: dockerfile + config: ./.runme/Dockerfile.runme + ports: + - container: 3000 + public: 80 \ No newline at end of file From 8158ca1180683f529f605063883706d8c29dd1eb Mon Sep 17 00:00:00 2001 From: Cloud User Date: Mon, 25 May 2020 16:07:59 +0000 Subject: [PATCH 2/4] change to readme, added button indside --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f033410043db..90ca83af06fa 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ Docusaurus is available as the [`docusaurus` package](https://www.npmjs.com/pack We have also released the [`docusaurus-init` package](https://www.npmjs.com/package/docusaurus-init) to make [getting started](https://docusaurus.io/docs/en/installation/) with Docusaurus even easier. +## Demo + +[![Runme](https://runme.io/static/button.svg)](https://runme.io/run?app_id=0dd80306-47bb-4e80-95dc-dc95eb05d3fd)- Click on button to see quick-start demo + ## Contributing We've released Docusaurus because it helps us better scale and supports the many OSS projects at Facebook. We hope that other organizations can benefit from the project. We are thankful for any contributions from the community. From 2c84aeaecb1f37f759a478c8d103c3d5a97f60c9 Mon Sep 17 00:00:00 2001 From: MishaJexia <44843719+MishaJexia@users.noreply.github.com> Date: Tue, 26 May 2020 17:54:36 +0200 Subject: [PATCH 3/4] Change to version 2 of docusaurus --- .runme/Dockerfile.runme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.runme/Dockerfile.runme b/.runme/Dockerfile.runme index 9c336b25c3c0..060a94a79828 100644 --- a/.runme/Dockerfile.runme +++ b/.runme/Dockerfile.runme @@ -1,4 +1,4 @@ FROM node:14.0.0 WORKDIR /app -RUN npx docusaurus-init -ENTRYPOINT cd website && npm start \ No newline at end of file +RUN npx @docusaurus/init@next init website classic +ENTRYPOINT cd website && npm start From 2704a4f8c8b2c05e31f8471b181eebf6c1825882 Mon Sep 17 00:00:00 2001 From: MishaJexia <44843719+MishaJexia@users.noreply.github.com> Date: Wed, 27 May 2020 11:37:29 +0200 Subject: [PATCH 4/4] V2 (#1) * try v2 * port change * put path to folder * change running string Co-authored-by: Cloud User --- .runme/Dockerfile.runme | 8 +++++--- .runme/config.yaml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.runme/Dockerfile.runme b/.runme/Dockerfile.runme index 060a94a79828..46c3e5f156d6 100644 --- a/.runme/Dockerfile.runme +++ b/.runme/Dockerfile.runme @@ -1,4 +1,6 @@ -FROM node:14.0.0 +FROM node:12.10.0 WORKDIR /app -RUN npx @docusaurus/init@next init website classic -ENTRYPOINT cd website && npm start +RUN npx @docusaurus/init@next init website classic +RUN npm install http-server -g +RUN cd website && npm run build +ENTRYPOINT http-server ./website/build/ -p 80 -a 0.0.0.0 diff --git a/.runme/config.yaml b/.runme/config.yaml index 0d3437bcd17d..7a40b926eb6e 100644 --- a/.runme/config.yaml +++ b/.runme/config.yaml @@ -6,5 +6,5 @@ services: type: dockerfile config: ./.runme/Dockerfile.runme ports: - - container: 3000 + - container: 80 public: 80 \ No newline at end of file