parent
e05a91eec0
commit
ba306a5689
@ -1 +0,0 @@
|
||||
../../CODE_OF_CONDUCT.rst
|
@ -1 +0,0 @@
|
||||
../../CONTRIBUTORS.rst
|
@ -1,28 +0,0 @@
|
||||
FROM fedora:34
|
||||
|
||||
RUN dnf update -y && dnf install -y \
|
||||
git \
|
||||
wget \
|
||||
lbzip2 \
|
||||
make \
|
||||
cmake \
|
||||
glibc-locale-source \
|
||||
findutils \
|
||||
clang-tools-extra
|
||||
|
||||
RUN wget -q https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 -O /tmp/gcc-arm-none-eabi-10.3.tar.bz2
|
||||
RUN mkdir -p /opt/gcc-arm-none-eabi-10.3
|
||||
RUN tar -xf /tmp/gcc-arm-none-eabi-10.3.tar.bz2 -C /opt/gcc-arm-none-eabi-10.3 --strip-components=1
|
||||
RUN ln -s /opt/gcc-arm-none-eabi-10.3/bin/* /usr/local/bin
|
||||
RUN rm -rf /tmp/*
|
||||
|
||||
ARG UID
|
||||
ARG GID
|
||||
ARG USERNAME
|
||||
ARG GROUPNAME
|
||||
RUN groupadd --gid $GID $GROUPNAME
|
||||
RUN useradd --uid $UID --gid $GID $USERNAME
|
||||
RUN usermod --append --groups $GROUPNAME $USERNAME
|
||||
RUN usermod --shell /bin/bash $USERNAME
|
||||
|
||||
USER $USERNAME
|
@ -1,33 +0,0 @@
|
||||
version: '3'
|
||||
services:
|
||||
|
||||
container:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile
|
||||
image: fedora-arm-embedded-dev
|
||||
container_name: fedora-arm-embedded-dev
|
||||
volumes:
|
||||
- ${PWD}/:/workdir
|
||||
working_dir: /workdir
|
||||
hostname: fedora-arm-embedded-dev
|
||||
|
||||
stmbuild:
|
||||
extends:
|
||||
service: container
|
||||
command: bash -lc 'make -j8'
|
||||
|
||||
stmrebuild:
|
||||
extends:
|
||||
service: container
|
||||
command: bash -lc 'make clean && make -j8'
|
||||
|
||||
stmclean:
|
||||
extends:
|
||||
service: container
|
||||
command: bash -lc 'make clean'
|
||||
|
||||
shell:
|
||||
extends:
|
||||
service: container
|
||||
command: bash -l
|
Loading…
Reference in new issue