Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions example/renode/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM debian:11.5-slim

RUN apt-get update --yes && \
apt-get upgrade --yes && \
apt-get install --yes --no-install-recommends \
ca-certificates \
build-essential \
git python gcc gcc-arm-none-eabi libnewlib-arm-none-eabi \
vim \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*


RUN useradd --create-home -d /home/tiny --shell /bin/bash --password tiny tiny
USER tiny
WORKDIR /home/tiny

COPY --chown=tiny:tiny . ./renode

WORKDIR /home/tiny/renode
RUN make
23 changes: 23 additions & 0 deletions example/renode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Renode example

https://interrupt.memfault.com/blog/intro-to-renode


## Docker build container


### Build renode minimal example

Create a minimal docker image that contains everything to build
the binary. The binary is build during the creation of the image.

> docker build --progress=plain -t renode .


### Get example to host

Start the container with
> docker run --mount src="$(pwd)",target=/mnt,type=bind -it renode /bin/bash

In the container go into folder renode and copy the build binary to the host.
> cp renode-example.elf /mnt