docs: give a working Docker example
Этот коммит содержится в:
родитель
58ce5d9bf2
коммит
c88d2d10a7
2 изменённых файлов: 5 добавлений и 4 удалений
|
@ -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:
|
A docker container exists for easy access to the `tinygo` CLI:
|
||||||
|
|
||||||
```sh
|
```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,
|
Note that you cannot run `tinygo flash` from inside the docker container,
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
Using with Docker
|
Using with Docker
|
||||||
=================
|
=================
|
||||||
|
|
||||||
A docker container exists for easy access to the ``tinygo`` CLI.
|
A docker container exists for easy access to the ``tinygo`` CLI. For example, to
|
||||||
For example, to compile the blinky example from the root of the repository::
|
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,
|
Note that you cannot run ``tinygo flash`` from inside the docker container,
|
||||||
so it is less useful for microcontroller development.
|
so it is less useful for microcontroller development.
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче