-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f51f19
commit 024aaff
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: publish | ||
on: [push] | ||
jobs: | ||
publish-efr32-image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build the hello-docker Docker image | ||
run: | | ||
docker build . --tag ghcr.io/deselikem/hello-docker-gcr-demo:latest | ||
docker run ghcr.io/deselikem/hello-docker-gcr-demo:latest | ||
docker push ghcr.io/deselikem/hello-docker-gcr-demo:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
ARG VERSION=1 | ||
FROM ghcr.io/project-chip/chip-build:${VERSION} as build | ||
LABEL org.opencontainers.image.source /~https://github.com/project-chip/connectedhomeip | ||
|
||
# Requirements to clone SDKs in temporary container | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ | ||
git \ | ||
git-lfs \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/ \ | ||
&& : # last line | ||
|
||
|
||
# Download Simplicity SDK v2024.6.1 (a1a37fa) | ||
RUN wget /~https://github.com/SiliconLabs/simplicity_sdk/releases/download/v2024.6.1-0/sisdk-sdk.zip -O /tmp/simplicity_sdk.zip \ | ||
&& unzip /tmp/simplicity_sdk.zip -d /tmp/simplicity_sdk \ | ||
&& rm -rf /tmp/simplicity_sdk.zip \ | ||
# Deleting files that are not needed to save space | ||
&& rm -rf /tmp/simplicity_sdk/protocol/flex /tmp/simplicity_sdk/protocol/z-wave /tmp/simplicity_sdk/protocol/zigbee /tmp/simplicity_sdk/protocol/wisun \ | ||
&& find /tmp/simplicity_sdk/protocol/bluetooth /tmp/simplicity_sdk/platform -name "*.a" -type f -delete \ | ||
&& find /tmp/simplicity_sdk/protocol/openthread -name "*efr32mg21*" -delete \ | ||
&& : # last line | ||
|
||
# Clone WiSeConnect Wi-Fi and Bluetooth Software 2.10.0 (f94b83d) | ||
RUN git clone --depth=1 --single-branch --branch=2.10.0 /~https://github.com/SiliconLabs/wiseconnect-wifi-bt-sdk.git /tmp/wiseconnect-wifi-bt-sdk && \ | ||
cd /tmp/wiseconnect-wifi-bt-sdk && \ | ||
rm -rf .git \ | ||
&& : # last line | ||
|
||
# Clone WiSeConnect SDK v3.3.1 (841ea3f) | ||
RUN git clone --depth=1 --single-branch --branch=v3.3.1 /~https://github.com/SiliconLabs/wiseconnect.git /tmp/wifi_sdk && \ | ||
cd /tmp/wifi_sdk && \ | ||
rm -rf .git \ | ||
&& : # last line | ||
|
||
# SLC-cli install | ||
# TODO: figure out a way to make this a fixed version. Currently a moving target. | ||
RUN wget https://www.silabs.com/documents/login/software/slc_cli_linux.zip && \ | ||
unzip ./slc_cli_linux.zip -d /tmp && \ | ||
rm ./slc_cli_linux.zip \ | ||
&& : # last line | ||
|
||
# Final SDK container for compiling using Silabs SDK | ||
FROM ghcr.io/project-chip/chip-build:${VERSION} | ||
|
||
ADD requirements.txt /tmp/requirements.txt | ||
|
||
# GNU ARM Embedded toolchain, cross compiler for various platform builds | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \ | ||
gcc-arm-none-eabi \ | ||
binutils-arm-none-eabi \ | ||
openjdk-17-jdk-headless \ | ||
ccache \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/ \ | ||
# Install Python Packages | ||
&& pip3 install --break-system-packages -r /tmp/requirements.txt \ | ||
&& rm /tmp/requirements.txt \ | ||
&& : # last line | ||
|
||
# Keep GSDK_ROOT name until rename transition to SISDK is completed | ||
ENV GSDK_ROOT=/opt/silabs/simplicity_sdk/ | ||
ENV SISDK_ROOT=/opt/silabs/simplicity_sdk/ | ||
ENV WISECONNECT_SDK_ROOT=/opt/silabs/wiseconnect-wifi-bt-sdk/ | ||
ENV WIFI_SDK_ROOT=/opt/silabs/wifi_sdk/ | ||
ENV PATH="${PATH}:/opt/silabs/slc_cli/" | ||
|
||
COPY --from=build /tmp/simplicity_sdk /opt/silabs/simplicity_sdk | ||
COPY --from=build /tmp/wiseconnect-wifi-bt-sdk/ /opt/silabs/wiseconnect-wifi-bt-sdk/ | ||
COPY --from=build /tmp/wifi_sdk /opt/silabs/wifi_sdk | ||
COPY --from=build /tmp/slc_cli /opt/silabs/slc_cli |