diff options
author | Ivan Zorin <[email protected]> | 2023-07-02 04:32:40 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2023-07-02 11:32:40 +1000 |
commit | b524a99ff23da260e77e5d180b9b3a6701d48d87 (patch) | |
tree | 64ad754bd382ac7e3915ba0e215a7bc9738513f1 /scripts/IronOS.Dockerfile | |
parent | 990f42ad1a75a4de4b59950d313ab709a09959f4 (diff) | |
download | IronOS-b524a99ff23da260e77e5d180b9b3a6701d48d87.tar.gz IronOS-b524a99ff23da260e77e5d180b9b3a6701d48d87.zip |
Root directory content refactoring (#1725)
* Root directory refactoring: - move info about Bootup Logo from a sepatate README to main README; - replace separate root scripts build.sh and start_dev.sh by root Makefile; - make Scripts directory and move there: flash_ts100_linux.sh script, ci/ directory, dockerfile, LICENSE_RELEASE, and PULL_REQUEST_TEMPLATE; - reconfigure build & deploy scripts according to changes
* Scripts => scripts
* Scripts -> scripts: re-add missing renamed files
* Directories refactoring: add top-level Makefile, add scripts/deploy.sh script, move github templates from top-level dir to .github, organize files inside Development Resources
* Update scripts/deploy.sh accroding to codestyle syntax shellcheck
* Makefile: add docs-deploy target for mkdocs gh-deploy
* Rename IronOS.yml > Env.yml, update related files
* Docs configs: remove empty characters
* docs/devel: update usage of new script
Diffstat (limited to 'scripts/IronOS.Dockerfile')
-rw-r--r-- | scripts/IronOS.Dockerfile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/IronOS.Dockerfile b/scripts/IronOS.Dockerfile new file mode 100644 index 00000000..b3026b4d --- /dev/null +++ b/scripts/IronOS.Dockerfile @@ -0,0 +1,29 @@ +FROM alpine:3.16
+LABEL maintainer="Ben V. Brown <[email protected]>"
+
+WORKDIR /build
+# Installing the two compilers, python3, python3 pip, clang format
+# Compilders ->gcc-* newlib-*
+# Python3 -> py*
+# Misc -> findutils make git
+# musl-dev is required for the multi lang firmwares
+# clang is required for clang-format (for dev)
+ARG APK_COMPS="gcc-riscv-none-elf gcc-arm-none-eabi newlib-riscv-none-elf \
+ newlib-arm-none-eabi"
+ARG APK_PYTHON="python3 py3-pip black"
+ARG APK_MISC="findutils make git"
+ARG APK_DEV="musl-dev clang bash clang-extra-tools"
+
+# PIP packages
+ARG PIP_PKGS='bdflib'
+
+RUN apk add --no-cache ${APK_COMPS} ${APK_PYTHON} ${APK_MISC} ${APK_DEV}
+
+# Install Python3 packages
+
+RUN python3 -m pip install ${PIP_PKGS}
+# Git trust
+RUN git config --global --add safe.directory /build/source
+
+COPY . /build/source
+COPY ./scripts/ci /build/ci
|