Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dockerfile to build STM32F427 binary #310

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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