Another Update Package Yaaay #9

Merged
gaisser merged 21 commits from mueller/yet-another-update-package-nice into master 2021-05-25 14:55:42 +02:00
3 changed files with 37 additions and 8 deletions
Showing only changes of commit 190fabc081 - Show all commits

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"]