From c88d2d10a77ff87b6888c9927f931b11c6b4d7e7 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 21 Oct 2018 22:36:46 +0200 Subject: [PATCH] docs: give a working Docker example --- README.markdown | 2 +- docs/docker.rst | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.markdown b/README.markdown index f652af18..50a7a4d3 100644 --- a/README.markdown +++ b/README.markdown @@ -75,7 +75,7 @@ See the [installation instructions](https://tinygo.readthedocs.io/en/latest/inst A docker container exists for easy access to the `tinygo` CLI: ```sh -$ docker run --rm -v $(pwd):/src tinygo/tinygo build -o /src/blinky.elf -target arduino /src/examples/blinky +$ docker run --rm -v $(pwd):/src tinygo/tinygo build -o /src/wasm.wasm -target wasm examples/wasm ``` Note that you cannot run `tinygo flash` from inside the docker container, diff --git a/docs/docker.rst b/docs/docker.rst index a11cbb5c..f64342d5 100644 --- a/docs/docker.rst +++ b/docs/docker.rst @@ -5,10 +5,11 @@ Using with Docker ================= -A docker container exists for easy access to the ``tinygo`` CLI. -For example, to compile the blinky example from the root of the repository:: +A docker container exists for easy access to the ``tinygo`` CLI. For example, to +compile ``wasm.wasm`` for the WebAssembly example, from the root of the +repository:: - docker run --rm -v $(pwd):/src tinygo/tinygo build -o /src/blinky.elf -target arduino /src/examples/blinky + docker run --rm -v $(pwd):/src tinygo/tinygo build -o /src/wasm.wasm -target wasm examples/wasm Note that you cannot run ``tinygo flash`` from inside the docker container, so it is less useful for microcontroller development.