Merge pull request #1 from embedd-actions/slim

Slim
This commit is contained in:
Sergey 2023-09-17 22:30:19 +03:00 committed by GitHub
commit 246bfb11b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 7 deletions

View File

@ -2,10 +2,13 @@ FROM debian:stable-slim
#ARG ARCH=amd64
ARG NRF_CONNECT_TAG=v2.3.0
# Should be for selected NRF_CONNECT_TAG
ARG ZEPHYR_NEEDED_TAG=0.15.2
# For new versions - xz
ARG ZEPHYR_ARCHIVE_EXTENSION=gz
# Should be for selected NRF_CONNECT_TAG
ENV ZEPHYR_TAG=0.15.2
# For entrypoint file
ENV ZEPHYR_TAG=$ZEPHYR_NEEDED_TAG
RUN ARCH="$(dpkg --print-architecture)" && \
case $ARCH in \
@ -69,7 +72,8 @@ RUN ARCH="$(dpkg --print-architecture)" && \
rm zephyr-sdk-${ZEPHYR_TAG}_linux-$ZEPHYR_ARCH.tar.${ZEPHYR_ARCHIVE_EXTENSION} && \
apt-get remove python3-pip build-essential -y && \
apt autoremove -y && \
apt autoclean -y
apt autoclean -y && \
find ./zephyr-sdk-${ZEPHYR_TAG} -maxdepth 1 -not -name zephyr-sdk-${ZEPHYR_TAG} -not -name 'arm-zephyr-eabi' -not -name 'cmake' -not -name 'sdk_*' -not -name '*.sh' -exec rm -R {} \;
COPY ./entrypoint.sh /bin/

View File

@ -7,5 +7,6 @@ services:
context: .
dockerfile: Dockerfile
args:
- NRF_CONNECT_TAG=v2.4.2
- ZEPHYR_TAG=0.16.1
- NRF_CONNECT_TAG=v2.3.0
- ZEPHYR_NEEDED_TAG=0.15.2
- ZEPHYR_ARCHIVE_EXTENSION=gz

View File

@ -9,8 +9,8 @@
#. ~/.bashrc
. /root/gn/zephyr/zephyr-env.sh
/bin/bash /root/zephyr-sdk-${ZEPHYR_TAG}/setup.sh -t all
/bin/bash /root/zephyr-sdk-${ZEPHYR_TAG}/setup.sh -h
/bin/bash /root/zephyr-sdk-${ZEPHYR_TAG}/setup.sh -t arm-zephyr-eabi
#/bin/bash /root/zephyr-sdk-${ZEPHYR_TAG}/setup.sh -h
/bin/bash /root/zephyr-sdk-${ZEPHYR_TAG}/setup.sh -c
$@