mirror of
https://github.com/embedd-actions/nrf-connect-sdk-ci.git
synced 2024-12-25 16:32:30 +03:00
commit
246bfb11b6
10
Dockerfile
10
Dockerfile
@ -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/
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
$@
|
||||
|
Loading…
Reference in New Issue
Block a user