From dca862b42a1465a9cbcae9bff5c661894aba3061 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Sun, 25 Sep 2022 17:55:03 +1000 Subject: [PATCH] Add docker build env --- Dockerfile | 9 +++++++++ docker-compose.yml | 10 ++++++++++ start_dev.sh | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100755 start_dev.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2574c24 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:3.16 +LABEL maintainer="Ben V. Brown " + +RUN apk add --no-cache gcc-arm-none-eabi newlib-arm-none-eabi make git bash +WORKDIR /src +# Git trust +RUN git config --global --add safe.directory /src + +COPY . /src diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..971d7b9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" +services: + builder: + stdin_open: true + tty: true + build: + context: . + command: /bin/bash + volumes: + - ./:/src:Z diff --git a/start_dev.sh b/start_dev.sh new file mode 100755 index 0000000..ef95947 --- /dev/null +++ b/start_dev.sh @@ -0,0 +1,2 @@ +#!/bin/sh +docker-compose run --rm builder