forked from SiliconLabs/wfx-fullMAC-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (26 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM openjdk:11
WORKDIR /home/root
ENV PROJECT_NAME=ethernet_bridge
ENV ARM_TOOLCHAIN_VERSION=10.3-2021.10
# Install ultilities (unzip, python3, pip)
RUN apt-get update
RUN apt-get install unzip
RUN apt-get install python3 -y && apt-get install python3-pip -y
# Download slc_cli tool
RUN wget https://www.silabs.com/documents/login/software/slc_cli_linux.zip
# Unpacking & installing slc_cli tools
RUN unzip slc_cli_linux
RUN rm -rf slc_cli_linux.zip
RUN pip install -r ./slc_cli/requirements.txt
RUN chmod a+x slc_cli/*
# Download GNU ARM Toolchain
RUN wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/${ARM_TOOLCHAIN_VERSION}/gcc-arm-none-eabi-${ARM_TOOLCHAIN_VERSION}-x86_64-linux.tar.bz2
# Unpacking GNU ARM Toolchain
RUN mkdir ./gnu_arm
RUN tar xf gcc-arm-none-eabi-${ARM_TOOLCHAIN_VERSION}-x86_64-linux.tar.bz2 --strip-components=1 -C ./gnu_arm
RUN rm -rf gcc-arm-none-eabi-${ARM_TOOLCHAIN_VERSION}-x86_64-linux.tar.bz2
# Copy local project source files to docker image
# ADD $PROJECT_NAME $PROJECT_NAME/
# Copy build script ---> TODO
# ADD build_script.sh $WORKDIR
# RUN chmod 777 ./build_script.sh