summaryrefslogtreecommitdiff
path: root/docker/x86_64/Dockerfile
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-08-19 12:22:48 +0200
committerJF <jf@codingfield.com>2020-08-19 12:22:48 +0200
commit5ed7fbe126fea6d67c0505a93d8f06a4c06bf61d (patch)
tree7664ae1d37fdd977531849a65e316131e83b1f49 /docker/x86_64/Dockerfile
parent18686ac2cbf6b97dd0250234ce128bd9ad350d6e (diff)
Add docker file create docker image that builds the project on amd64 and arm64 arch.
Diffstat (limited to 'docker/x86_64/Dockerfile')
-rw-r--r--docker/x86_64/Dockerfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/docker/x86_64/Dockerfile b/docker/x86_64/Dockerfile
new file mode 100644
index 00000000..6dd604be
--- /dev/null
+++ b/docker/x86_64/Dockerfile
@@ -0,0 +1,10 @@
+FROM ubuntu:18.04
+RUN apt-get update -qq && apt-get install -y wget unzip cmake make build-essential git python3 python3-pip
+RUN wget -q https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz -O - | tar -xj -C /opt/
+RUN wget -q https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.3.0_59ac345.zip && unzip -q nRF5_SDK_15.3.0_59ac345.zip -d /opt/ && rm nRF5_SDK_15.3.0_59ac345.zip
+
+RUN git clone https://github.com/JuulLabs-OSS/mcuboot.git /opt/mcuboot && pip3 install -r /opt/mcuboot/scripts/requirements.txt
+RUN pip3 install adafruit-nrfutil
+
+
+CMD ["/sources/docker/build.sh"] \ No newline at end of file