Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions zephyr-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
xz-utils \
&& wget -q "https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZEPHYR_SDK_VERSION}/${sdk_file_name}" \
&& mkdir -p ${ZEPHYR_SDK_INSTALL_DIR} \
&& tar -xvf ${sdk_file_name} -C ${ZEPHYR_SDK_INSTALL_DIR} --strip-components=1 \
&& tar -xf ${sdk_file_name} -C ${ZEPHYR_SDK_INSTALL_DIR} --strip-components=1 \
&& ${ZEPHYR_SDK_INSTALL_DIR}/setup.sh -c \
&& rm ${sdk_file_name} \
&& apt-get remove -y --purge \
wget \
xz-utils \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& apt-get autoremove -y
7 changes: 3 additions & 4 deletions zephyr-posix/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ FROM ${BASE_IMAGE}

# OS dependencies and Zephyr SDK posix setup

ARG ZEPHYR_SDK_INSTALL_DIR
ARG ZEPHYR_SDK_VERSION=1.0.0
ARG ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-${ZEPHYR_SDK_VERSION}

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
Expand All @@ -19,6 +20,4 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
&& ${ZEPHYR_SDK_INSTALL_DIR}/setup.sh -c \
&& apt-get remove -y --purge \
wget \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& apt-get autoremove -y
9 changes: 4 additions & 5 deletions zephyr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ FROM ${BASE_IMAGE}

# Target architecture SDK

ARG ZEPHYR_SDK_INSTALL_DIR
ARG ZEPHYR_SDK_TOOLCHAINS
ARG ZEPHYR_SDK_VERSION=1.0.0
ARG ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-${ZEPHYR_SDK_VERSION}
ARG ZEPHYR_SDK_TOOLCHAINS="-t arm-zephyr-eabi"

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
Expand All @@ -21,6 +22,4 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
&& apt-get remove -y --purge \
wget \
xz-utils \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& apt-get autoremove -y
Loading