Lines Matching +full:working +full:- +full:directory
1 .. _torizon-os-section:
6 Torizon OS is an open-source software platform that aims to simplify the
16 -------------
19 More information is available on the Toradex `website <https://www.toradex.com/computer-on-modules>…
31 -----------
34 Follow the official bring-up `guides <https://developer.toradex.com/quickstart/bringup/>`_.
44 -------------------------
46 …`VSCode extension <https://developer.toradex.com/torizon/application-development/ide-extension/>`_…
47 and automate the tasks needed to cross-compile applications and build Docker images.
59 .. code-block:: sh
61 docker run --rm -it --privileged torizon/binfmt
62 docker run --rm -it --pull always --platform linux/arm64/v8 debian arch
67 …eloper.toradex.com/torizon/application-development/working-with-containers/configure-build-environ…
69 Let's begin by creating a directory that will contain the ``Dockerfile`` and source code
74 .. code-block:: sh
76 mkdir -p ~/lvgl_torizon_os/
80 git clone --depth 1 https://github.com/lvgl/lv_port_linux
81 git -C lv_port_linux submodule update --init
83 These commands create the project directory and the ``Dockerfile``.
93 Now edit the Dockerfile. Copy-paste the block below into the file:
95 .. code-block::
97 ARG CROSS_SDK_BASE_TAG=3.2.1-bookworm
98 ARG BASE_VERSION=3.2.1-bookworm
106 # Directory of the application inside container
110 # BUILD ------------------------------------------------------------------------
111 FROM torizon/debian-cross-toolchain-${IMAGE_ARCH}:${CROSS_SDK_BASE_TAG} AS build
116 RUN apt-get -q -y update && \
117 apt-get -q -y install && \
118 apt-get clean && apt-get autoremove && \
119 apt-get install -q -y curl git cmake file && \
120 rm -rf /var/lib/apt/lists/*
126 RUN CC=aarch64-linux-gnu-gcc cmake -S ./lv_port_linux -B build
127 RUN make -j 4 -C ${APP_ROOT}/build
129 # DEPLOY -----------------------------------------------------------------------
130 FROM --platform=linux/${IMAGE_ARCH} torizon/debian:${BASE_VERSION} AS deploy
135 RUN apt-get -y update && apt-get install -y --no-install-recommends \
136 && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*
138 # Copy the lvglsim executable compiled in the build step to the $APP_ROOT directory
140 COPY --from=build ${APP_ROOT}/lv_port_linux/bin/lvglsim ${APP_ROOT}
148 …downloads the necessary packages to build the simulator using Debian's package manager ``apt-get``.
153 The executable created in the previous image is copied to the ``/usr/bin`` directory of the current…
159 ``docker build . -t lvgl_app``
161 Docker will interpret the ``Dockerfile`` present in the current working directory.
162 The ``-t`` argument gives a name to the resulting image.
171 -------------------------------------------
176 …//developer.toradex.com/torizon/application-development/working-with-containers/deploying-containe…
184 ``docker run -d -p 5000:5000 --name registry registry:2.7``
186 The ``-d`` flag runs the container in detached mode. The ``-p`` argument specifies the port mapping.
191 ``docker tag <IMAGE_ID> 127.0.0.1:5000/lvgl-app``
193 ``docker push 127.0.0.1:5000/lvgl-app``
200 .. code-block:: sh
207 "insecure-registries" : ["<IP_ADDR_OF_DEVELOPMENT_HOST>:5000"]
217 docker pull <IP_ADDR_OF_DEVELOPMENT_HOST>:5000/lvgl-app
222 …developer.toradex.com/torizon/application-development/use-cases/peripheral-access/best-practices-w…
226 By using the ``--device`` argument it is possible to map a device to a container.
230 ``docker run --device /dev/fb0:/dev/fb0 <IMAGE_ID>``
233 ----------
245 …article <https://developer.toradex.com/torizon/application-development/application-development-ove…