diff options
author | Ayke van Laethem <[email protected]> | 2018-10-21 22:36:46 +0200 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2018-10-21 22:42:38 +0200 |
commit | c88d2d10a77ff87b6888c9927f931b11c6b4d7e7 (patch) | |
tree | 9bf3dc4df89f6aedafc94a49b7489f8705313be4 | |
parent | 58ce5d9bf24ce482c5d25d9f7d110861f420ee7b (diff) | |
download | tinygo-c88d2d10a77ff87b6888c9927f931b11c6b4d7e7.tar.gz tinygo-c88d2d10a77ff87b6888c9927f931b11c6b4d7e7.zip |
docs: give a working Docker example
-rw-r--r-- | README.markdown | 2 | ||||
-rw-r--r-- | docs/docker.rst | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown index f652af182..50a7a4d33 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 a11cbb5cf..f64342d52 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. |