updated all dockerfiles

This commit is contained in:
Robin Müller 2021-05-21 17:56:46 +02:00
parent 93a0ad6af3
commit 190fabc081
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 37 additions and 8 deletions

View File

@ -1,8 +1,9 @@
FROM alpine:latest
# FROM alpine:latest
FROM ubuntu:latest
# RUN apt-get update -y && apt-get upgrade -y
# RUN apt-get install -y cmake g++
RUN apk add cmake make g++
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y cmake g++
# RUN apk add cmake make g++
WORKDIR /usr/src/app
COPY . .
@ -15,3 +16,4 @@ RUN set -ex; \
ENTRYPOINT ["cmake", "--build", "build-hosted"]
CMD ["-j"]
# CMD ["sh"]

View File

@ -1,8 +1,9 @@
FROM alpine:latest
# FROM alpine:latest
FROM ubuntu:latest
# RUN apt-get update -y && apt-get upgrade -y
# RUN apt-get install -y cmake g++
RUN apk add cmake make g++
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y cmake g++
# RUN apk add cmake make g++
WORKDIR /usr/src/app
COPY . .
@ -15,3 +16,4 @@ RUN set -ex; \
ENTRYPOINT ["cmake", "--build", "build-linux"]
CMD ["-j"]
# CMD ["sh"]

View File

@ -0,0 +1,25 @@
# FROM alpine:latest
FROM ubuntu:latest
RUN apt-get update -y && apt-get upgrade -y
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
RUN apt-get install -y cmake g++ npm; \
npm install --global xpm@latest; \
xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@latest
# RUN apk add cmake make g++ npm; \
# npm install --global xpm@latest; \
# xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@latest
ENV PATH="/root/.local/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/10.2.1-1.1.2/.content/bin:${PATH}"
WORKDIR /usr/src/app
COPY . .
RUN set -ex; \
rm -rf build-freertos; \
mkdir build-freertos; \
cd build-freertos; \
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=freertos -DTGT_BSP=arm/stm32h743zi-nucleo ..;
ENTRYPOINT ["cmake", "--build", "build-freertos"]
CMD ["-j"]
# CMD ["sh"]