From 5c5295e519106a3f2b11d290988096e76394d405 Mon Sep 17 00:00:00 2001 From: Gennady Gurov Date: Sat, 24 Feb 2024 13:35:20 -0500 Subject: [PATCH] first --- .gitignore | 1 + Dockerfile | 6 ++++++ README | 14 ++++++++++++++ build_container.sh | 1 + config.sh | 3 +++ run_container.sh | 1 + 6 files changed, 26 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README create mode 100755 build_container.sh create mode 100755 config.sh create mode 100755 run_container.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8298409 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +repo/* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..276c237 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +# syntax=docker/dockerfile:1 + +FROM ubuntu:mantic +COPY config.sh /config.sh +RUN /config.sh +CMD /bin/bash diff --git a/README b/README new file mode 100644 index 0000000..5c2ef7f --- /dev/null +++ b/README @@ -0,0 +1,14 @@ + +# to build the container image: + +./build.sh + + + +run the container: + +docker run --rm -it -v repo:/rusefi --name rusefi_build rusefi_build:0.1 + + +container will be removed upon exit + diff --git a/build_container.sh b/build_container.sh new file mode 100755 index 0000000..34f81d6 --- /dev/null +++ b/build_container.sh @@ -0,0 +1 @@ +docker build . -t rusefi_build:0.1 diff --git a/config.sh b/config.sh new file mode 100755 index 0000000..5828433 --- /dev/null +++ b/config.sh @@ -0,0 +1,3 @@ +apt-get -y update +apt-get -y install make automake autoconf gcc-12-arm-linux-gnueabi - gcc-12-arm-linux-gnueabi-base gcc-arm-none-eabi binutils-arm-none-eabi git nano openjdk-22-jdk-headless + diff --git a/run_container.sh b/run_container.sh new file mode 100755 index 0000000..c98c815 --- /dev/null +++ b/run_container.sh @@ -0,0 +1 @@ +docker run --rm -it -v ./repo:/rusefi --name rusefi_build rusefi_build:0.1