diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-09-29 04:40:20 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-09-29 04:40:20 +0200 |
commit | 4e8077443a40afcf0d3c3c2366a214b15e31182e (patch) | |
tree | 72545f89f23fa560fa261e26d92184950d64e0af | |
parent | 533a9e57de8cb74594499f625810ad812359d3fb (diff) | |
download | matcha-threads-4e8077443a40afcf0d3c3c2366a214b15e31182e.tar.gz matcha-threads-4e8077443a40afcf0d3c3c2366a214b15e31182e.zip |
added dockerfile with arm64 cross tools
-rw-r--r-- | docker/Dockerfile | 19 | ||||
-rwxr-xr-x | docker/build.sh | 9 |
2 files changed, 28 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..0646e13 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,19 @@ +# Copyright (c) 2020 Johannes Stoelp +FROM ubuntu:20.04 + +RUN apt update \ + && DEBIAN_FRONTEND=noninteractive \ + apt install -y \ + git \ + make \ + gcc \ + g++ \ + gcc-aarch64-linux-gnu \ + g++-aarch64-linux-gnu \ + gdb-multiarch \ + qemu-user \ + neovim \ + && rm -rf /var/lib/apt/lists/* \ + && apt-get clean + +WORKDIR /develop diff --git a/docker/build.sh b/docker/build.sh new file mode 100755 index 0000000..bfbdd4b --- /dev/null +++ b/docker/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Copyright (c) 2020 Johannes Stoelp + +if ! docker build -t matcha-box . ; then + echo "ERR: Failed to build docker image!" + exit 1 +fi + +exit 0 |