Ver Fonte

add docker files

Nicolas Winkler há 5 meses atrás
commit
1e225c0979
2 ficheiros alterados com 61 adições e 0 exclusões
  1. 31 0
      Dockerfile
  2. 30 0
      compose.yaml

+ 31 - 0
Dockerfile

@@ -0,0 +1,31 @@
+FROM ubuntu:22.04
+
+USER root
+ARG DEBIAN_FRONTEND=noninteractive
+ENV TZ=Europe/Berlin
+RUN apt-get update
+RUN apt-get install -y repo git bsdmainutils build-essential chrpath cpio diffstat gawk gcc-multilib git-lfs iputils-ping libegl1-mesa libgmp-dev libmpc-dev libsdl1.2-dev libssl-dev libusb-1.0-0 lz4 pylint python3-git python3-jinja2 python3-pexpect python3-pip socat texinfo unzip wget xterm xz-utils zstd curl
+
+RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/bin/repo && \
+    chmod a+x /usr/bin/repo
+
+
+RUN groupadd -g 1000 ubuntu
+RUN useradd -g 1000 -m -s /bin/bash -u 1000 ubuntu
+
+RUN apt-get install -y locales
+RUN locale-gen "en_US.UTF-8"
+RUN dpkg-reconfigure locales
+ENV LANG en_US.UTF-8
+
+
+RUN apt-get install -y file
+
+USER ubuntu
+
+WORKDIR /home/ubuntu
+
+#RUN \
+#    repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mpu-v24.06.26 \
+#    repo sync
+

+ 30 - 0
compose.yaml

@@ -0,0 +1,30 @@
+name: build_stm32mp2
+services:
+  build:
+    build: &default-build
+      context: .
+      dockerfile: Dockerfile
+    image: build_stm32mp2
+    tty: true
+    stdin_open: true
+    working_dir: /home/ubuntu/build
+    entrypoint:
+      - "bash"
+      - "-c"
+    command: [ "./script.sh" ]
+    environment: &default-env
+      - MACHINE=stm32mp25-eval
+    volumes: &default-volumes
+      - type: bind
+        source: ${HOME}/.gitconfig
+        target: /home/ubuntu/.gitconfig
+      - type: bind
+        source: ${HOME}/.git-credentials
+        target: /home/ubuntu/.git-credentials
+      - type: bind
+        source: ${HOME}/.ssh
+        target: /home/ubuntu/.ssh
+      - type: bind
+        source: ./build
+        target: /home/ubuntu/build
+