From 97caabb8c277f8bdddadc594b3a8f284405b925a Mon Sep 17 00:00:00 2001 From: Johan Brandhorst Date: Sat, 20 Oct 2018 23:56:37 +0100 Subject: Add Dockerfile --- docs/docker.rst | 14 ++++++++++++++ docs/index.rst | 1 + 2 files changed, 15 insertions(+) create mode 100644 docs/docker.rst (limited to 'docs') diff --git a/docs/docker.rst b/docs/docker.rst new file mode 100644 index 000000000..a11cbb5cf --- /dev/null +++ b/docs/docker.rst @@ -0,0 +1,14 @@ +.. docker: + +.. highlight:: none + +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:: + + docker run --rm -v $(pwd):/src tinygo/tinygo build -o /src/blinky.elf -target arduino /src/examples/blinky + +Note that you cannot run ``tinygo flash`` from inside the docker container, +so it is less useful for microcontroller development. diff --git a/docs/index.rst b/docs/index.rst index 50bb0618c..a755c96f7 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -12,6 +12,7 @@ Contents: :maxdepth: 2 installation + docker targets microcontrollers faq -- cgit v1.2.3