public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: isar-users@googlegroups.com
Cc: mosipov@ilbers.de
Subject: [PATCH 2/2] doc: add isar build in docker instructions
Date: Fri, 20 Apr 2018 11:55:55 +0200	[thread overview]
Message-ID: <20180420095555.21357-3-mosipov@ilbers.de> (raw)
In-Reply-To: <20180420095555.21357-1-mosipov@ilbers.de>

Signed-off-by: Maxim Yu. Osipov <mosipov@ilbers.de>
---
 doc/docker_build.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 doc/docker_build.md

diff --git a/doc/docker_build.md b/doc/docker_build.md
new file mode 100644
index 0000000..7471f2d
--- /dev/null
+++ b/doc/docker_build.md
@@ -0,0 +1,46 @@
+# Building ISAR in Docker
+
+ISAR docker's images are public.
+
+## Install Docker 
+
+Follow the instructions on https://docs.docker.com/install
+
+## Build ISAR in Docker
+
+Try the following command on your Linux host running docker:
+
+```
+$docker run -e USER_ID=$(id -u) --rm -t -i --cap-add=SYS_ADMIN --device $(/sbin/losetup -f) kasproject/kas-isar bash
+```
+
+You will see someting like:
+
+```
+Unable to find image 'kasproject/kas-isar:latest' locally
+latest: Pulling from kasproject/kas-isar
+b0568b191983: Pull complete 
+4275668792f8: Pull complete 
+f20834504b2f: Pull complete 
+8fc4f86edf96: Pull complete 
+abfe5b5ad18a: Pull complete 
+a903a3cbb4d5: Pull complete 
+2bd66d0e3147: Pull complete 
+cdd19e96269b: Pull complete 
+fbb3475f667d: Pull complete 
+89116d7487d0: Pull complete 
+Digest: sha256:7cfee2a6ac9a197e9d1bead0091854f2a53ca90a12453d21264dba525670fba5
+Status: Downloaded newer image for kasproject/kas-isar:latest
+builder@ce7cfc1d57db:~$
+```
+
+Clone the isar repository and launch build for target isar image name:
+
+```
+builder@ce7cfc1d57db:~$ git clone https://github.com/ilbers/isar.git
+
+builder@ce7cfc1d57db:~$ cd isar/
+
+builder@ce7cfc1d57db:~/isar$ . ./isar-init-build-env ../build
+builder@ce7cfc1d57db:~/build$ bitbake <isar-image-name>
+```
-- 
2.11.0


  parent reply	other threads:[~2018-04-23  7:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-20  9:55 [PATCH 0/2] Various doc updates Maxim Yu. Osipov
2018-04-20  9:55 ` [PATCH 1/2] doc: add supported host distro section Maxim Yu. Osipov
2018-04-20  9:55 ` Maxim Yu. Osipov [this message]
2018-04-23  7:12   ` [PATCH 2/2] doc: add isar build in docker instructions Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180420095555.21357-3-mosipov@ilbers.de \
    --to=mosipov@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox